-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
deck.css
174 lines (148 loc) · 3.38 KB
/
deck.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
168
169
170
171
172
173
174
/* Set deck-specific colours */
:root {
--deck-button-active-colour: #a56961;
--deck-card-text-colour: #555555;
}
/* Display the deck or marketplace as a grid of cards */
.deck, #deck-community {
display: grid;
gap: 0.5rem;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
padding-left: 0.5rem;
padding-right: 0.5rem;
box-sizing: border-box;
}
/* Add border to the cards for better UI/UX */
.card {
border: 1px solid var(--main-border-colour);
}
/* I totally didn't cop this from somewhere I don't even remember */
.card-button-edit {
position: relative;
overflow: hidden;
color: var(--main-background-colour);
background-color: var(--main-accent-colour);
margin-top: 12px;
margin-bottom: 12px;
display: inline-block;
padding: 6px 12px;
text-align: center;
vertical-align: middle;
user-select: none;
-webkit-user-select: none;
background-image: none;
border: 2px solid transparent;
border-radius: 6px;
cursor: pointer;
touch-action: manipulation;
transition: 0.25s;
}
.card-button-edit:after {
content: "";
background: var(--main-border-colour);
display: block;
position: absolute;
padding-top: 300%;
padding-left: 350%;
margin-left: -22px!important;
margin-top: -120%;
opacity: 0;
transition: all 0.8s;
}
.card-button-edit:active:after {
padding: 0;
margin: 0;
opacity: 1;
transition: 0s;
}
.card-button-edit:hover {
color: var(--main-background-colour);
background-color: var(--deck-button-active-colour);
border-color: var(--deck-button-active-colour);
border-radius: 4px;
}
.card-button-edit:active {
border-color: var(--main-accent-colour);
background-color: var(--deck-button-active-colour);
}
/* Some buttons, like the start button may require large text*/
.large-button-text {
font-size: 32px;
border: 6px solid transparent;
border-radius: 12px;
}
/* TF is this??? */
button {
/*text-transform: visible;*/
overflow: visible;
-webkit-appearance: button;
}
/* Make small buttons smaller */
.small-button {
padding: 0 5px;
margin-top: 0;
margin-bottom: 0;
}
main {
width: 100%;
}
/* Configure unordered lists to be left-aligned with some padding and deciman numbers */
ol {
list-style: none;
text-align: left;
padding-right: 40px;
}
ol li {
padding-top: 0.25rem;
text-decoration: none;
list-style-type: decimal;
}
/* override the style of main.css specifically for the deck page, since it doesn't look good with a border */
.header-deck {
border: 0;
}
#new-card-header {
font-size: 7.5rem;
color: var(--deck-card-text-colour);
}
.phrase-card-header {
font-size: 2.25rem;
color: var(--deck-card-text-colour);
}
/* Hide the default file upload widget */
#fileupload {
display: block;
visibility: hidden;
width: 0;
height: 0;
}
#navigation-footer {
width: fit-content;
padding: 0;
margin: auto;
overflow: hidden;
}
#input-mode {
display: grid;
gap: 1rem;
grid-template-columns: repeat(auto-fit, minmax(85px, max-content));
justify-content: center;
margin: auto auto 1rem auto;
}
#input-mode * {
margin: 0;
}
/* Configure input text fields to be border boxes */
input[type=text]::before, input[type=text]::after, input[type=text] {
box-sizing: border-box;
}
/* Configure input text fields to follow our style */
input[type=text] {
max-width: 85%;
font-size: 16px;
font-family: inherit;
padding: 2px 2px 2px 2px;
background-color: var(--main-background-colour);
border: 1px solid var(--main-accent-colour);
border-radius: 4px;
}