-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
161 lines (154 loc) · 3.26 KB
/
style.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;700&family=Work+Sans:wght@400;500;700&display=swap');
:root {
--body-bg-color: #121214;
--text-color: #E1E1E6;
--title-color: #04D361;
--form-color: #A8A8A8;
--bg-button-color: #8257e5;
--text: 'League Spartan', sans-serif;
--text-title: 'Work Sans', sans-serif;
}
*{
margin: 0;
padding: 0;
box-sizing: border-box;
color: var(--text-color);
background: var(--body-bg-color);
}
body{
display: grid;
height: 100vh;
grid-template-areas:
"logo img"
"text img"
"form img";
grid-template-rows: 20vh 40vh 40vh;
grid-template-columns: 2fr 1fr;
width: 100%;
height: 100vh;
padding-left: 2vw;
}
main{
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
}
.logo{
grid-area: logo;
margin-bottom: 18vh;
width: 31vw;
}
h1{
grid-area: text;
color: var(--title-color);
width: 50vw;
font-weight: 700;
font-size: 1.3rem;
letter-spacing: .18rem;
font-family: var(--text-title);
}
.p-1{
grid-area: text;
color: var(--text-color);
font-family: var(--text);
font-weight: 700;
margin: 1vh 0;
letter-spacing: .1em;
font-size: 1rem;
}
.p-2{
grid-area: text;
color: var(--text-color);
font-family: var(--text);
font-weight: 400;
line-height: 5vh;
letter-spacing: .15em;
margin: 3vh 0 1vh 0;
}
form{
grid-area: from;
display: flex;
flex-direction: column;
position: relative;
}
label{
color: var(--form-color);
font-family: var(--text);
font-weight: 700;
letter-spacing: .1rem;
font-size: 1rem;
margin: 3vh 0 2vh 0;
}
input{
width: 900px;
height: 8vh;
position: absolute;
z-index: 2;
left: 0;
right: -20vw;
background: var(--text-color);
caret-color: var(--title-color);
padding-left: 2vw;
color: var(--body-bg-color);
border-left: 8px solid var(--title-color);
box-shadow: 14px 9px 37px -7px var(--text-color);
}
.form-control.success input {
border: 3px solid #4ECA64;
}
.form-control.error input {
border: 3px solid #DB5A5A;
}
.form-control.error small{
color: #DB5A5A;
visibility: visible;
}
.form-control small {
visibility: hidden;
height: 2vh;
position: absolute;
margin-top: 9vh;
left: 2vw;
font-size: 1rem;
font-family: var(--text);
}
form > div > img{
background: var(--bg-button-color);
color: white;
padding: 2.4vh 2.2vw;
position: absolute;
top: 7vh;
right: -12vw;
z-index: 2;
box-shadow: 14px 9px 37px -7px var(--text-color);
}
button{
color: var(--bg-button-color);
font-family: var(--text);
font-weight: 700;
font-size: 1rem;
display: flex;
height: 4vh;
align-items: center;
align-self: flex-start;
margin-top: 12vh;
border: none;
}
button:hover{
outline: 1px solid var(--bg-button-color);
opacity: .5;
cursor: pointer;
color: var(--text-color);
}
figure{
position: relative;
z-index: 1;
grid-area: img;
width: 40vw;
height: 100vh;
background-image: url('assets/read_news.jpg');
background-repeat: no-repeat;
background-size: cover;
background-position: bottom 20% left 80%;
}