-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.css
More file actions
103 lines (87 loc) · 1.7 KB
/
Copy pathApp.css
File metadata and controls
103 lines (87 loc) · 1.7 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
body {
background-color: #C8D0D2;
margin: 0;
}
.container {
max-width: 900px;
margin: 1rem 2rem;
}
.header {
display: flex;
justify-content: flex-end;
align-items: center;
flex-wrap: wrap;
background-color: white;
padding: 0 1.5rem;
box-shadow: 0 0 5px 2px rgba(0, 0, 0, .3);
}
.form-group {
display: flex;
flex-direction: column;
margin: .5rem;
}
.form-group > label {
color: #777;
font-size: .75rem;
margin-bottom: .25rem;
}
.btn {
background-color: hsl(200, 100%, 50%);
color: white;
padding: .5em 1em;
border-radius: .3em;
border: none;
cursor: pointer;
}
.btn:hover {
background-color: hsl(200, 100%, 40%);
}
.card-grid {
display: grid;
align-items: center;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1rem;
}
.card {
display: flex;
justify-content: center;
align-items: center;
position: relative;
border-radius: .25rem;
box-shadow: 0 0 5px 2px rgba(0, 0, 0, .3);
background-color: white;
transform-style: preserve-3d;
transition: 150ms;
cursor: pointer;
transform: perspective(1000px) rotateY(var(--rotate-y, 0)) translateY(var(--translate-y, 0));
}
.card:hover {
--translate-y: -2px;
box-shadow: 0 0 5px 2px rgba(0, 0, 0, .5);
}
.card.flip {
--rotate-y: 180deg;
}
.card .front {
left: 0;
}
.card .front,
.card .back {
position: absolute;
padding: 1rem;
backface-visibility: hidden;
}
.card .back {
transform: rotateY(180deg);
}
.flashcard-options {
margin-top: .5rem;
}
.flashcard-option {
margin-top: .25rem;
color: #555;
font-size: .75rem;
}
.flashcard-option:first-child {
margin-top: 0;
}