-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.scss
126 lines (111 loc) · 2.48 KB
/
main.scss
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
@import url("https://fonts.googleapis.com/css2?family=Righteous&display=swap");
body-container {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
font-family: "Righteous", cursive;
min-height: 100vh;
background-color: #a9c9ff;
background-image: linear-gradient(180deg, #a9c9ff 0%, #ffbbec 100%);
}
.container {
max-width: 100vw;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
grid-gap: 35px;
margin: 0 auto;
padding: 40px 0;
.card {
position: relative;
width: 300px;
height: 400px;
margin: 0 auto;
cursor: pointer;
background: #000;
border-radius: 15px;
box-shadow: 0 15px 60px rgba(0, 0, 0, 0.5);
.face {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
&.face1 {
box-sizing: border-box;
padding: 20px;
h2 {
margin: 0;
padding: 0;
}
.java {
background-color: #fffc00;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.python {
background-color: #00fffc;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.cSharp {
background-color: #fc00ff;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
}
&.face2 {
transition: 0.5s;
h2 {
margin: 0;
padding: 0;
font-size: 10em;
color: #fff;
transition: 0.5s;
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
z-index: 10;
}
}
}
}
.card:hover .face.face2 {
height: 60px;
h2 {
font-size: 2em;
}
}
.card:nth-child(1) .face.face2 {
background-image: linear-gradient(
40deg,
#fffc00 0%,
#fc00ff 45%,
#00fffc 100%
);
border-radius: 15px;
}
.card:nth-child(2) .face.face2 {
background-image: linear-gradient(
40deg,
#fc00ff 0%,
#00fffc 45%,
#fffc00 100%
);
border-radius: 15px;
}
.card:nth-child(3) .face.face2 {
background-image: linear-gradient(
40deg,
#00fffc 0%,
#fc00ff 45%,
#fffc00 100%
);
border-radius: 15px;
}
}