|
41 | 41 | .article-grid-body { |
42 | 42 | grid-area: bottom; |
43 | 43 | } |
44 | | - |
45 | | -/* Deprecation banner |
46 | | -------------------------------------------------------------------------------*/ |
47 | | -.deprecation-banner { |
48 | | - & + .alert { |
49 | | - margin-top: 5px; |
50 | | - } |
51 | | - |
52 | | - & > *:first-child { |
53 | | - margin-top: 0; |
54 | | - } |
55 | | - |
56 | | - & > *:last-child { |
57 | | - margin-bottom: 0; |
58 | | - } |
59 | | - |
60 | | - b, |
61 | | - strong { |
62 | | - font-weight: bold; |
63 | | - } |
64 | | - |
65 | | - p { |
66 | | - margin: 0; |
67 | | - } |
68 | | -} |
69 | | - |
70 | | -/* Code style overrides |
71 | | -------------------------------------------------------------------------------*/ |
72 | | - |
73 | | -.markdown-body .highlight pre, |
74 | | -.markdown-body pre { |
75 | | - margin-top: 10px; |
76 | | -} |
77 | | - |
78 | | -.height-constrained-code-block pre { |
79 | | - max-height: 500px; |
80 | | - overflow: auto; |
81 | | -} |
82 | | - |
83 | | -/* Breadcrumbs |
84 | | -------------------------------------------------------------------------------*/ |
85 | | - |
86 | | -.breadcrumbs-wrapper { |
87 | | - @include breakpoint(xl) { |
88 | | - height: 39px; |
89 | | - } |
90 | | -} |
91 | | - |
92 | | -.breadcrumbs a:not(:last-child)::after, |
93 | | -.breadcrumbs span:not(:last-child)::after { |
94 | | - content: "/"; |
95 | | - color: var(--color-auto-gray-4); |
96 | | - padding-right: $spacer-1; |
97 | | - padding-left: $spacer-2; |
98 | | - display: inline-block; |
99 | | -} |
100 | | - |
101 | | -/* Numbered procedures (step 1, step 2, ...) |
102 | | -------------------------------------------------------------------------------*/ |
103 | | - |
104 | | -.markdown-body ol { |
105 | | - counter-reset: li; |
106 | | - list-style: none; |
107 | | - position: relative; |
108 | | - padding-bottom: 10px; |
109 | | - padding-left: 0; |
110 | | -} |
111 | | - |
112 | | -.markdown-body ol > li { |
113 | | - padding: 15px 0 15px 55px; |
114 | | - position: relative; |
115 | | - margin-bottom: 5px; |
116 | | - border-top: 3px solid var(--color-auto-gray-2); |
117 | | -} |
118 | | - |
119 | | -.markdown-body ol > li:before { |
120 | | - content: counter(li); |
121 | | - counter-increment: li; |
122 | | - position: absolute; |
123 | | - top: 10px; |
124 | | - left: 0; |
125 | | - height: 100%; |
126 | | - width: 30px; |
127 | | - padding: 0 10px 0 0; |
128 | | - color: var(--color-auto-gray-4); |
129 | | - font-size: 22px; |
130 | | - font-weight: bold; |
131 | | - line-height: 35px; |
132 | | - text-align: right; |
133 | | -} |
134 | | - |
135 | | -.markdown-body ol > li > p { |
136 | | - margin: 0; |
137 | | -} |
138 | | - |
139 | | -.markdown-body ol > li > p:first-child { |
140 | | - margin-top: 0; |
141 | | -} |
142 | | - |
143 | | -.markdown-body ol > li:after { |
144 | | - content: "."; |
145 | | - display: block; |
146 | | - clear: both; |
147 | | - visibility: hidden; |
148 | | - line-height: 0; |
149 | | - height: 0; |
150 | | -} |
151 | | - |
152 | | -.procedural-image-wrapper { |
153 | | - display: block; |
154 | | - padding: 10px 0; |
155 | | - margin: 20px auto 0 auto; |
156 | | -} |
157 | | - |
158 | | -.procedural-image-wrapper img { |
159 | | - border-radius: 5px; |
160 | | - border: 2px solid var(--color-auto-gray-2); |
161 | | - width: auto; |
162 | | - height: auto; |
163 | | - max-height: 500px; |
164 | | -} |
165 | | - |
166 | | -// make sure images that contain emoji render at the expected size |
167 | | -img[src*="https://github.githubassets.com/images/icons/emoji"] { |
168 | | - height: 20; |
169 | | - width: 20; |
170 | | - align: absmiddle; |
171 | | -} |
172 | | - |
173 | | -/* Notes, tips, warning, and danger styles |
174 | | -------------------------------------------------------------------------------*/ |
175 | | - |
176 | | -.note, |
177 | | -.tip, |
178 | | -.warning, |
179 | | -.danger { |
180 | | - // remove extra space under lists inside of notes |
181 | | - ul, |
182 | | - ol { |
183 | | - margin-bottom: 0; |
184 | | - } |
185 | | -} |
0 commit comments