-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdesign.css
More file actions
137 lines (115 loc) · 2.47 KB
/
Copy pathdesign.css
File metadata and controls
137 lines (115 loc) · 2.47 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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
}
body{
display: flex;
justify-content: center;
align-items: center;
background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
flex-direction: column;
}
section{
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
section h2{
margin-bottom: 1.7rem;
position: relative;
background-image: linear-gradient(-20deg, #d558c8 0%, #24d292 100%);
height: 3rem;
width: 8rem;
text-align: center;
align-content: center;
border-radius: 5px;
color: #19271e;
}
.mainDiv{
display: grid;
grid-template-columns: repeat(4, 6.6rem);
grid-template-rows: repeat(4, 6.6rem);
grid-gap: 2rem;
perspective: 800px;
}
.singleCard{
height: 100%;
width: 100%;
position: relative;
transform-style: preserve-3d;
transition: transform 1s;
box-shadow: 0px 5px 15px rgb(0, 0, 0,0.3);
}
.imgSide,.backsideCard{
height: 100%;
width: 100%;
position: absolute;
backface-visibility: hidden;
pointer-events: none;
}
.imgSide{
transform: rotateY(180deg);
}
.backsideCard{
/* background-color: rgb(67, 67, 33); */
background-image: linear-gradient(to right, #ff758c 0%, #ff7eb3 100%);
}
.toggleCard{
transform: rotateY(180deg);
}
.resetBtn{
background-color: cornflowerblue;
height: 2rem;
width: 7rem;
border: none;
border-radius: 4px;
cursor: pointer;
position: absolute;
bottom: 1.7rem;
padding: 5px 12px;
font-weight: bold;
font-size: 15px;
}
.resetBtn:active{
transform: scale(0.90);
transition: 0.1s ease;
}
h1{
position: absolute;
top: 0.8rem;
font-style: italic;
word-spacing: 3rem;
letter-spacing: 2rem;
font-weight: bolder;
font-family: serif;
font-size: 3rem;
background-image: linear-gradient(to top, #09203f 0%, #0569ff 100%);
background-clip: text;
color: transparent;
}
/* Make ability for small device */
@media(max-width:780px){
.mainDiv{
grid-template-columns: repeat(4,5rem);
grid-template-rows: repeat(4,5rem);
}
h1{
display: none;
}
section{
margin-top: -4.5rem;
}
.resetBtn{
bottom: 9rem;
}
}
@media(max-width:460px){
.mainDiv{
grid-template-columns: repeat(4, 4rem);
grid-template-rows: repeat(4, 4rem);
}
}