Improve UI Structure Consistency
This commit is contained in:
1 parent
32911f244a
commit
7b5ba462cb
4 files changed
+54
-12
No files matched your search
@@ -1,3 +1,11 @@
|
|||||||
|
:host > .container {
|
||||||
|
display: flex;
|
||||||
|
width: 600px;
|
||||||
|
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
section {
|
section {
|
||||||
p {
|
p {
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
@@ -12,6 +20,8 @@ section {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|
||||||
|
width: fit-content;
|
||||||
|
|
||||||
&.reported {
|
&.reported {
|
||||||
background-color: oklch(0.786 0.1379 18.69);
|
background-color: oklch(0.786 0.1379 18.69);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,17 +5,15 @@
|
|||||||
|
|
||||||
<section id="switch-test" class="feature-block">
|
<section id="switch-test" class="feature-block">
|
||||||
<h2>Switch Component</h2>
|
<h2>Switch Component</h2>
|
||||||
<div style="display: flex; flex-direction: column; gap: 40px; align-items: flex-start;">
|
<div class="test-container">
|
||||||
<div class="test-container">
|
<switch [(isActive)]="isToggled" (toggle)="handleToggle($event)"></switch>
|
||||||
<switch [(isActive)]="isToggled" (toggle)="handleToggle($event)"></switch>
|
<p>Switch is: {{ isToggled() ? 'ON' : 'OFF' }}</p>
|
||||||
<p>Switch is: {{ isToggled() ? 'ON' : 'OFF' }}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="dropdown-test" class="feature-block">
|
<section id="dropdown-test" class="feature-block">
|
||||||
<h2>Dropdown Component</h2>
|
<h2>Dropdown Component</h2>
|
||||||
<div style="display: flex; flex-direction: column; gap: 40px; align-items: flex-start;">
|
<div class="test-group">
|
||||||
<div class="test-container">
|
<div class="test-container">
|
||||||
<h3>Object Options</h3>
|
<h3>Object Options</h3>
|
||||||
<dropdown
|
<dropdown
|
||||||
|
|||||||
@@ -1,11 +1,35 @@
|
|||||||
|
:host > .container {
|
||||||
|
display: flex;
|
||||||
|
width: 600px;
|
||||||
|
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
section#dropdown-test {
|
section#dropdown-test {
|
||||||
dropdown {
|
dropdown {
|
||||||
width: 324px;
|
width: 324px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.test-group {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 36px;
|
||||||
|
|
||||||
|
padding-top: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
div.test-container {
|
div.test-container {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
brand-accent {
|
brand-accent {
|
||||||
|
|||||||
+16
-6
@@ -29,21 +29,28 @@ strong {
|
|||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1, h2, h3 {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
margin-bottom: 40px;
|
font-size: 48px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
margin-top: 0;
|
font-size: 24px;
|
||||||
margin-bottom: 20px;
|
|
||||||
font-size: 1.2rem;
|
|
||||||
color: oklch(0.5103 0 0); // #666
|
color: oklch(0.5103 0 0); // #666
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
margin-top: 15px;
|
margin-top: 0; margin-bottom: 0;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
@@ -65,7 +72,10 @@ p {
|
|||||||
}
|
}
|
||||||
|
|
||||||
section.feature-block {
|
section.feature-block {
|
||||||
margin-bottom: 40px;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
border: 2px solid oklch(0 0 0 / 20%); // rgba(0, 0, 0, 0.2)
|
border: 2px solid oklch(0 0 0 / 20%); // rgba(0, 0, 0, 0.2)
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
|||||||
Reference in new issue
Block a user