Adjust Brand Accent & Dropdown
This commit is contained in:
1 parent
25a9bca291
commit
0908064688
6 files changed
+29
-10
No files matched your search
@@ -1,3 +1,7 @@
|
|||||||
|
:host {
|
||||||
|
min-height: 100dvh;
|
||||||
|
}
|
||||||
|
|
||||||
main:focus-visible {
|
main:focus-visible {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
@@ -121,7 +121,7 @@ $default_animation_duration: 0.2s;
|
|||||||
background-color: light-dark(oklch(1 0 0), oklch(0 0 0));
|
background-color: light-dark(oklch(1 0 0), oklch(0 0 0));
|
||||||
border-radius: $border_radius;
|
border-radius: $border_radius;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
max-height: 240px;
|
max-height: 200px;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
box-shadow: 0 4px 12px oklch(0 0 0 / 10%); // rgba(0, 0, 0, 0.1)
|
box-shadow: 0 4px 12px oklch(0 0 0 / 10%); // rgba(0, 0, 0, 0.1)
|
||||||
animation: slideIn var(--animation-duration) $animation_timing;
|
animation: slideIn var(--animation-duration) $animation_timing;
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ $default_animation_duration: 0.2s;
|
|||||||
}
|
}
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
width: 400px;
|
width: 100%;
|
||||||
|
max-width: 400px;
|
||||||
height: 160px;
|
height: 160px;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<div class="container">
|
<brand-accent></brand-accent>
|
||||||
<brand-accent></brand-accent>
|
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
<h1>Component Test</h1>
|
<h1>Component Test</h1>
|
||||||
|
|
||||||
<section id="switch-test" class="feature-block">
|
<section id="switch-test" class="feature-block">
|
||||||
|
|||||||
@@ -1,6 +1,16 @@
|
|||||||
|
:host {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
:host > .container {
|
:host > .container {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 600px;
|
width: 100%;
|
||||||
|
max-width: 600px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 40px;
|
gap: 40px;
|
||||||
@@ -8,7 +18,8 @@
|
|||||||
|
|
||||||
section#dropdown-test {
|
section#dropdown-test {
|
||||||
dropdown {
|
dropdown {
|
||||||
width: 324px;
|
width: 100%;
|
||||||
|
max-width: 324px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,11 +46,12 @@ div.test-container {
|
|||||||
brand-accent {
|
brand-accent {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
||||||
width: 100%;
|
top: -64px;
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
||||||
|
width: 100%;
|
||||||
|
min-width: 100dvw;
|
||||||
|
height: calc(100% + 64px);
|
||||||
|
min-height: 100dvh;
|
||||||
z-index: -999999;
|
z-index: -999999;
|
||||||
}
|
}
|
||||||
@@ -39,6 +39,8 @@ body {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
overscroll-behavior-x: none;
|
overscroll-behavior-x: none;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
|
||||||
|
min-height: 100dvh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-24 {
|
.icon-24 {
|
||||||
|
|||||||
Reference in new issue
Block a user