mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-12-10 00:30:02 -06:00
186 lines
4.4 KiB
SCSS
186 lines
4.4 KiB
SCSS
// More specificity
|
|
#landingpage .page-content .content {
|
|
.ha-buy-dialog {
|
|
background: rgba(0, 0, 0, 0.4);
|
|
display: none;
|
|
inset: 0;
|
|
padding: 40px;
|
|
place-items: center;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
|
|
&.open {
|
|
display: grid;
|
|
}
|
|
|
|
&-inner {
|
|
background-color: #ffffff;
|
|
border-radius: 8px;
|
|
display: grid;
|
|
gap: 20px;
|
|
max-width: 624px;
|
|
padding: 20px;
|
|
width: 100%;
|
|
}
|
|
|
|
&-header {
|
|
align-items: center;
|
|
display: flex;
|
|
|
|
.product-name {
|
|
flex-grow: 1;
|
|
font-size: 20px;
|
|
|
|
@include media-query("desk") {
|
|
font-size: 28px;
|
|
}
|
|
}
|
|
|
|
.close {
|
|
align-items: center;
|
|
cursor: pointer;
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
&-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 20px;
|
|
}
|
|
|
|
&-sidebar {
|
|
background-color: #F0F0F3;
|
|
border-radius: 8px;
|
|
min-width: 140px;
|
|
padding: 12px;
|
|
|
|
&-label {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
&-tabs {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
&-tab {
|
|
background-color: transparent;
|
|
border-radius: 4px;
|
|
color: #4F606E;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
padding: 8px;
|
|
transition: background-color 0.1s;
|
|
|
|
&:hover {
|
|
background-color: #e1e1e1;
|
|
}
|
|
|
|
&.active {
|
|
background-color: #FCFCFF;
|
|
pointer-events: none;
|
|
color: #000;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-tab {
|
|
&-content-wrapper {
|
|
flex-grow: 1;
|
|
height: 100%;
|
|
max-height: 440px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
&-content {
|
|
display: none;
|
|
flex-direction: column;
|
|
gap: 32px;
|
|
|
|
&.active {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
&-distributor {
|
|
&-countries {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18px;
|
|
}
|
|
|
|
&-country {
|
|
&-name {
|
|
align-items: center;
|
|
display: flex;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
gap: 10px;
|
|
padding-bottom: 12px;
|
|
}
|
|
|
|
&-flag {
|
|
border-radius: 0;
|
|
height: 8px;
|
|
}
|
|
|
|
$letters: "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
@for $i from 1 through 26 {
|
|
$letter: str-slice($letters, $i, $i);
|
|
|
|
&[data-sort="#{$letter}"] {
|
|
order: $i;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-items {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 20px;
|
|
}
|
|
|
|
&-item {
|
|
border: 1px solid #F0F0F3;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
height: 70px;
|
|
padding: 4px 16px;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
transition: background-color 0.1s;
|
|
width: 120px;
|
|
|
|
span {
|
|
font-size: 10px;
|
|
color: #4F606E;
|
|
}
|
|
|
|
img{
|
|
object-fit: contain;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: #F0F0F3;
|
|
}
|
|
}
|
|
|
|
&-logo {
|
|
border-radius: 0;
|
|
max-height: 45px;
|
|
}
|
|
}
|
|
}
|
|
} |