Elgg  Version master
reset.css.php
Go to the documentation of this file.
1 <?php
6 // https://necolas.github.io/normalize.css/
7 echo elgg_view('normalize.css');
8 
9 ?>
10 /* <style> /**/
11 
12 /* Some of the reset concepts borrowed from https://bulma.io/ */
13 html,
14 body,
15 p,
16 ol,
17 ul,
18 li,
19 dl,
20 dt,
21 dd,
22 blockquote,
23 figure,
24 fieldset,
25 legend,
26 textarea,
27 pre,
28 iframe,
29 hr,
30 h1,
31 h2,
32 h3,
33 h4,
34 h5,
35 h6 {
36  margin: 0;
37  padding: 0;
38 }
39 
40 h1,
41 h2,
42 h3,
43 h4,
44 h5,
45 h6 {
46  font-size: 100%;
47  font-weight: normal;
48 }
49 
50 html {
51  -webkit-box-sizing: border-box;
52  box-sizing: border-box;
53 }
54 
55 * {
56  -webkit-box-sizing: inherit;
57  box-sizing: inherit;
58 }
59 
60 *:before, *:after {
61  -webkit-box-sizing: inherit;
62  box-sizing: inherit;
63 }
64 
65 img,
66 embed,
67 object,
68 audio,
69 video {
70  max-width: 100%;
71 }
72 
73 iframe {
74  border: 0;
75 }
76 
77 table {
78  border-collapse: collapse;
79  border-spacing: 0;
80 }
81 
82 td,
83 th {
84  padding: 0;
85  text-align: left;
86 }
87 
88 html {
89  background-color: white;
90  font-size: var(--elgg-font-size);
91  -moz-osx-font-smoothing: grayscale;
92  -webkit-font-smoothing: antialiased;
93  min-width: 300px;
94  overflow-x: hidden;
95  overflow-y: scroll;
96  text-rendering: optimizeLegibility;
97  -webkit-text-size-adjust: 100%;
98  -moz-text-size-adjust: 100%;
99  -ms-text-size-adjust: 100%;
100  text-size-adjust: 100%;
101 }
102 
103 /* Smooth scrolling IF user doesn't have a preference due to motion sensitivities */
104 @media screen and (prefers-reduced-motion: no-preference) {
105  html {
106  scroll-behavior: smooth;
107  }
108 }
109 
110 article,
111 aside,
112 figure,
113 footer,
114 header,
115 hgroup,
116 section {
117  display: block;
118 }
119 
120 body,
121 button,
122 input,
123 select,
124 textarea {
125  font-family: var(--elgg-font-family);
126 }
127 
128 code,
129 pre {
130  -moz-osx-font-smoothing: auto;
131  -webkit-font-smoothing: auto;
132  font-family: monospace;
133 }
134 
135 body {
136  position: relative;
137  color: var(--elgg-text-color-strong);
138  background: var(--elgg-body-background-color);
139  font-size: 1rem;
140  font-weight: 400;
141  line-height: 1.5;
142 }
143 
144 a {
145  cursor: pointer;
146  text-decoration: none;
147 }
148 
149 a strong {
150  color: currentColor;
151 }
152 
153 code {
154  background-color: var(--elgg-background-color-soft);
155  color: #ff3860;
156  font-size: 0.875em;
157  font-weight: normal;
158  padding: 0.25em 0.5em 0.25em;
159 }
160 
161 hr {
162  background-color: var(--elgg-border-color-mild);
163  border: none;
164  display: block;
165  height: 1px;
166  margin: 1.5rem 0;
167 }
168 
169 img {
170  height: auto;
171  max-width: 100%;
172 }
173 
174 input[type="checkbox"],
175 input[type="radio"] {
176  vertical-align: baseline;
177 }
178 
179 small {
180  font-size: 0.875em;
181 }
182 
183 span {
184  font-style: inherit;
185  font-weight: inherit;
186 }
187 
188 pre {
189  -webkit-overflow-scrolling: touch;
190  background-color: var(--elgg-background-color-soft);
191  color: var(--elgg-text-color-strong);
192  font-size: 0.875em;
193  overflow-x: auto;
194  padding: 1.25rem 1.5rem;
195  white-space: pre;
196  word-wrap: normal;
197 
198  code {
199  background-color: transparent;
200  color: currentColor;
201  font-size: 1em;
202  padding: 0;
203  }
204 }
205 
206 table td,
207 table th {
208  text-align: left;
209  vertical-align: top;
210 }
211 
212 table th {
213  color: var(--elgg-text-color-strong);
214 }
215 
216 /* Elgg Reset /**/
217 ol, ul {
218  list-style: none;
219 }
220 
221 em, i {
222  font-style: italic;
223 }
224 
225 ins {
226  text-decoration: none;
227 }
228 
229 strike, del {
230  text-decoration: line-through;
231 }
232 
233 strong, b {
234  font-weight: var(--elgg-font-bold-weight);
235 }
236 
237 table {
238  border-collapse: collapse;
239  border-spacing: 0;
240 }
241 
242 caption, th, td {
243  text-align: left;
244  font-weight: normal;
245  vertical-align: top;
246 }
247 
248 blockquote:before, blockquote:after,
249 q:before, q:after {
250  content: "";
251 }
252 
253 blockquote, q {
254  quotes: "" "";
255 }
256 
257 a {
258  text-decoration: none;
259 }
260 
261 button::-moz-focus-inner,
262 input::-moz-focus-inner {
263  border: 0;
264  padding: 0;
265 }
266 
267 [hidden] {
268  display: none !important;
269 }
270 
271 fieldset {
272  border: none;
273  min-width: 0; /* override -webkit-min-content */
274 }
275 
276 .ui-sortable {
277  overflow: auto; /* fixes positioning if a parent container has position:relative */
278 
279  .ui-sortable-handle {
280  cursor: move;
281  }
282 }
elgg()
Bootstrapping and helper procedural code available for use in Elgg core and plugins.
Definition: elgglib.php:12
elgg_view(string $view, array $vars=[], string $viewtype='')
Return a parsed view.
Definition: views.php:156