Skip to content
This repository was archived by the owner on Oct 19, 2021. It is now read-only.

Commit 4ce2987

Browse files
committed
Remove uneeded code, rearrange & tidy up code
1 parent 7f7b970 commit 4ce2987

File tree

7 files changed

+35
-41
lines changed

7 files changed

+35
-41
lines changed

css/styles.css

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,13 @@ img {
2929
}
3030
button {
3131
cursor: pointer;
32-
font-size: 1em;
33-
padding: 8px 10px;
34-
border-radius: 4px;
3532
}
3633
button:disabled {
3734
background: #b9b9b9;
3835
color: #3b3b3b;
3936
cursor: not-allowed;
4037
}
41-
/* display/structure */
38+
/* display - structure & images */
4239
.block {
4340
display: block;
4441
}
@@ -107,14 +104,6 @@ button:disabled {
107104
.x-auto {
108105
overflow-x: auto;
109106
}
110-
/* class styles */
111-
.error {
112-
color: #e40101;
113-
}
114-
.error-bold {
115-
color: #e40101;
116-
font-weight: bold;
117-
}
118107
.img-wrapper {
119108
display: flex;
120109
justify-content: center;
@@ -133,11 +122,20 @@ button:disabled {
133122
max-width: 100%;
134123
height: auto;
135124
}
125+
/* text or bg color styles */
126+
.error {
127+
color: #e40101;
128+
}
129+
.error-bold {
130+
color: #e40101;
131+
font-weight: bold;
132+
}
133+
/* btn color styles */
136134
.btn-default {
137135
background: #2f80ed;
138136
color: #fefefe;
139137
}
140-
.btn-default-2 {
138+
.btn-transparent {
141139
background: transparent;
142140
color: #2f80ed;
143141
border: 1px solid #2f80ed;

less/00-helpers/mixins.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747

4848

4949

50-
5150
//mixins
5251

5352
.width(@width-value) {

less/01-base/fonts.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
@import (css) url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;500&display=swap');
22
@import (css) url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600&display=swap');
3-
//@josefin: 'Josefin Sans', sans-serif;

less/01-base/reset.less

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ img {
2323

2424
button {
2525
cursor: pointer;
26-
font-size: 1em;
27-
padding: 8px 10px;
28-
border-radius: 4px;
2926
}
3027

3128
button:disabled {
Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
/* class styles */
2+
/* text or bg color styles */
33

44
.@{err} {
55
@color-red();
@@ -10,30 +10,14 @@
1010
font-weight: bold;
1111
}
1212

13-
//-----------------
14-
15-
.img-wrapper {
16-
.flex-center();
17-
@x-hidden();
18-
}
19-
20-
.img-wrapper-rounded { /*round img-wrapper*/
21-
.flex-center();
22-
@x-hidden();
23-
border-radius: 50%;
24-
}
25-
26-
.img-default {
27-
max-width: @100-tage;
28-
height: auto;
29-
}
13+
/* btn color styles */
3014

3115
.btn-default {
3216
background: @collabo-blue;
3317
color: @white-99;
3418
}
3519

36-
.btn-default-2 {
20+
.btn-transparent {
3721
background: transparent;
3822
color: @collabo-blue;
3923
border: 1px solid @collabo-blue;
@@ -43,4 +27,3 @@
4327
background: @red-color;
4428
color: @white-99;
4529
}
46-

less/02-style/display.less

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
/* display/structure */
2+
/* display - structure & images */
33

44
.block {
55
@block();
@@ -72,3 +72,22 @@
7272
.x-auto {
7373
@x-auto();
7474
}
75+
76+
77+
//--- Image display ---------
78+
79+
.img-wrapper {
80+
.flex-center();
81+
@x-hidden();
82+
}
83+
84+
.img-wrapper-rounded { /*round img-wrapper*/
85+
.flex-center();
86+
@x-hidden();
87+
border-radius: 50%;
88+
}
89+
90+
.img-default {
91+
max-width: @100-tage;
92+
height: auto;
93+
}

less/styles.less

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@
99

1010
//02-style - classes & elements
1111
@import './02-style/display.less';
12-
@import './02-style/class.less';
13-
12+
@import './02-style/color.less';

0 commit comments

Comments
 (0)