-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
169 lines (148 loc) · 4.67 KB
/
styles.css
File metadata and controls
169 lines (148 loc) · 4.67 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
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
/*
This sylesheet is part of civboot and is public domain.
Brief CSS selector tutorial.
x { ... } changes the properties of selector 'x'.
Selectors:
'*' is the universal selector, changes EVERY element.
'html, nav, h1' etc are html element selectors.
'.foo' is a class selector, i.e. <div class=foo>
a.foo only applies to <a class=foo> and can override 'a' properties.
a:hover is a builtin "pseudo class" of an action associated with 'a'
Space: i.e. '.list li, tr' selects all 'li' or 'tr' descendents of a
class=list element (class=table uses this).
size units:
em is relative unit ~1 character in size.
% is relative to total screen dimension.
rgb(red,green,blue,opacity) color 0-255, opacity [0-1.0]
Main properties:
color: text and border color.
margin: space around _outside_ of element's border.
padding: space around _inside_ of element's border.
border: set border width/etc.
border-radius: make border curved.
Other properties are largely self-documenting or documented inline.
*/
* { margin: 0; padding: 0; }
html {
font-family: Helvetica, sans-serif;
color: white; background-color: rgb(18,17,17,1.0);
overflow-wrap: break-word; /*split words if screen too small*/
line-height: 1.3;
}
nav { margin-top: 0.5em; margin-left: 0.5em; font-size: 1.6em; }
.nav {
color: gold;
margin-left: 0.5em; padding-left: 0.1em; padding-right: 0.1em;
}
.nav-selected {
color: rgb(18,17,17,1.0); background-color: gold;
}
.doc {
margin: 1% 2% 1% 2%;
padding: 1% 0.5% 1% 0.5%;
border-radius: 2%;
background-color: rgb(43,43,43,1.0);
}
/* general elements */
h1, h2, h3, h4, h5, h6 {
margin-bottom: 0.2em;
font-weight: normal; letter-spacing: 0.02em;
text-shadow: 0.1em 0.1em 0.05em black /*off-x+y blur-radius clr*/;;
width: fit-content; max-width: 95%;
}
p { margin-top: 0.5em; }
h1 { font-size: 3.0rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2.0rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.2rem; }
ul, ol { margin-top: 0.1em; margin-bottom: 0.2em; }
li { margin-left: 1em; margin-top: 0.05em; }
a {
text-decoration: none;
cursor: pointer;
color: cyan;
text-shadow: 0.1em 0.1em 0.08em dimgrey /*off-x+y blur-radius clr*/;
transition: 0.3s;
}
a:visited { color: turquoise; }
a:hover {
text-shadow: none;
color: dimgrey; background-color:cyan;
border-radius: 0.3em;
}
a.anchor {
color: gold;
}
table { font-size: inherit; }
/* table class */
.table { overflow-x: auto }
.table /*descdendents of class=table:*/ table, th, td {
vertical-align: top; text-align: left;
border-collapse: collapse; /* don't double-up borders */
border: 0.1em solid grey;
margin: 0.2em 0.2em; /*top rgt*/
padding: 0.1em 0.2em; /*top rgt*/
}
.table table { min-width: 30%; }
.table th {
color: white; background-color: darkgreen;
}
/* code */
.code {
font-family: "Ubuntu Mono", "DejaVu Sans Mono", Menlo, monospace;
color: white; background-color: black;
padding-left: 0.1em; padding-right: 0.1em;
}
.code-block {
font-family: "Ubuntu Mono", "DejaVu Sans Mono", Menlo, monospace;
color: white; background-color: black;
margin: 0.2em 1% 0.4em 1% /*top rgt bot lft*/;
padding: 0.2em 0.2em 0 0.2em /*top rgt bot lft*/;
border-top: 0.4em solid limegreen; border-left: 0.2em solid limegreen;
border-top-left-radius: 0.4em;
width: fit-content; min-width: 30%;
/* Makes a scrollbar if any line is too long. */
max-width: 95%; white-space: nowrap; overflow-x: auto;
scrollbar-color: limegreen black;
}
/* quote blocks */
.info {
background-color: midnightblue;
border-top: 0.5em solid SteelBlue; border-left: 0.3em solid SteelBlue;
border-radius: 0.4em 0 0.4em 0;
margin-left: 0.4em; padding-left: 2%; padding-right: 5%;
width: fit-content; min-width: 30%;
box-shadow: rgb(18,17,17,0.3) 0.4em 0.3em /* clr rgt dwn */;
}
.warn {
background-color: darkred;
border-top: 0.5em solid OrangeRed; border-left: 0.3em solid OrangeRed;
border-radius: 0.4em 0 0.4em 0;
margin-left: 0.4em; padding-left: 5%; padding-right: 2%;
width: fit-content; min-width: 30%;
box-shadow: rgb(18,17,17,0.3) 0.4em 0.3em /* clr rgt dwn */;
}
/*syntax highlighting*/
.syn-kw { color: firebrick; font-weight: bold; }
.syn-call { color: cyan; }
.syn-string { color: limegreen; }
.syn-name, a.syn-name { color: limegreen; font-weight: bold; }
.syn-comment { color: white; background-color: rgb(43,43,43,1.0); }
/* Specific screen size overrides */
@media (min-width:481px) { /* phones */
html {
font-size: 1.1em;
}
}
@media (min-width:1025px) { /* laptops */
html {
font-size: 1.4em;
}
.doc {
margin: 0.5rem 1.5rem 0.5rem 1.5rem;
padding: 0.5rem 1rem 0.5rem 1rem;
border-radius: 1.5rem;
}
}