forked from unstoppabledomains/dev-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
196 lines (158 loc) · 3.9 KB
/
Copy pathmain.css
File metadata and controls
196 lines (158 loc) · 3.9 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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
:root {
--ud-blue: #0D67FE;
--ud-sky-blue: #00C9FF;
--video-max-width: 100%;
--video-aspect-ratio: calc(9/16);
}
figure {
margin-left: 0;
margin-right: 0;
}
figure :is(p, img, figcaption) {
text-align: center;
}
/* Redocly-generated img is wrapped in <p> tag, which adds block start/end margins */
figure p {
margin-block: 0;
}
figure .video-container, figure > p > img, figure .gatsby-resp-image-wrapper {
-webkit-filter: drop-shadow(0 0 1px #000);
filter: drop-shadow(0 0 1px #000);
}
figure .gatsby-img-attributes {
display: inline-block!important;
}
figure p img {
/* Center markdown images inside of their generated wrapping <p> tags */
vertical-align: middle;
}
figure figcaption {
margin-top: 0.5em;
}
figcaption {
font-size: 16px;
color: #A0A0A0;
}
.custom-next-to {
padding-top: 25px;
padding-bottom: 10px;
display: flex;
justify-content: flex-end;
}
.custom-next-to p {
margin-block: 0;
}
.custom-next-to a {
padding: 8px 20px;
font-size: 14px;
font-weight: 600;
outline: none;
border: none;
border-radius: 4px;
background-color: #ffffff;
color: #3E4C59!important;
box-shadow: none;
-webkit-transition: background-color 0.25s ease, box-shadow 0.25s ease;
transition: background-color 0.25s ease,box-shadow 0.25s ease;
}
.custom-next-to a strong {
font-weight: 800;
}
.custom-next-to a:hover {
background-color:#f2f2f2;
box-shadow:0px 0px 12px 0px rgba(0,0,0,0.1);
}
.one-third-inline-block {
vertical-align: top;
width: 32%;
display: inline-block;
margin-left: 0.5%;
margin-right: 0.5%;
}
.half-inline-block {
vertical-align: top;
width: 48%;
display: inline-block;
margin-left: 0.5%;
margin-right: 0.5%;
}
@media only screen and (max-width: 450px) {
figure img {
min-width: 85%;
}
.one-third-inline-block {
width: 99%;
}
.half-inline-block {
width: 99%;
}
}
.video-container {
position: relative;
max-width: var(--video-max-width);
/* calculate height based on aspect ratio (or default to 16:9) and clamp based on max-width */
padding-bottom: min(
calc(var(--video-aspect-ratio) * 100%),
calc(var(--video-aspect-ratio) * var(--video-max-width))
);
height: 0;
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
/*
Custom styles for Redocly code block tabs
*/
.code-snippets-tabs .snippets-tabs-headers {
background-color: grey;
border-radius: 4px 4px 0 0!important;
}
.code-snippets-tabs .snippets-tabs-headers .tab-header {
color: lightgrey!important;
}
.code-snippets-tabs .snippets-tabs-headers .tab-header:first-of-type {
border-top-left-radius: 4px;
}
.code-snippets-tabs .snippets-tabs-headers .tab-header:last-of-type {
border-top-right-radius: 4px;
}
.code-snippets-tabs .snippets-tabs-headers .tab-header.active {
color: white!important;
background-color: #323F4B;
border-bottom: 2px solid var(--ud-blue);
}
.code-snippets-tabs .tab-content {
margin: 0!important;
}
.code-snippets-tabs .gatsby-highlight pre {
border-radius: 0 0 4px 4px!important;
}
/* Goofy hack to hide the TOC panel in most of "medium" breakpoint */
@media only screen and (max-width: 1050px) {
#gatsby-focus-wrapper > div > div > div > div > section {
width: 90%!important;
}
#gatsby-focus-wrapper > div > div > div > div > aside {
display: none!important;
}
}
.padding-top-bottom-10 {
padding-top: 10px !important;
padding-bottom: 10px !important;
}
.padding-top-bottom-20 {
padding-top: 20px !important;
padding-bottom: 20px !important;
}
.margin-top-bottom-20 {
margin-top: 20px !important;
margin-bottom: 20px !important;
}
.margin-top-bottom-30 {
margin-top: 30px !important;
margin-bottom: 30px !important;
}