forked from InseeFrLab/torchTextClassifiers
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcustom.css
More file actions
148 lines (123 loc) · 2.69 KB
/
custom.css
File metadata and controls
148 lines (123 loc) · 2.69 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
/* Custom styling for torchTextClassifiers documentation with pydata-sphinx-theme */
/* Improve code block styling */
div.highlight {
border-radius: 6px;
border: 1px solid var(--pst-color-border);
margin: 1em 0;
}
div.highlight pre {
padding: 12px;
overflow-x: auto;
}
/* Better admonition styling */
.admonition {
border-radius: 6px;
padding: 1rem;
margin: 1rem 0;
}
.admonition-title {
font-weight: 600;
margin-bottom: 0.5rem;
}
/* Improve table styling */
table.docutils {
border-collapse: collapse;
width: 100%;
margin: 1em 0;
}
table.docutils td,
table.docutils th {
border: 1px solid var(--pst-color-border);
padding: 0.5rem;
}
table.docutils th {
background-color: var(--pst-color-surface);
font-weight: 600;
}
/* Navigation improvements */
.bd-sidebar {
font-size: 0.9rem;
}
.bd-sidebar .nav-link {
padding: 0.25rem 0.5rem;
}
/* Logo text styling */
.navbar-brand {
font-weight: 600;
font-size: 1.25rem;
}
/* Improve inline code styling */
code.docutils.literal {
background-color: var(--pst-color-surface);
padding: 0.1em 0.4em;
border-radius: 3px;
font-size: 0.9em;
}
/* Better spacing for content */
.bd-content {
padding: 2rem;
}
/* Improve heading spacing */
.bd-content h1 {
margin-top: 0;
margin-bottom: 1.5rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid var(--pst-color-border);
}
.bd-content h2 {
margin-top: 2rem;
margin-bottom: 1rem;
}
.bd-content h3 {
margin-top: 1.5rem;
margin-bottom: 0.75rem;
}
/* Cards and grids (from sphinx-design) */
.sd-card {
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: box-shadow 0.3s ease;
}
.sd-card:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
/* Improve footer spacing */
footer.bd-footer {
margin-top: 3rem;
padding-top: 2rem;
border-top: 1px solid var(--pst-color-border);
}
/* Better responsive images */
img {
max-width: 100%;
height: auto;
border-radius: 4px;
}
/* Improve API documentation layout */
dl.py.class,
dl.py.function,
dl.py.method {
margin-bottom: 2rem;
}
dt.sig {
background-color: var(--pst-color-surface);
padding: 0.5rem 1rem;
border-radius: 4px;
border-left: 3px solid var(--pst-color-primary);
}
dd {
margin-left: 2rem;
margin-top: 0.5rem;
}
/* Parameter list styling */
dl.field-list {
margin-top: 1rem;
}
dl.field-list dt {
font-weight: 600;
margin-bottom: 0.25rem;
}
dl.field-list dd {
margin-left: 1.5rem;
margin-bottom: 0.5rem;
}