-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
168 lines (147 loc) · 2.95 KB
/
main.css
File metadata and controls
168 lines (147 loc) · 2.95 KB
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
162
163
164
165
166
167
168
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Lexend+Deca&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
cursor: default;
}
.body {
height: 95vh;
display: flex;
align-items: center;
justify-content: center;
background: hsl(233, 47%, 7%);
}
.container {
height: 55%;
width: 90%;
display: flex;
flex-wrap: wrap-reverse;
border-radius: 8px;
overflow: hidden;
}
.item-1 {
background: hsl(244, 38%, 16%);
color: hsl(0, 0%, 100%);
flex: 1;
min-width: 300px;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.item-2 {
background: url(./images/image-header-desktop.jpg) center center /cover;
background-blend-mode: luminosity;
background-color: hsl(277, 64%, 61%);
max-width: auto;
min-width: 300px;
height: 100%;
flex: 1;
}
.contentText {
padding: 5px;
height: 75%;
width: 80%;
}
.punchline {
font-weight: 700;
font-size: 2.3rem;
color: hsl(0, 0%, 100%);
font-family: "Lexend Deca", Arial, Helvetica, sans-serif;
}
.punchline span {
color: hsl(277, 64%, 61%);
}
.subline {
font-size: 15px;
color: hsla(0, 0%, 100%, 0.75);
width: 90%;
margin-top: 7%;
font-family: inter;
}
/* figures text */
.figureContainer {
font-size: 2rem;
font-family: "Impact", Haettenschweiler, Arial, sans-serif;
display: flex;
align-items: center;
justify-content: space-between;
}
.figure {
font-weight: 700;
display: flex;
flex-direction: column;
margin-top: 15%;
}
.figure span {
font-weight: normal;
font-size: 13px;
color: hsla(0, 0%, 100%, 0.6);
text-transform: uppercase;
}
/* mobile switch tweek*/
@media screen and (max-width: 867px) {
.body{
height: 155vh ;
}
.container{
height: 130vh;
flex-direction: column;
text-align: center;
}
.figureContainer{
flex-direction: column;
}
.item-1{
flex:2;
order:2;
}
/* attributions on mobile devices */
.attribution{
flex-direction: column;
height:10vh !important;
}
}
/* attribution section */
.attribution{
background: hsl(244, 38%, 16%);
height: 5vh;
color:hsl(277, 64%, 61%);
font-size: 1em;
display: flex;
justify-content:space-between;
align-items: center;
padding:0px 3%;
text-transform: capitalize;
}
.attribution a{
text-decoration: none;
color: azure;
cursor:pointer;
padding:3px;
border-radius: 7px;
font-size: 1.9em;
transition: .35s ease-in-out;
margin-left: 10px;
}
/* hover effect: */
.inf1:hover .font{
background: linear-gradient(30deg, hsl(277, 64%, 61%) 3%,grey 95%);
box-shadow: 0 0 10px hsla(0, 0%, 100%, 0.6);
}
.inf2:hover .nik{
background: linear-gradient(30deg,hsl(277, 64%, 61%) 3%,hsl(244, 38%, 16%) 93%);
box-shadow: 0 0 10px hsla(0, 0%, 100%, 0.6);
}
/* xtreme mobile testing ... attribution section */
@media screen and (max-width:444px) {
.attribution{
height: 100% !important;
}
.attribution *{
display: block;
text-align: center;
margin:10px;
}
}