Skip to content

Commit 604d04b

Browse files
improvement style button examles with examle actions
1 parent 98b5aa2 commit 604d04b

File tree

2 files changed

+17
-38
lines changed

2 files changed

+17
-38
lines changed

src/app/example/example.component.scss

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
.example-actions {
2+
width: 50%;
3+
display: flex;
4+
gap: 20px;
5+
@media (max-width: 800px) {
6+
width: 100%;
7+
}
8+
}
9+
110
.lang-label {
211
display: block;
312
margin-bottom: 10px;

src/styles.scss

+8-38
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,10 @@ html {
2323
body {
2424
min-height: 100vh;
2525
color: var(--color-text);
26-
transition:
27-
color 0.5s,
28-
background-color 0.5s;
26+
transition: color 0.5s, background-color 0.5s;
2927
line-height: 1.6;
30-
font-family:
31-
Inter,
32-
-apple-system,
33-
BlinkMacSystemFont,
34-
"Segoe UI",
35-
Roboto,
36-
Oxygen,
37-
Ubuntu,
38-
Cantarell,
39-
"Fira Sans",
40-
"Droid Sans",
41-
"Helvetica Neue",
28+
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
29+
Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
4230
sans-serif;
4331
font-size: 15px;
4432
text-rendering: optimizeLegibility;
@@ -60,9 +48,7 @@ body:after {
6048
height: 20px;
6149
background: var(--primary);
6250
background: linear-gradient(90deg, var(--primary) 50%, var(--secondary) 100%);
63-
box-shadow:
64-
0 0 0 1px rgba(255, 255, 255, 0.6),
65-
0 0 20px rgba(0, 0, 0, 0.4);
51+
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 20px rgba(0, 0, 0, 0.4);
6652
}
6753

6854
body.modal-active {
@@ -80,11 +66,7 @@ body.darkmode {
8066
}
8167

8268
.material-symbols-outlined {
83-
font-variation-settings:
84-
"FILL" 0,
85-
"wght" 400,
86-
"GRAD" 0,
87-
"opsz" 24;
69+
font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
8870
}
8971

9072
.darkmode-button {
@@ -109,9 +91,7 @@ h2 {
10991
margin: 1rem;
11092
border-radius: 10px;
11193
border: 1px solid var(--vtl-background);
112-
box-shadow:
113-
0 0 0 1px rgba(255, 255, 255, 0.2),
114-
0 10px 20px rgba(0, 0, 0, 0.1);
94+
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1);
11595
}
11696

11797
.content-actions {
@@ -124,7 +104,6 @@ h2 {
124104

125105
@media (max-width: 620px) {
126106
flex-direction: column;
127-
.button-voicecapture-example,
128107
.language {
129108
width: 100%;
130109
margin-top: 0;
@@ -164,18 +143,11 @@ h2 {
164143
}
165144
}
166145

167-
.button-voicecapture-example {
168-
background: var(--primary);
169-
color: #fff;
170-
margin-top: 1rem;
171-
margin-left: 0;
172-
padding: 1rem;
173-
}
174-
175146
.button-voicecapture-example {
176147
display: inline-flex;
177148
align-items: center;
178149
padding: 0.5rem 1rem;
150+
min-height: 70px;
179151
white-space: nowrap;
180152
.material-symbols-outlined {
181153
margin-right: 0.5rem;
@@ -216,15 +188,13 @@ h2 {
216188
align-items: center;
217189
}
218190

219-
220191
@media (max-width: 620px) {
221192
.button-modal {
222193
margin-left: 0;
223194
margin-top: 1rem;
224195
}
225196

226-
.button-modal,
227-
.button-voicecapture-example {
197+
.button-modal {
228198
justify-content: start;
229199
}
230200
}

0 commit comments

Comments
 (0)