Skip to content

Commit 1f4d13a

Browse files
committed
style recycled
1 parent e9752a7 commit 1f4d13a

File tree

7 files changed

+81
-74
lines changed

7 files changed

+81
-74
lines changed

index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
<article class="header flex flex-col">
1515
<h1>Rust 🦀 and WebAssembly 🕸</h1>
1616
<div class="actions flex flex-row">
17-
<p>Todo by Softgod 📝</p>
17+
<p class="text-center">Todo by Softgod 📝</p>
1818
</div>
1919
</article>
20-
<div class="todo">
21-
<div id="rust-logo">
20+
<div class="todo flex flex-col justify-center align-start">
21+
<div id="rust-logo" class="w-100 flex justify-center align-center">
2222
<img src="/image/rust-logo.png" alt="rust-logo">
2323
</div>
24-
<div class="tasks">
24+
<div class="tasks w-100">
2525
<article class="tasks-engine flex justify-between align-center">
26-
<h2>Tasks</h2>
27-
<button id="remove-all">Remove first task</button>
26+
<h2 class="text-start">Tasks</h2>
27+
<button class="text-start" id="remove-all">Remove first task</button>
2828
</article>
2929
<div class="tasks-list">
3030
<label class="tasks-list__item">
@@ -67,7 +67,7 @@ <h2>Tasks</h2>
6767
</div>
6868
<div class="add-task flex justify-start align-center">
6969
<input type="text" placeholder="todo name" id="input-task">
70-
<button id="add-task">Add task</button>
70+
<button id="add-task" class="w-100">Add task</button>
7171
</div>
7272
</div>
7373
</div>

style/global.css

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ html {
9696
body {
9797
font-family: "Inter", sans-serif;
9898
font-optical-sizing: auto;
99-
font-weight: 400;
99+
font-weight: 300;
100100
font-size: 14px;
101101
background: #252627;
102102
}
@@ -173,7 +173,9 @@ a:hover {
173173
}
174174
}
175175

176-
button, input[type=submit], input[type=reset] {
176+
button,
177+
input[type=submit],
178+
input[type=reset] {
177179
background: none;
178180
color: inherit;
179181
border: none;
@@ -202,10 +204,26 @@ button, input[type=submit], input[type=reset] {
202204
align-items: center;
203205
}
204206

207+
.align-start {
208+
align-items: start;
209+
}
210+
205211
.flex-col {
206212
flex-direction: column;
207213
}
208214

209215
.flex-row {
210216
flex-direction: row;
217+
}
218+
219+
.text-start {
220+
text-align: start;
221+
}
222+
223+
.text-center {
224+
text-align: center;
225+
}
226+
227+
.w-100 {
228+
width: 100%;
211229
}/*# sourceMappingURL=global.css.map */

style/global.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

style/global.scss

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ html {
9494
height: 100%;
9595
}
9696

97-
body {
97+
body {
9898
font-family: "Inter", sans-serif;
9999
font-optical-sizing: auto;
100-
font-weight: 400;
100+
font-weight: 300;
101101
font-size: 14px;
102102
background: #252627;
103103
}
@@ -140,7 +140,7 @@ strong {
140140

141141
input {
142142
outline: none;
143-
box-sizing: border-box;
143+
box-sizing: border-box;
144144
}
145145

146146
table {
@@ -173,19 +173,23 @@ a:hover {
173173
}
174174
}
175175

176-
button, input[type="submit"], input[type="reset"] {
177-
background: none;
178-
color: inherit;
179-
border: none;
180-
padding: 0;
181-
font: inherit;
182-
cursor: pointer;
183-
outline: inherit;
176+
button,
177+
input[type="submit"],
178+
input[type="reset"] {
179+
background: none;
180+
color: inherit;
181+
border: none;
182+
padding: 0;
183+
font: inherit;
184+
cursor: pointer;
185+
outline: inherit;
184186
display: flex;
185187
justify-content: center;
186188
align-items: center;
187189
}
188190

191+
192+
// inline styles
189193
.flex {
190194
display: flex;
191195
}
@@ -202,10 +206,26 @@ button, input[type="submit"], input[type="reset"] {
202206
align-items: center;
203207
}
204208

209+
.align-start {
210+
align-items: start;
211+
}
212+
205213
.flex-col {
206214
flex-direction: column;
207215
}
208216

209217
.flex-row {
210218
flex-direction: row;
219+
}
220+
221+
.text-start {
222+
text-align: start;
223+
}
224+
225+
.text-center {
226+
text-align: center;
227+
}
228+
229+
.w-100 {
230+
width: 100%;
211231
}

style/main.css

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
top: 0;
55
background: #ffffff;
66
padding: 42px 28px;
7-
width: auto;
87
text-align: start;
98
margin: 16px;
109
z-index: 9;
@@ -22,9 +21,7 @@
2221
justify-content: end;
2322
}
2423
.header div p {
25-
text-align: center;
2624
font-size: 14px;
27-
font-weight: 300;
2825
color: #98A2B3;
2926
cursor: pointer;
3027
}
@@ -34,26 +31,17 @@
3431

3532
.todo {
3633
background: #ffffff;
37-
display: flex;
38-
justify-content: center;
39-
align-items: start;
40-
flex-direction: column;
4134
border-radius: 4px;
4235
padding: 22px 28px;
4336
border: 1px solid hsl(210, 4%, 30%);
4437
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
4538
}
46-
.todo .tasks {
47-
width: 100%;
48-
}
4939
.todo .tasks-engine {
5040
margin-top: 12px;
5141
}
5242
.todo .tasks-engine h2 {
5343
color: #667085;
54-
text-align: start;
5544
font-size: 12px;
56-
font-weight: 300;
5745
-webkit-user-select: none;
5846
-moz-user-select: none;
5947
user-select: none;
@@ -62,7 +50,6 @@
6250
color: #667085;
6351
text-align: start;
6452
font-size: 12px;
65-
font-weight: 300;
6653
cursor: pointer;
6754
-webkit-text-decoration: underline dotted;
6855
text-decoration: underline dotted;
@@ -80,7 +67,6 @@
8067
align-items: center;
8168
position: relative;
8269
font-size: 14px;
83-
font-weight: 300;
8470
color: #1D2939;
8571
cursor: pointer;
8672
transition: all 0.12s;
@@ -89,7 +75,7 @@
8975
background-color: #0d7261;
9076
}
9177
.todo .tasks-list__item:hover p {
92-
color: white;
78+
color: #ffffff;
9379
}
9480
.todo .tasks-list__item article input[type=checkbox]:checked {
9581
-moz-appearance: none;
@@ -109,14 +95,13 @@
10995
height: 19px;
11096
}
11197
.todo .add-task {
112-
width: 100%;
11398
margin-top: 16px;
11499
}
115100
.todo .add-task button {
116101
width: 50%;
117102
height: 34px;
118103
background: #1D2939;
119-
color: white;
104+
color: #ffffff;
120105
padding: 8px 12px;
121106
border: 1px solid #dfe1e5;
122107
border-left: none;
@@ -134,9 +119,6 @@
134119
}
135120

136121
#rust-logo {
137-
width: 100%;
138-
display: flex;
139-
justify-content: center;
140122
transition: all 0.5s;
141123
position: relative;
142124
left: 0;
@@ -152,6 +134,5 @@
152134
.not-valid {
153135
margin-top: 12px;
154136
font-size: 16px;
155-
font-weight: 300;
156137
color: #1D2939;
157138
}/*# sourceMappingURL=main.css.map */

style/main.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)