-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
122 lines (105 loc) · 2.27 KB
/
main.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
* {
box-sizing: border-box;
padding: 0;
margin: 0;}
body {
font-family: 'Hi Melody', cursive;
font-size: 150%}
a {
text-decoration: none;
display: inline-block}
.container {
max-width: 28.125rem;
margin: 0 auto;
background: #dd0;
padding: 2rem 5rem .6rem;}
h1 {
padding: 0.4rem;
background: #333;
color: #fff;
line-height: 1;
text-align: center;
font-weight: 500;}
.input-control {
margin-bottom: 1.25rem;
user-select: none;
display: flex;
align-items: center;
position: relative;
white-space: nowrap;}
input[type=checkbox] {
visibility: hidden;
margin-right: 5px;
position:relative;}
input[type=checkbox]::before {
content: "";
display: inline-block;
width: 14px;
height: 14px;
margin-top: -1.3px;
background: #fff;
border: 1px solid #ccc;
box-sizing: border-box;
visibility: visible;}
.fab, .far {
vertical-align: middle;
width: 1rem;
font-size: 1rem;}
.check-icon {
position: absolute;
left: 1.1%;
font-size: 7.8px;
z-index: 100;
color: #fff;
display: none;}
label {
position:relative;
margin-left: 4px;
color: #333;}
label::before {
content: "";
width: 0;
height: 14px;
background: rgb(80, 140, 0);
opacity: 0;
position: absolute;
top: 23%;
transform: skewX(-10deg);
transition: width .25s ease-in-out, opacity .5s ease-in-out;}
/* Button */
.btn-wrap {text-align: center}
#button {
padding: .6rem 1rem;
text-transform: uppercase;
font-family: 'Hi Melody', cursive;
font-size: 1rem;
background: #fff;
color: #333;
border: 1px solid #ccc;
outline: 0;
transition: all .25s}
#button:active {border-color: #755;}
input[type=checkbox]:active::before {
background: rgba(80, 140, 0, 0.4);}
/* Footer icons */
.social-l-box {
text-align: center;
white-space: nowrap;
font-size: .87rem;
margin-top: 2rem;}
.social-l-box label {
color: #755;
margin: 0 .4rem;
cursor: pointer;}
.social-l-box .fab {
font-size: inherit;
width:auto;}
/* CHECKED FUNCs */
input[type=checkbox]:checked::before {
background: rgb(80, 140, 0);
border-color: rgba(150, 180, 0);}
input[type=checkbox]:checked ~ label::before {
width: 100%;
opacity: 0.4;
transition: width .35s ease-in-out, opacity .25s ease-in-out;}
input[type=checkbox]:checked + .check-icon {display: inline;}