-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
128 lines (99 loc) · 3.54 KB
/
Copy pathstyle.css
File metadata and controls
128 lines (99 loc) · 3.54 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
* {
/* Override browser's default CSS styles. For some reason, the margins & paddings appear to be incorrect when these rules are applied to body or html, instead of '*'. */
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* html { /* This rule was part of the Replit template *
height: 100%;
width: 100%;
}
*/
/* DEBUG */
.highlight {
border: 1px solid red;
}
/****************************************************************/
/* COLOR & SIZING SCHEME VARIABLES */
/****************************************************************/
body {
/* Dark color scheme, the default */
--background: #012;
--text: #FFF;
/* These red, green, & blue colors are the default graph colors from Desmos, with their HSB saturation slightly adjusted to 61. */
--red: #B84F48;
--green: #378C47;
--blue: #4471AD;
--accent1: #D8F2A0;
--accent2: #F25C84;
--textInputBackground: #000;
/* Sizing scheme, relative to font size of PARENT element. Exponential change. */
--xxsmaller: 0.486em;
--xsmaller: 0.618em;
--smaller: 0.786em; /* golden ratio to power of -1/2 */
--inherit: 1.000em; /* Default, no need to use this variable explicitly. */
--larger: 1.272em; /* square root of golden ratio */
--xlarger: 1.618em; /* golden ratio */
--xxlarger: 2.058em;
--xxxlarger: 2.618em;
/* Default properties */
font-size: max(2vh, 1rem);
font-family: sans-serif;
background-color: var(--background);
color: var(--text);
}
body * { /* DEBUG */
/* border: 1px solid var(--red); */
}
/* Override some dark theme variables. */
#light-mode {
--background: #DDD;
--text: #000;
/* Source of this gray & the mint and pink from above: https://color.adobe.com/trends/Ui/ux */
/* The accent1 color for dark mode is too light for a light background. */
--accent1: #384D59;
--accent2: #2A1636; /* Kognity */
--textInputBackground: #CCC;
}
/****************************************************************/
/* FONTS */
/****************************************************************/
@font-face {
font-family: 'Noto Sans Math';
src: url('NotoSansMath-Regular.ttf');
}
/* Add a monospaced font, to make more obvious the number of digits */
/****************************************************************/
/* GRID */
/****************************************************************/
main {
/* display: flex; /* centered on both axes */*/
/* justify-content: center;*/
/* align-items: center;*/
width: 100%; /* Hopefully prevent overflow off to the left*/
padding: 5%;
font-family: 'Noto Sans Math';
/* display: grid; /* 4 rows, 3 columns */ /* Add a grid-area CSS property to format the webpage as a grid*/
/* grid-template-areas:*/
/* '. inputA errorTypeA'*/
/* 'operationSelect inputB errorTypeB'*/
/* 'answer answer submit'*/
/* 'summary summary summary'*/
/* grid-template: 4fr 2em 4em 1fr / 2em 4fr 1fr;*/
}
/****************************************************************/
/* GENERAL STYLES */
/****************************************************************/
.numberInput {
display: inline; /* Put both text boxes and the ± symbol in a straight line */
/* background-color: var(--textInputBackground); */
color: var(--text);
}
input[type=text] {
width: min(30%, 12em);
height: 3em;
}
#submit {
width: 12em;
height: 3em;
}