Skip to content

Commit 301d275

Browse files
authored
[v2] refactor, improvements to UX/UI and new controls
1 parent b6a37a0 commit 301d275

39 files changed

+1956
-16911
lines changed

‎css/base.css‎

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@
2323
--gray-20:#fafafa;
2424
--root-font-size:14px;
2525
--radius:2px;
26-
--accent:255,170,51;
26+
--accent:0,255,0;
2727
--line-width:3px;
2828
--background:var(--gray-01);
29-
--animation-speed-fast:0.1s;
30-
--animation-speed-medium:0.2s;
31-
--animation-speed-slow:0.3s;
29+
--gutter:0.5em;
30+
--animation-speed-fast:0.2s;
31+
--animation-speed-medium:0.3s;
32+
--animation-speed-slow:0.4s;
3233
--font-regular:"Open Sans Regular", sans-serif;
3334
--font-bold:"Open Sans Bold", sans-serif;
3435
--font-light:"Open Sans Light", sans-serif;
@@ -38,7 +39,7 @@
3839
--breakpoint-sm:550px;
3940
--breakpoint-md:700px;
4041
--breakpoint-lg:900px;
41-
--breakpoint-xl:1300px;
42+
--breakpoint-xl:1100px;
4243
}
4344

4445
:root.is-link-block{
@@ -57,6 +58,7 @@
5758
:root{
5859
--root-font-size:16px;
5960
}
61+
6062
:root.is-link-block{
6163
--link-height:9em;
6264
}
@@ -75,11 +77,6 @@ body{
7577
background-color:var(--background);
7678
color:var(--white);
7779
font-size:1rem;
78-
width:100vw;
79-
height:100vh;
80+
line-height:1.6;
8081
font-family:var(--font-regular);
8182
}
82-
83-
*{
84-
box-sizing: border-box;
85-
}

‎css/button.css‎

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ input[type="button"],
44
input[type="reset"],
55
input[type="submit"]{
66
background-color:var(--gray-02);
7-
padding:0.25em1em;
7+
padding:0.125em1em;
88
margin:001em0;
9-
color:var(--gray-16);
9+
color:var(--gray-12);
1010
font-size:1em;
1111
font-family:var(--font-regular);
1212
min-height:2.5em;
@@ -22,7 +22,7 @@ input[type="submit"]{
2222
white-space: nowrap;
2323
cursor: pointer;
2424
box-shadow: none;
25-
transition: all var(--animation-speed-medium) ease-in-out;
25+
transition: all var(--animation-speed-fast) ease-in-out;
2626
display: inline-flex;
2727
flex-direction: row;
2828
justify-content: center;
@@ -85,9 +85,14 @@ button [class*=" icon-"],
8585
font-size:0.8em;
8686
}
8787

88+
.button-block{
89+
display: flex;
90+
width:100%;
91+
}
92+
8893
.button-group{
8994
margin:001em0;
90-
display: flex;
95+
display:inline-flex;
9196
justify-content: center;
9297
align-items: stretch;
9398
}
@@ -99,12 +104,14 @@ button [class*=" icon-"],
99104
}
100105

101106
.button-groupbutton:first-child,
102-
.button-group .button:first-child{
107+
.button-group .button:first-child,
108+
.button-group .button-group-addon:first-child{
103109
border-radius:var(--radius) 00var(--radius);
104110
}
105111

106112
.button-groupbutton:last-child,
107-
.button-group .button:last-child{
113+
.button-group .button:last-child,
114+
.button-group .button-group-addon:last-child{
108115
border-radius:0var(--radius) var(--radius) 0;
109116
}
110117

‎css/clock.css‎

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,52 @@
11
.clock{
22
margin:0;
33
padding:0;
4-
width:100%;
4+
border-radius:var(--radius);
5+
font-size:1em;
56
font-family:var(--font-fjalla);
6-
font-size:1.5em;
77
color:var(--white);
8-
text-align: center;
8+
width:100%;
9+
min-height:2.5em;
910
display: flex;
1011
flex-direction: row;
1112
justify-content: center;
12-
transition: all var(--animation-speed-medium) ease-in-out;
13+
flex-wrap: nowrap;
14+
}
15+
16+
.clock-seperator,
17+
.clock-hours,
18+
.clock-minutes,
19+
.clock-seconds,
20+
.clock-meridiem{
21+
font-size:1.5em;
22+
display: flex;
23+
justify-content: center;
24+
align-items: center;
1325
}
1426

1527
.clock-seperator{
28+
min-width:0.5em;
1629
color:rgb(var(--accent));
1730
}
1831

19-
.clock-hour,
32+
.clock-hours,
2033
.clock-minutes,
21-
.clock-seconds{
22-
min-width:1.75em;
23-
display: block;
34+
.clock-seconds,
35+
.clock-meridiem{
36+
min-width:1.25em;
37+
}
38+
39+
.clock [class^="clock-"]:not(:first-child),
40+
.clock [class*=" clock-"]:not(:first-child){
41+
margin-left:0.125em;
2442
}
2543

26-
.clock-hour{
44+
.clock [class^="clock-"]:not(:last-child),
45+
.clock [class*=" clock-"]:not(:last-child){
46+
margin-right:0.125em;
47+
}
48+
49+
.clock-hours{
2750
color:var(--white);
2851
}
2952

@@ -34,3 +57,7 @@
3457
.clock-seconds{
3558
color:var(--gray-12);
3659
}
60+
61+
.clock-meridiem{
62+
color:var(--gray-10);
63+
}

‎css/container.css‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
.container{
2+
margin-left: auto;
3+
margin-right: auto;
4+
transition: all var(--animation-speed-fast) ease-in-out;
5+
}
6+
7+
.is-layout-fluid .container,
8+
.is-layout-wide .container,
9+
.is-layout-thin .container{
10+
width:calc(100vw-4em);
11+
}
12+
13+
@media (min-width:550px){
14+
.is-layout-wide .container{
15+
width:80vw;
16+
}
17+
18+
.is-layout-thin .container{
19+
width:60vw;
20+
}
21+
}
22+
23+
@media (min-width:900px){}
24+
25+
@media (min-width:1000px){
26+
.is-layout-wide .container{
27+
width:75vw;
28+
}
29+
30+
.is-layout-thin .container{
31+
width:40vw;
32+
}
33+
}
34+
35+
@media (min-width:1600px){
36+
.is-layout-wide .container{
37+
width:70vw;
38+
}
39+
.is-layout-thin .container{
40+
width:30vw;
41+
}
42+
}
43+
44+
@media (min-width:1600px){}

0 commit comments

Comments
(0)