Elgg  Version 7.1
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  font-size: var(--elgg-font-size);
90  min-width: 300px;
91  overflow-x: hidden;
92  overflow-y: scroll;
93  text-rendering: optimizeLegibility;
94  text-size-adjust: 100%;
95 }
96 
97 /* Smooth scrolling IF user doesn't have a preference due to motion sensitivities */
98 @media screen and (prefers-reduced-motion: no-preference) {
99  html {
100  scroll-behavior: smooth;
101  }
102 }
103 
104 article,
105 aside,
106 figure,
107 footer,
108 header,
109 hgroup,
110 section {
111  display: block;
112 }
113 
114 body,
115 button,
116 input,
117 select,
118 textarea {
119  font-family: var(--elgg-font-family);
120 }
121 
122 code,
123 pre {
124  font-family: monospace;
125 }
126 
127 body {
128  position: relative;
129  color: var(--elgg-text-color-strong);
130  background: var(--elgg-body-background-color);
131  font-size: 1rem;
132  font-weight: 400;
133  line-height: 1.5;
134 }
135 
136 a {
137  cursor: pointer;
138  text-decoration: none;
139 }
140 
141 a strong {
142  color: currentColor;
143 }
144 
145 code {
146  background-color: var(--elgg-background-color-soft);
147  color: #ff3860;
148  font-size: 0.875em;
149  font-weight: normal;
150  padding: 0.25em 0.5em 0.25em;
151 }
152 
153 hr {
154  background-color: var(--elgg-border-color-mild);
155  border: none;
156  display: block;
157  height: 1px;
158  margin: 1.5rem 0;
159 }
160 
161 img {
162  height: auto;
163  max-width: 100%;
164 }
165 
166 input[type="checkbox"],
167 input[type="radio"] {
168  vertical-align: baseline;
169 }
170 
171 small {
172  font-size: 0.875em;
173 }
174 
175 span {
176  font-style: inherit;
177  font-weight: inherit;
178 }
179 
180 pre {
181  -webkit-overflow-scrolling: touch;
182  background-color: var(--elgg-background-color-soft);
183  color: var(--elgg-text-color-strong);
184  font-size: 0.875em;
185  overflow-x: auto;
186  padding: 1.25rem 1.5rem;
187  white-space: pre;
188  word-wrap: normal;
189 
190  code {
191  background-color: transparent;
192  color: currentColor;
193  font-size: 1em;
194  padding: 0;
195  }
196 }
197 
198 table td,
199 table th {
200  text-align: left;
201  vertical-align: top;
202 }
203 
204 table th {
205  color: var(--elgg-text-color-strong);
206 }
207 
208 /* Elgg Reset /**/
209 ol, ul {
210  list-style: none;
211 }
212 
213 em, i {
214  font-style: italic;
215 }
216 
217 ins {
218  text-decoration: none;
219 }
220 
221 strike, del {
222  text-decoration: line-through;
223 }
224 
225 strong, b {
226  font-weight: var(--elgg-font-bold-weight);
227 }
228 
229 table {
230  border-collapse: collapse;
231  border-spacing: 0;
232 }
233 
234 caption, th, td {
235  text-align: left;
236  font-weight: normal;
237  vertical-align: top;
238 }
239 
240 blockquote:before, blockquote:after,
241 q:before, q:after {
242  content: "";
243 }
244 
245 blockquote, q {
246  quotes: "" "";
247 }
248 
249 a {
250  text-decoration: none;
251 }
252 
253 button::-moz-focus-inner,
254 input::-moz-focus-inner {
255  border: 0;
256  padding: 0;
257 }
258 
259 [hidden] {
260  display: none !important;
261 }
262 
263 fieldset {
264  border: none;
265  min-width: 0; /* override -webkit-min-content */
266 }
267 
268 .ui-sortable {
269  overflow: auto; /* fixes positioning if a parent container has position:relative */
270 
271  .ui-sortable-handle {
272  cursor: move;
273  }
274 }
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