-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
executable file
·167 lines (146 loc) · 2.79 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
162
163
164
165
166
167
@font-face {
font-family: "Outfit";
src: url(./font/Outfit-VariableFont_wght.ttf);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.small-image {
vertical-align: text-top;
}
body {
text-align: center;
background-color: hsl(217, 54%, 11%);
font-family: "Outfit";
}
/* Container */
.container-div {
background-color: hsl(216, 50%, 16%);
display: block;
margin-top: 20%;
text-align: center;
padding-top: 20px;
border-radius: 15px;
box-shadow: -10px -10px hsl(217, 54%, 11%), 10px 10px hsl(217, 54%, 11%),
10px 10px hsl(216, 50%, 16%), -10px -10px hsl(216, 50%, 16%);
}
h2,
p,
hr,
.container-div {
display: inline-block;
}
h2,
.crypto {
font-weight: 600;
}
p {
font-weight: 300;
}
/* Big image */
img[alt="Equilibrium"] {
width: 350px;
border-radius: 10px;
margin: auto;
margin-bottom: 0;
display: block;
}
.image-wrapper {
position: relative;
width: 350px;
margin: auto;
}
.image-wrapper::after {
content: " ";
width: 100%;
height: 100%;
margin: auto;
background-color: hsl(178, 100%, 50%);
position: absolute;
top: 0;
left: 0;
opacity: 0.5;
visibility: hidden;
}
.container-wrapper:hover .image-wrapper::after {
visibility: visible;
cursor: pointer;
}
/* View image */
[alt="view"] {
position: absolute;
top: 45%;
left: 45%;
z-index: 1;
visibility: hidden;
cursor: pointer;
}
.container-wrapper:hover [alt="view"] {
visibility: visible;
}
/* Headind and paragraph inside the container-div */
.container-div > h2 {
margin: 25px 9.375rem 10px 0;
}
.container-div > .discription {
width: 250px;
text-align: left;
margin: auto 5.375rem 0 0;
color: hsl(215, 51%, 70%);
}
/* Crypto and Time */
.crypto {
margin: 20px;
}
.container-div > .crypto > .amount {
float: left;
color: hsl(178, 100%, 50%);
}
.container-div > .crypto > .days {
float: right;
color: hsl(215, 51%, 70%);
}
/* Footer section (Profile section) */
.footer img {
width: 35px;
border: 1px solid hsl(0, 0%, 100%);
border-radius: 50%;
}
.footer p {
font-weight: 400;
}
.container-div > .footer {
display: flex;
float: left;
margin: 20px;
margin-right: 150px;
border-top: 1px solid hsl(215, 32%, 27%);
width: 90%;
padding-top: 20px;
}
.container-div > .footer p {
margin: 10px;
color: hsl(215, 51%, 70%);
}
/* Active State */
a:any-link {
color: hsl(0, 0%, 100%);
text-decoration: none;
}
:is(a:active, a:hover) {
color: hsl(178, 100%, 50%);
}
/* Mobile View */
@media screen and (min-width: 375px) {
.container-div {
margin: 20px auto;
}
}
/* Desktop View */
@media screen and (min-width: 1440px) {
.container-div {
margin: 50vw auto;
}
}