@betha-plataforma/estrutura-componentes
Version:
Coleção de Web Components para compor a estrutura de uma aplicação front-end da Betha Sistemas.
181 lines (176 loc) • 3.88 kB
CSS
*,
*:after,
*:before {
padding: 0;
margin: 0;
box-sizing: border-box;
line-height: 1.5;
}
* {
font-family: var(--bth-app-font-family-primary);
}
a:focus {
outline: 1px dotted var(--bth-app-gray-dark-30);
}
::-webkit-scrollbar {
-webkit-appearance: none;
height: 6px;
width: 6px;
}
::-webkit-scrollbar-track {
background: var(--bth-app-gray-light-30);
}
::-webkit-scrollbar-corner {
background: var(--bth-app-gray-light-40);
}
::-webkit-scrollbar-thumb {
background-color: var(--bth-app-gray);
border-radius: 1px;
}
::-webkit-scrollbar-thumb:hover {
background-color: rgba(255, 255, 255, 0.3);
}
.selecao-contexto {
display: flex;
flex-direction: column;
margin: 0 auto;
}
.selecao-contexto ::slotted(h3) {
margin: 10px 0;
font-size: 20px;
font-weight: 500;
}
.selecao-contexto__search {
display: inline-flex ;
position: relative;
width: 100%;
margin-bottom: 10px;
}
.selecao-contexto__search input {
border: 1px solid silver;
border-radius: 2px;
box-shadow: none;
color: var(--bth-app-gray-dark-30);
font-size: 13px;
width: 100%;
height: 34px;
padding: 6px 12px;
background-color: var(--bth-app-gray-light-40);
display: block;
margin: 0;
}
.selecao-contexto__search input:focus {
border-color: var(--bth-app-blue);
box-shadow: none;
outline: none;
}
.selecao-contexto__search input[disabled] {
background-color: var(--bth-app-gray-light-20);
border-color: var(--bth-app-gray);
color: var(--bth-app-gray-dark-10);
cursor: not-allowed;
}
.selecao-contexto__body {
max-height: 480px;
overflow-y: auto;
}
.selecao-contexto__body--loader {
height: 200px;
display: flex;
align-items: center;
justify-content: center;
}
.selecao-contexto__body ul li {
width: 100%;
outline: none;
position: relative;
}
.selecao-contexto__body ul li:not(:last-child) {
margin-bottom: 8px;
}
.selecao-contexto__body ul li bth-icone {
position: absolute;
top: 42px;
left: 42px;
width: 20px;
height: 20px;
padding: 0px 2px;
background: var(--bth-app-gray-light-40);
border-radius: 50%;
font-size: 16px;
text-align: center;
line-height: 1.3 ;
z-index: 1;
}
.selecao-contexto__body ul li a {
display: flex;
align-items: center;
flex-direction: row;
cursor: pointer;
border-radius: 2px;
background-color: var(--bth-app-gray-light-30);
width: 100%;
padding: 12px;
text-decoration: none;
color: var(--bth-app-gray-dark-30);
outline: none;
}
.selecao-contexto__body ul li a section {
padding: 0 12px;
}
.selecao-contexto__body ul li a section h4 {
font-size: 18px;
font-weight: 500;
line-height: 1.1;
}
.selecao-contexto__body ul li a section p {
margin-top: 6px;
color: var(--bth-app-gray-dark-20);
font-size: 12px;
line-height: 1.5;
}
.selecao-contexto__body ul li a:focus {
box-shadow: inset 0 0 0 1px var(--bth-app-blue);
}
.selecao-contexto__body ul li a:hover {
background-color: var(--bth-app-gray-light-10);
}
.selecao-contexto__body ul li span {
padding: 0 12px;
font-size: 16px;
}
.selecao-contexto ::-webkit-scrollbar {
width: 12px ;
background-color: transparent ;
}
.selecao-contexto ::-webkit-scrollbar-track, .selecao-contexto ::-webkit-scrollbar-thumb {
background-clip: content-box ;
}
.selecao-contexto ::-webkit-scrollbar-track {
background: unset ;
border-right: 6px solid var(--bth-app-gray-light-30) ;
}
.selecao-contexto ::-webkit-scrollbar-thumb {
border-left: 6px solid rgba(255, 255, 255, 0) ;
border-radius: 0 ;
}
@media (min-width: 576px) {
.selecao-contexto {
width: 100%;
}
}
@media (min-width: 768px) {
.selecao-contexto {
width: 80%;
}
}
@media (min-width: 992px) {
.selecao-contexto {
width: 55%;
}
}
@media (min-width: 1200px) {
.selecao-contexto {
width: 45%;
}
}