-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
145 lines (131 loc) · 2.59 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
/* ================ section_comment_example ================ */
:root {
--primaryPurple: #40445a;
--secondaryPurple: #646686;
/* secondaryPurple is used for alternate rows in table */
--dimWhite: #f2f2f2;
--gray: #3b3b3b;
}
html {
font-size: 62.5%;
/* sets root font size to 10px for easier calculation of rem */
}
body * {
box-sizing: border-box;
}
body {
background-color: var(--primaryPurple);
color: var(--dimWhite);
font-size: 1.6rem;
font-family: monospace;
max-width: 80%;
margin-left: auto;
margin-right: auto;
}
a {
color: var(--dimWhite);
}
header h1 {
text-align: center;
}
/*
header ul {
display: flex;
list-style-type: none;
justify-content: space-evenly;
padding: 0 4rem;
}
*/
header ul {
text-align: center;
padding-inline-start: 0;
}
header li {
display: inline-block;
margin: 0 1rem;
}
legend {
border: 1px solid black;
}
#card-insert-form {
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
}
#card-insert-form > label {
flex-basis: 30%;
}
#card-insert-form textarea{
width: 100%;
}
#card-insert-form span {
display: block;
text-align: center;
}
#card-direction-container {
display: flex;
flex-flow: column;
}
input[type="radio"] {
margin: 3px;
vertical-align: text-top;
}
.hidden {
display: none !important;
}
/* ================ table ================ */
table {
border-collapse: collapse;
border: 2px solid var(--dimWhite);
}
td,
th {
border: 1px solid var(--dimWhite);
padding: 2px;
}
thead, tr:nth-child(even) {
background-color: var(--secondaryPurple);
}
table#editable-cards-table tbody tr{
cursor: pointer;
&:hover {
border: solid var(--dimWhite);
border-width: 3px 0;
}
}
/* ================ tooltip ================ */
.tooltip-question-mark {
display: inline-block;
vertical-align: middle;
height: 1.3em;
width: 1.3em;
border: 1px solid var(--dimWhite);
border-radius: 50%;
opacity: .5;
}
.tooltip-creator {
position: relative;
cursor: help;
}
.tooltip-container {
position: absolute;
left: -10%;
visibility: hidden;
font-size: 1.2rem;
background: var(--gray);
width: 120%;
padding: 5px;
&>ul {
text-align: left;
padding-inline-start: 20px;
}
}
.tooltip-creator:hover {
.tooltip-container { visibility: visible; }
.tooltip-question-mark { opacity: 1; }
}
/* ================ edit dialog ================ */
dialog {
background: var(--secondaryPurple);
color: var(--dimWhite);
}