off-canvas.base.pcss.css

Set base styles for the off-canvas dialog.

File

core/misc/dialog/off-canvas.base.pcss.css

View source
  1. /**
  2. * @file
  3. * Set base styles for the off-canvas dialog.
  4. */
  5. /* Set some global attributes. */
  6. #drupal-off-canvas {
  7. color: #ddd;
  8. background: #444;
  9. }
  10. /**
  11. * All HTML elements that could be used in off-canvas except div, bdo, bdi,
  12. * data, svg, map and math.
  13. *
  14. * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element
  15. */
  16. #drupal-off-canvas {
  17. & span,
  18. & applet,
  19. & object,
  20. & iframe,
  21. & h1,
  22. & h2,
  23. & h3,
  24. & h4,
  25. & h5,
  26. & h6,
  27. & p,
  28. & blockquote,
  29. & pre,
  30. & a,
  31. & abbr,
  32. & acronym,
  33. & address,
  34. & big,
  35. & button,
  36. & cite,
  37. & code,
  38. & del,
  39. & dfn,
  40. & em,
  41. & img,
  42. & ins,
  43. & kbd,
  44. & q,
  45. & s,
  46. & samp,
  47. & small,
  48. & strike,
  49. & strong,
  50. & sub,
  51. & sup,
  52. & tt,
  53. & var,
  54. & b,
  55. & u,
  56. & i,
  57. & center,
  58. & dl,
  59. & dt,
  60. & dd,
  61. & ol,
  62. & ul,
  63. & li,
  64. & fieldset,
  65. & form,
  66. & label,
  67. & legend,
  68. & table,
  69. & caption,
  70. & tbody,
  71. & tfoot,
  72. & thead,
  73. & tr,
  74. & th,
  75. & td,
  76. & article,
  77. & aside,
  78. & canvas,
  79. & details,
  80. & embed,
  81. & figure,
  82. & figcaption,
  83. & footer,
  84. & header,
  85. & hgroup,
  86. & main,
  87. & menu,
  88. & meter,
  89. & nav,
  90. & output,
  91. & progress,
  92. & ruby,
  93. & section,
  94. & summary,
  95. & time,
  96. & mark,
  97. & audio,
  98. & video,
  99. & input,
  100. & select,
  101. & textarea {
  102. color: inherit;
  103. background: inherit;
  104. font-family: "Lucida Grande", "Lucida Sans Unicode", "liberation sans", sans-serif;
  105. }
  106. }
  107. /* Generic elements. */
  108. #drupal-off-canvas a,
  109. #drupal-off-canvas .link {
  110. cursor: pointer;
  111. transition: color 0.5s ease;
  112. text-decoration: none;
  113. color: #85bef4;
  114. border-bottom: none;
  115. font-family: "Lucida Grande", "Lucida Sans Unicode", "liberation sans", sans-serif;
  116. font-size: inherit;
  117. font-weight: normal;
  118. }
  119. #drupal-off-canvas a:focus,
  120. #drupal-off-canvas .link:focus,
  121. #drupal-off-canvas a:hover,
  122. #drupal-off-canvas .link:hover {
  123. text-decoration: underline;
  124. }
  125. #drupal-off-canvas hr {
  126. height: 1px;
  127. background: #ccc;
  128. }
  129. #drupal-off-canvas summary,
  130. #drupal-off-canvas .fieldgroup:not(.form-composite) > legend {
  131. font-weight: bold;
  132. }
  133. #drupal-off-canvas h1,
  134. #drupal-off-canvas .heading-a {
  135. display: block;
  136. font-size: 1.625em;
  137. font-weight: bold;
  138. line-height: 1.875em;
  139. }
  140. #drupal-off-canvas h2,
  141. #drupal-off-canvas .heading-b {
  142. display: block;
  143. margin: 10px 0;
  144. font-size: 1.385em;
  145. font-weight: bold;
  146. }
  147. #drupal-off-canvas h3,
  148. #drupal-off-canvas .heading-c {
  149. display: block;
  150. margin: 10px 0;
  151. font-size: 1.231em;
  152. font-weight: bold;
  153. }
  154. #drupal-off-canvas h4,
  155. #drupal-off-canvas .heading-d {
  156. display: block;
  157. margin: 10px 0;
  158. font-size: 1.154em;
  159. font-weight: bold;
  160. }
  161. #drupal-off-canvas h5,
  162. #drupal-off-canvas .heading-e {
  163. display: block;
  164. margin: 10px 0;
  165. font-size: 1.077em;
  166. font-weight: bold;
  167. }
  168. #drupal-off-canvas h6,
  169. #drupal-off-canvas .heading-f {
  170. display: block;
  171. margin: 10px 0;
  172. font-size: 1.077em;
  173. font-weight: bold;
  174. }
  175. #drupal-off-canvas p {
  176. margin: 1em 0;
  177. }
  178. #drupal-off-canvas dl {
  179. margin: 0 0 20px;
  180. }
  181. #drupal-off-canvas dl dd,
  182. #drupal-off-canvas dl dl {
  183. margin-bottom: 10px;
  184. margin-left: 20px; /* LTR */
  185. }
  186. [dir="rtl"] #drupal-off-canvas dl dd,
  187. [dir="rtl"] #drupal-off-canvas dl dl {
  188. margin-right: 20px;
  189. }
  190. #drupal-off-canvas blockquote {
  191. margin: 1em 40px;
  192. }
  193. #drupal-off-canvas address {
  194. font-style: italic;
  195. }
  196. #drupal-off-canvas u,
  197. #drupal-off-canvas ins {
  198. text-decoration: underline;
  199. }
  200. #drupal-off-canvas s,
  201. #drupal-off-canvas strike,
  202. #drupal-off-canvas del {
  203. text-decoration: line-through;
  204. }
  205. #drupal-off-canvas big {
  206. font-size: larger;
  207. }
  208. #drupal-off-canvas small {
  209. font-size: smaller;
  210. }
  211. #drupal-off-canvas sub {
  212. vertical-align: sub;
  213. font-size: smaller;
  214. line-height: normal;
  215. }
  216. #drupal-off-canvas sup {
  217. vertical-align: super;
  218. font-size: smaller;
  219. line-height: normal;
  220. }
  221. #drupal-off-canvas abbr,
  222. #drupal-off-canvas acronym {
  223. border-bottom: dotted 1px;
  224. background: transparent;
  225. }
  226. #drupal-off-canvas ul {
  227. list-style-type: disc;
  228. list-style-image: none;
  229. }
  230. [dir="rtl"] #drupal-off-canvas .messages__list {
  231. margin-right: 0;
  232. }
  233. #drupal-off-canvas ol {
  234. list-style-type: decimal;
  235. }
  236. #drupal-off-canvas ul li,
  237. #drupal-off-canvas ol li {
  238. display: block;
  239. padding: 5px 0;
  240. border-bottom: 1px solid #333;
  241. &:last-child {
  242. padding-bottom: 0;
  243. border-bottom: none;
  244. }
  245. }
  246. #drupal-off-canvas blockquote,
  247. #drupal-off-canvas code {
  248. margin: 20px 0;
  249. }
  250. #drupal-off-canvas pre {
  251. margin: 20px 0;
  252. white-space: pre-wrap;
  253. }
  254. #drupal-off-canvas details {
  255. display: block;
  256. }
  257. #drupal-off-canvas summary {
  258. display: list-item;
  259. }
  260. #drupal-off-canvas select::-ms-expand {
  261. display: block;
  262. }
  263. /* Classes for hidden and visually hidden elements. See hidden.module.css. */
  264. #drupal-off-canvas .hidden {
  265. display: none;
  266. }
  267. #drupal-off-canvas .visually-hidden {
  268. position: absolute !important;
  269. overflow: hidden;
  270. clip: rect(1px, 1px, 1px, 1px);
  271. width: 1px;
  272. height: 1px;
  273. word-wrap: normal;
  274. }
  275. #drupal-off-canvas .visually-hidden.focusable:active,
  276. #drupal-off-canvas .visually-hidden.focusable:focus {
  277. position: static !important;
  278. overflow: visible;
  279. clip: auto;
  280. width: auto;
  281. height: auto;
  282. }
  283. #drupal-off-canvas .invisible {
  284. visibility: hidden;
  285. }
  286. /* Some system classes. See system.admin.css. */
  287. #drupal-off-canvas .panel {
  288. padding: 5px 5px 15px;
  289. }
  290. #drupal-off-canvas .panel__description {
  291. margin: 0 0 3px;
  292. padding: 2px 0 3px 0;
  293. }
  294. #drupal-off-canvas .compact-link {
  295. margin: 0 0 10px 0;
  296. }
  297. #drupal-off-canvas small .admin-link:before {
  298. content: " [";
  299. }
  300. #drupal-off-canvas small .admin-link:after {
  301. content: "]";
  302. }
  303. /* Override jQuery UI */
  304. #drupal-off-canvas .ui-widget-content a {
  305. color: #85bef4 !important;
  306. }
  307. /* Message styles */
  308. #drupal-off-canvas .messages {
  309. background: no-repeat 10px 17px;
  310. }
  311. [dir="rtl"] #drupal-off-canvas .messages {
  312. background-position: right 10px top 17px;
  313. }
  314. #drupal-off-canvas .messages abbr {
  315. color: #444;
  316. }
  317. #drupal-off-canvas .messages--status {
  318. color: #325e1c;
  319. background-color: #f3faef;
  320. background-image: url(../icons/73b355/check.svg);
  321. }
  322. #drupal-off-canvas .messages--warning {
  323. color: #734c00;
  324. background-color: #fdf8ed;
  325. background-image: url(../icons/e29700/warning.svg);
  326. }
  327. #drupal-off-canvas .messages--error {
  328. color: #a51b00;
  329. background-color: #fcf4f2;
  330. background-image: url(../icons/e32700/error.svg);
  331. }
  332. #drupal-off-canvas .messages--error div[role="alert"] {
  333. color: inherit;
  334. background: transparent;
  335. }

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