-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathstyle.css
More file actions
180 lines (160 loc) · 3.84 KB
/
style.css
File metadata and controls
180 lines (160 loc) · 3.84 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
168
169
170
171
172
173
174
175
176
177
178
179
180
/* global lowercase text styling */
* {
text-transform: lowercase !important;
}
/* preserve code formatting - exclude code blocks and inline code */
code,
pre,
pre *,
code *,
.code-group code,
.code-group pre,
[class*="highlight"] code,
[class*="highlight"] pre,
kbd {
text-transform: none !important;
}
/* remove all rounded corners site-wide */
*,
*::before,
*::after {
border-radius: 0 !important;
}
/* pricing calculator button styling */
:root {
--btn-selected-bg: #CAB168;
--btn-border: #000;
}
/* style sidebar titles */
#navigation-items .sidebar-group-header #sidebar-title{
font-weight: bold;
font-size: 15px;
}
/* move nested nav arrows to the right */
#navigation-items li[data-title] > button.group,
#navigation-items li[data-title] > div.group {
width: 100% !important;
flex-direction: row-reverse !important;
justify-content: space-between !important;
}
#navigation-items li[data-title] > button.group > svg,
#navigation-items li[data-title] > div.group > svg {
margin-right: 0 !important;
margin-left: 0 !important;
}
/* enhanced table styling - matches code group design */
.prose table,
article table,
table {
width: 100% !important;
border-collapse: separate !important;
border-spacing: 0 !important;
border-radius: 0 !important;
overflow: hidden !important;
border: 1px solid rgb(var(--gray-950) / 0.1) !important;
background-color: rgb(249, 250, 251) !important;
margin: 0 !important;
display: table !important;
}
/* table headers */
.prose table thead th,
article table thead th,
table thead th {
padding: 10px 16px !important;
text-align: left !important;
font-weight: 600 !important;
font-size: 0.875rem !important;
line-height: 1.5rem !important;
background-color: rgba(0, 0, 0, 0.02) !important;
border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
word-wrap: break-word !important;
word-break: break-word !important;
overflow-wrap: break-word !important;
white-space: normal !important;
max-width: 0 !important;
}
/* table body */
.prose table tbody tr,
article table tbody tr,
table tbody tr {
transition: background-color 0.15s ease !important;
border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}
.prose table tbody tr:last-child,
article table tbody tr:last-child,
table tbody tr:last-child {
border-bottom: none !important;
}
.prose table tbody tr:hover,
article table tbody tr:hover,
table tbody tr:hover {
background-color: rgba(0, 0, 0, 0.02) !important;
}
.prose table tbody td,
article table tbody td,
table tbody td {
padding: 10px 16px !important;
font-size: 0.875rem !important;
line-height: 1.5rem !important;
word-wrap: break-word !important;
word-break: break-word !important;
overflow-wrap: break-word !important;
white-space: normal !important;
max-width: 0 !important;
min-width: 130px !important;
}
/* code in tables */
.prose table code,
article table code,
table code {
font-size: 0.8125rem !important;
padding: 2px 6px !important;
border-radius: 0 !important;
}
/* first column bold for reference tables */
.prose table tbody td:first-child,
article table tbody td:first-child,
table tbody td:first-child {
font-weight: 500 !important;
}
/* tinker box responsive layout */
.tinker-box {
display: flex;
flex-direction: column;
gap: 32px;
padding: 32px;
border: 1px solid rgba(0, 0, 0, 0.12);
margin-top: 2rem;
margin-bottom: 2rem;
}
.tinker-box-row {
display: flex;
align-items: center;
gap: 32px;
}
.tinker-box-content {
display: flex;
flex-direction: column;
gap: 32px;
flex: 1;
min-width: 0;
}
.tinker-box-content button {
width: 100% !important;
max-width: 100% !important;
}
@media (max-width: 640px) {
.tinker-box {
padding: 24px;
gap: 24px;
}
.tinker-box-row {
flex-direction: column;
align-items: stretch;
gap: 24px;
width: 100%;
}
.tinker-box-content {
width: 100%;
}
}