File: sample.css

package info (click to toggle)
sphinx-basic-ng 1.0.0~beta2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 504 kB
  • sloc: python: 179; makefile: 5
file content (204 lines) | stat: -rw-r--r-- 3,159 bytes parent folder | download | duplicates (2)
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
/*
  This file doesn't really do much, and shouldn't be used as a basis of a theme.
  However, hopefully this does demonstrate that theme authors still need to
  write their own CSS for their theme.
*/

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
}

/*
  Announcement
*/
.site-announcement {
  background-color: #111;
  color: white;
  width: 100%;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
/*
  Header
*/
.sb-header label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  width: 2rem;
}

@media (max-width: 76rem) {
  .sb-header {
    border-bottom: 1px solid lightgray;
    height: 2rem;
  }
  .sb-header label[for="sb-sidebar-toggle--primary"] {
    float: left;
  }
  .sb-header label[for="sb-sidebar-toggle--secondary"] {
    float: right;
  }
}

/*
  Content
*/
h1 {
  margin-top: 1.5rem;
  font-size: 2rem;
}
h2 {
  font-size: 1.75rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}
h5 {
  font-size: 1.125rem;
}
h6 {
  text-transform: uppercase;
}
h1 .headerlink,
h2 .headerlink,
h3 .headerlink,
h4 .headerlink,
h5 .headerlink,
h6 .headerlink {
  visibility: hidden;
  text-decoration: none;
}
h1:hover .headerlink,
h2:hover .headerlink,
h3:hover .headerlink,
h4:hover .headerlink,
h5:hover .headerlink,
h6:hover .headerlink {
  visibility: visible;
}

/* Links */
a[href] {
  color: #0275d8;
  text-decoration: none;
}
a[href]:hover {
  color: #01447e;
  text-decoration: underline;
}

/*
  Sidebar (left)
*/
.sb-sidebar-primary {
  background: white;
}
/* Site name */
.site-name {
  margin: 1rem 2rem;
  font-size: 1.25rem;
}
.site-name a {
  color: inherit;
}
.site-name a:hover {
  text-decoration: none;
}

/* Search */
.search-container {
  margin: 1rem 2rem;
}
.search-input {
  box-sizing: border-box;
  width: 100%;
  padding: 0.5rem;

  font-size: 0.75rem;

  border: 0;
  border-radius: 0.25rem;

  background: #f8f9fa;
  color: black;
}

/* TOC tree */
.toctree-container {
  margin: 1rem 2rem;
  font-size: 0.875rem;
}
.toctree-container ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}
.toctree-container ul > li {
  padding: 0;
  padding-top: 0.5rem;
}
.toctree-container > ul {
  padding-left: 0;
}
.toctree-container > ul:first-child > li:first-child {
  padding-top: 0;
}
.toctree-container p.caption {
  margin-bottom: 0;
}

/*
  Sidebar (right)
*/
.sb-sidebar-secondary {
  background: white;
}
/* Table of contents */
.toc-container ul {
  font-size: 0.875rem;
  list-style: none;
  padding-left: 1rem;
}
.toc-container li {
  padding-top: 0.325rem;
}

/*
  Page footer
*/
.related-pages {
  height: 3rem;
  margin: 1rem 0;
}
.related-pages .context {
  font-size: 0.75rem;
  color: gray;
}
.related-pages a:hover {
  text-decoration: none;
}
.related-pages a:hover .title {
  text-decoration: underline;
}
.related-pages .next-page {
  height: 3rem;
  max-width: 50%;
  float: right;
  clear: right;
  text-align: right;
}
.related-pages .prev-page {
  height: 3rem;
  max-width: 50%;
  float: left;
  clear: left;
  text-align: left;
}