off-canvas.reset.css

Same filename in this branch
  1. 8.9.x core/misc/dialog/off-canvas.reset.css
Same filename in other branches
  1. 9 core/misc/dialog/off-canvas.reset.css
  2. 9 core/themes/stable9/css/core/dialog/off-canvas.reset.css
  3. 9 core/themes/stable/css/core/dialog/off-canvas.reset.css

Reset most HTML elements styles for the off-canvas dialog.

This is a generic reset. Drupal-specific classes are reset in components.

File

core/themes/stable/css/core/dialog/off-canvas.reset.css

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/2815083
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Reset most HTML elements styles for the off-canvas dialog.
  10. *
  11. * This is a generic reset. Drupal-specific classes are reset in components.
  12. */
  13. /**
  14. * All HTML elements that could be used in off-canvas except div, bdo, bdi,
  15. * data, svg, map and math.
  16. *
  17. * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element
  18. */
  19. #drupal-off-canvas {
  20. & span,
  21. & applet,
  22. & object,
  23. & iframe,
  24. & h1,
  25. & h2,
  26. & h3,
  27. & h4,
  28. & h5,
  29. & h6,
  30. & p,
  31. & blockquote,
  32. & pre,
  33. & a,
  34. & abbr,
  35. & acronym,
  36. & address,
  37. & big,
  38. & button,
  39. & cite,
  40. & code,
  41. & del,
  42. & dfn,
  43. & em,
  44. & img,
  45. & ins,
  46. & kbd,
  47. & q,
  48. & s,
  49. & samp,
  50. & small,
  51. & strike,
  52. & strong,
  53. & sub,
  54. & sup,
  55. & tt,
  56. & var,
  57. & b,
  58. & u,
  59. & i,
  60. & center,
  61. & dl,
  62. & dt,
  63. & dd,
  64. & ol,
  65. & ul,
  66. & li,
  67. & fieldset,
  68. & form,
  69. & label,
  70. & legend,
  71. & table,
  72. & caption,
  73. & tbody,
  74. & tfoot,
  75. & thead,
  76. & tr,
  77. & th,
  78. & td,
  79. & article,
  80. & aside,
  81. & canvas,
  82. & details,
  83. & embed,
  84. & figure,
  85. & figcaption,
  86. & footer,
  87. & header,
  88. & hgroup,
  89. & main,
  90. & menu,
  91. & meter,
  92. & nav,
  93. & output,
  94. & progress,
  95. & ruby,
  96. & section,
  97. & summary,
  98. & time,
  99. & mark,
  100. & audio,
  101. & video,
  102. & input,
  103. & select,
  104. & textarea {
  105. all: initial;
  106. box-sizing: border-box;
  107. text-shadow: none;
  108. -webkit-font-smoothing: antialiased;
  109. -webkit-tap-highlight-color: initial;
  110. &:after,
  111. &:before {
  112. all: initial;
  113. box-sizing: border-box;
  114. text-shadow: none;
  115. -webkit-font-smoothing: antialiased;
  116. -webkit-tap-highlight-color: initial;
  117. }
  118. }
  119. }
  120. /* Reset size and position on elements. */
  121. #drupal-off-canvas a,
  122. #drupal-off-canvas abbr,
  123. #drupal-off-canvas acronym,
  124. #drupal-off-canvas address,
  125. #drupal-off-canvas applet,
  126. #drupal-off-canvas article,
  127. #drupal-off-canvas aside,
  128. #drupal-off-canvas audio,
  129. #drupal-off-canvas b,
  130. #drupal-off-canvas big,
  131. #drupal-off-canvas blockquote,
  132. #drupal-off-canvas body,
  133. #drupal-off-canvas canvas,
  134. #drupal-off-canvas caption,
  135. #drupal-off-canvas cite,
  136. #drupal-off-canvas code,
  137. #drupal-off-canvas dd,
  138. #drupal-off-canvas del,
  139. #drupal-off-canvas dfn,
  140. #drupal-off-canvas dialog,
  141. #drupal-off-canvas dl,
  142. #drupal-off-canvas dt,
  143. #drupal-off-canvas em,
  144. #drupal-off-canvas embed,
  145. #drupal-off-canvas fieldset,
  146. #drupal-off-canvas figcaption,
  147. #drupal-off-canvas figure,
  148. #drupal-off-canvas footer,
  149. #drupal-off-canvas form,
  150. #drupal-off-canvas h1,
  151. #drupal-off-canvas h2,
  152. #drupal-off-canvas h3,
  153. #drupal-off-canvas h4,
  154. #drupal-off-canvas h5,
  155. #drupal-off-canvas h6,
  156. #drupal-off-canvas header,
  157. #drupal-off-canvas hgroup,
  158. #drupal-off-canvas hr,
  159. #drupal-off-canvas html,
  160. #drupal-off-canvas i,
  161. #drupal-off-canvas iframe,
  162. #drupal-off-canvas img,
  163. #drupal-off-canvas ins,
  164. #drupal-off-canvas kbd,
  165. #drupal-off-canvas label,
  166. #drupal-off-canvas legend,
  167. #drupal-off-canvas li,
  168. #drupal-off-canvas main,
  169. #drupal-off-canvas mark,
  170. #drupal-off-canvas menu,
  171. #drupal-off-canvas meter,
  172. #drupal-off-canvas nav,
  173. #drupal-off-canvas object,
  174. #drupal-off-canvas ol,
  175. #drupal-off-canvas output,
  176. #drupal-off-canvas p,
  177. #drupal-off-canvas pre,
  178. #drupal-off-canvas progress,
  179. #drupal-off-canvas q,
  180. #drupal-off-canvas rp,
  181. #drupal-off-canvas rt,
  182. #drupal-off-canvas s,
  183. #drupal-off-canvas samp,
  184. #drupal-off-canvas section,
  185. #drupal-off-canvas small,
  186. #drupal-off-canvas span,
  187. #drupal-off-canvas strike,
  188. #drupal-off-canvas strong,
  189. #drupal-off-canvas sub,
  190. #drupal-off-canvas sup,
  191. #drupal-off-canvas table,
  192. #drupal-off-canvas tbody,
  193. #drupal-off-canvas td,
  194. #drupal-off-canvas tfoot,
  195. #drupal-off-canvas th,
  196. #drupal-off-canvas thead,
  197. #drupal-off-canvas time,
  198. #drupal-off-canvas tr,
  199. #drupal-off-canvas tt,
  200. #drupal-off-canvas u,
  201. #drupal-off-canvas ul,
  202. #drupal-off-canvas var,
  203. #drupal-off-canvas video,
  204. #drupal-off-canvas xmp {
  205. margin: 0;
  206. padding: 0;
  207. border: 0;
  208. font-size: 100%;
  209. }
  210. /*
  211. * Override the default (display: inline) for browsers that do not recognize HTML5 tags.
  212. * IE8 (and lower) requires a shiv: http://ejohn.org/blog/html5-shiv
  213. */
  214. #drupal-off-canvas article,
  215. #drupal-off-canvas aside,
  216. #drupal-off-canvas figcaption,
  217. #drupal-off-canvas figure,
  218. #drupal-off-canvas footer,
  219. #drupal-off-canvas header,
  220. #drupal-off-canvas hgroup,
  221. #drupal-off-canvas main,
  222. #drupal-off-canvas menu,
  223. #drupal-off-canvas nav,
  224. #drupal-off-canvas section {
  225. display: block;
  226. border-radius: 0;
  227. line-height: normal;
  228. }
  229. /*
  230. * Makes browsers agree.
  231. * IE + Opera = font-weight: bold.
  232. * Gecko + WebKit = font-weight: bolder.
  233. */
  234. #drupal-off-canvas b,
  235. #drupal-off-canvas strong {
  236. font-weight: bold;
  237. }
  238. #drupal-off-canvas em,
  239. #drupal-off-canvas i {
  240. font-style: italic;
  241. }
  242. #drupal-off-canvas img {
  243. vertical-align: middle;
  244. color: transparent;
  245. font-size: 0;
  246. }
  247. #drupal-off-canvas ul,
  248. #drupal-off-canvas ol {
  249. list-style: none;
  250. }
  251. /* reset table styling. */
  252. #drupal-off-canvas table {
  253. border-spacing: 0;
  254. border-collapse: collapse;
  255. }
  256. #drupal-off-canvas table thead,
  257. #drupal-off-canvas table tbody,
  258. #drupal-off-canvas table tbody tr:nth-child(even),
  259. #drupal-off-canvas table tbody tr:nth-child(odd),
  260. #drupal-off-canvas table tfoot {
  261. border: 0;
  262. background: transparent none;
  263. }
  264. #drupal-off-canvas th,
  265. #drupal-off-canvas td,
  266. #drupal-off-canvas caption {
  267. font-weight: normal;
  268. }
  269. #drupal-off-canvas q {
  270. quotes: none;
  271. }
  272. #drupal-off-canvas q:before,
  273. #drupal-off-canvas q:after {
  274. content: none;
  275. }
  276. #drupal-off-canvas sub,
  277. #drupal-off-canvas sup,
  278. #drupal-off-canvas small {
  279. font-size: 75%;
  280. }
  281. #drupal-off-canvas sub,
  282. #drupal-off-canvas sup {
  283. position: relative;
  284. vertical-align: baseline;
  285. line-height: 0;
  286. }
  287. #drupal-off-canvas sub {
  288. bottom: -0.25em;
  289. }
  290. #drupal-off-canvas sup {
  291. top: -0.5em;
  292. }
  293. /*
  294. * For IE9. Without, occasionally draws shapes
  295. * outside the boundaries of rectangle.
  296. */
  297. #drupal-off-canvas svg {
  298. overflow: hidden;
  299. }
  300. /* Specific resets for inputs. */
  301. #drupal-off-canvas input[type="search"]::-webkit-search-decoration {
  302. display: none;
  303. }
  304. #drupal-off-canvas input {
  305. margin: 0;
  306. padding: 0;
  307. }
  308. #drupal-off-canvas input[type="checkbox"],
  309. #drupal-off-canvas input[type="radio"] {
  310. position: static;
  311. margin: 0;
  312. }
  313. #drupal-off-canvas input:invalid,
  314. #drupal-off-canvas button:invalid,
  315. #drupal-off-canvas select:invalid,
  316. #drupal-off-canvas textarea:invalid,
  317. #drupal-off-canvas input:focus,
  318. #drupal-off-canvas button:focus,
  319. #drupal-off-canvas select:focus,
  320. #drupal-off-canvas textarea:focus,
  321. #drupal-off-canvas input[type="file"]:focus,
  322. #drupal-off-canvas input[type="file"]:active,
  323. #drupal-off-canvas input[type="radio"]:focus,
  324. #drupal-off-canvas input[type="radio"]:active,
  325. #drupal-off-canvas input[type="checkbox"]:focus,
  326. #drupal-off-canvas input[type="checkbox"]:active {
  327. z-index: 1;
  328. box-shadow: none;
  329. }
  330. #drupal-off-canvas input[role="button"] {
  331. cursor: pointer;
  332. }
  333. #drupal-off-canvas button,
  334. #drupal-off-canvas input[type="reset"],
  335. #drupal-off-canvas input[type="submit"],
  336. #drupal-off-canvas input[type="button"] {
  337. display: inline-block;
  338. overflow: visible;
  339. cursor: pointer;
  340. vertical-align: middle;
  341. text-decoration: none;
  342. border: 0;
  343. outline: 0;
  344. background-image: none;
  345. text-shadow: none;
  346. -webkit-appearance: none;
  347. -moz-appearance: none;
  348. }
  349. #drupal-off-canvas button:hover,
  350. #drupal-off-canvas input[type="reset"]:hover,
  351. #drupal-off-canvas input[type="submit"]:hover,
  352. #drupal-off-canvas input[type="button"]:hover {
  353. text-decoration: none;
  354. background-image: none;
  355. }
  356. #drupal-off-canvas button:active,
  357. #drupal-off-canvas input[type="reset"]:active,
  358. #drupal-off-canvas input[type="submit"]:active,
  359. #drupal-off-canvas input[type="button"]:active {
  360. border-color: grey;
  361. background-image: none;
  362. box-shadow: none;
  363. }
  364. #drupal-off-canvas button::-moz-focus-inner,
  365. #drupal-off-canvas input[type="reset"]::-moz-focus-inner,
  366. #drupal-off-canvas input[type="submit"]::-moz-focus-inner,
  367. #drupal-off-canvas input[type="button"]::-moz-focus-inner {
  368. padding: 0;
  369. border: 0;
  370. }
  371. #drupal-off-canvas textarea,
  372. #drupal-off-canvas select,
  373. #drupal-off-canvas input[type="date"],
  374. #drupal-off-canvas input[type="datetime"],
  375. #drupal-off-canvas input[type="datetime-local"],
  376. #drupal-off-canvas input[type="email"],
  377. #drupal-off-canvas input[type="month"],
  378. #drupal-off-canvas input[type="number"],
  379. #drupal-off-canvas input[type="password"],
  380. #drupal-off-canvas input[type="search"],
  381. #drupal-off-canvas input[type="tel"],
  382. #drupal-off-canvas input[type="text"],
  383. #drupal-off-canvas input[type="time"],
  384. #drupal-off-canvas input[type="url"],
  385. #drupal-off-canvas input[type="week"] {
  386. height: auto;
  387. vertical-align: middle;
  388. border-radius: 0;
  389. }
  390. #drupal-off-canvas textarea[disabled],
  391. #drupal-off-canvas select[disabled],
  392. #drupal-off-canvas input[type="date"][disabled],
  393. #drupal-off-canvas input[type="datetime"][disabled],
  394. #drupal-off-canvas input[type="datetime-local"][disabled],
  395. #drupal-off-canvas input[type="email"][disabled],
  396. #drupal-off-canvas input[type="month"][disabled],
  397. #drupal-off-canvas input[type="number"][disabled],
  398. #drupal-off-canvas input[type="password"][disabled],
  399. #drupal-off-canvas input[type="search"][disabled],
  400. #drupal-off-canvas input[type="tel"][disabled],
  401. #drupal-off-canvas input[type="text"][disabled],
  402. #drupal-off-canvas input[type="time"][disabled],
  403. #drupal-off-canvas input[type="url"][disabled],
  404. #drupal-off-canvas input[type="week"][disabled] {
  405. background-color: grey;
  406. }
  407. #drupal-off-canvas input[type="hidden"] {
  408. visibility: hidden;
  409. }
  410. #drupal-off-canvas button[disabled],
  411. #drupal-off-canvas input[disabled],
  412. #drupal-off-canvas select[disabled],
  413. #drupal-off-canvas select[disabled] option,
  414. #drupal-off-canvas select[disabled] optgroup,
  415. #drupal-off-canvas textarea[disabled] {
  416. cursor: default;
  417. -webkit-user-select: none;
  418. -ms-user-select: none;
  419. user-select: none;
  420. box-shadow: none;
  421. }
  422. #drupal-off-canvas input:placeholder,
  423. #drupal-off-canvas textarea:placeholder {
  424. color: grey;
  425. }
  426. #drupal-off-canvas textarea,
  427. #drupal-off-canvas select[size],
  428. #drupal-off-canvas select[multiple] {
  429. height: auto;
  430. }
  431. #drupal-off-canvas select[size="0"],
  432. #drupal-off-canvas select[size="1"] {
  433. height: auto;
  434. }
  435. #drupal-off-canvas textarea {
  436. overflow: auto;
  437. width: 100%;
  438. min-height: 40px;
  439. resize: vertical;
  440. }
  441. #drupal-off-canvas optgroup {
  442. color: black;
  443. font-weight: normal;
  444. font-style: normal;
  445. }
  446. #drupal-off-canvas optgroup::-moz-focus-inner {
  447. padding: 0;
  448. border: 0;
  449. }
  450. #drupal-off-canvas * button {
  451. overflow: visible;
  452. width: auto;
  453. padding: 0;
  454. vertical-align: middle;
  455. text-decoration: none;
  456. color: black;
  457. border: 1px solid grey;
  458. background: none;
  459. }
  460. #drupal-off-canvas * textarea,
  461. #drupal-off-canvas * select,
  462. #drupal-off-canvas *:not(div) textarea,
  463. #drupal-off-canvas *:not(div) select {
  464. padding: 0;
  465. vertical-align: top;
  466. color: black;
  467. border: 1px solid grey;
  468. background: white;
  469. }
  470. /* To standardize off-canvas selection color. */
  471. #drupal-off-canvas ::-moz-selection,
  472. #drupal-off-canvas ::selection {
  473. color: inherit;
  474. background-color: rgba(175, 175, 175, 0.5);
  475. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.