You are here

amp-custom-styles.html.twig in Thunder 8.2

Same filename and directory in other branches
  1. 8.3 themes/thunder_amp/templates/amp-css/amp-custom-styles.html.twig
/* ---------- Layout ----------- */

html {
  height: 100%;
}

body {
  min-height: 100%;
}

.amp-header__content,
.amp-main__content,
.amp-footer__content {
  margin: 0 auto;
  max-width: 620px;
}

.amp-main {
  min-height: 300px;
}

.amp-main__content {
  padding-top: 20px;
  padding-bottom: 40px;
}

.layout-container {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* ---------- Typography ----------- */

body {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 100%;
  line-height: 1.5;
  word-wrap: break-word;
}

/* --- Links --- */

a,
a.link {
  text-decoration: none;
  border-bottom: 1px dotted;
}

a:hover,
a:active,
a:focus,
.link:hover,
.link:active,
.link:focus {
  text-decoration: none;
  border-bottom-style: solid;
}

.link {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1 a,
h2 a {
  border-bottom: none;
}

/* --- Headings --- */

h1,
h2,
h3,
h4,
h5,
h6,
.heading-a,
.heading-b,
.heading-c,
.heading-d,
.heading-e,
.heading-f {
  font-weight: inherit;
  margin: 1rem 0 0.5rem;
}

h1,
.heading-a {
  font-size: 1.2rem;
  color: #000;
}

h2,
.heading-b {
  font-size: 1rem;
}

h3,
.heading-c {
  font-size: 0.9375rem;
}

h4,
.heading-d {
  font-size: 0.875rem;
}

h5,
h6,
.heading-e,
.heading-f {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h5,
.heading-e {
  font-size: 0.75rem;
}

h6,
.heading-f {
  font-size: 0.625rem;
}

/* --- Text --- */

p {
  margin: 0 0 1rem;
}

del {
  text-decoration: line-through;
}

blockquote {
  background: #f7f7f7;
  border-left: 1px solid #bbb; /* LTR */
  font-style: italic;
  margin: 1.3125rem 10px;
  padding: 0.4375rem 10px;
}

[dir="rtl"] blockquote {
  border-left: none;
  border-right: 1px solid #bbb;
}

blockquote:before {
  color: #bbb;
  content: "\201C";
  font-size: 2.625rem;
  line-height: 0.1;
  margin-right: 0.153125rem; /* LTR */
  vertical-align: -0.30625rem;
}

[dir="rtl"] blockquote:before {
  content: "\201D";
  margin-left: 0.153125rem;
  margin-right: 0;
}

blockquote:after {
  color: #bbb;
  content: "\201D";
  font-size: 2.625rem;
  line-height: 0.1;
  vertical-align: -0.39375rem;
}

[dir="rtl"] blockquote:after {
  content: "\201C";
}

blockquote > p:first-child {
  display: inline;
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  margin: 0;
  padding: 0 0 0.21875rem 0.875rem; /* LTR */
}

[dir="rtl"] ul,
[dir="rtl"] ol {
  padding: 0 0.875rem 0.21875rem 0;
}

ol ol,
ul ul {
  margin: 0;
  padding: 0 0 0.21875rem 0.875rem; /* LTR */
}

[dir="rtl"] ol ol,
[dir="rtl"] ul ul {
  padding: 0 0.875rem 0.21875rem 0;
}

/* ---------- Colors ----------- */

body {
  background: #292929;
  color: #3b3b3b;
}

.amp-header {
  background-color: #1d84c3;
  background-image: -webkit-linear-gradient(top, #055a8e 0%, #1d84c3 100%);
  background-image: linear-gradient(to bottom, #055a8e 0%, #1d84c3 100%);
}

.amp-main {
  background-color: #ffffff;
}

.amp-footer {
  background: #292929;
}

a,
.link {
  color: #0071b3;
}

a:hover,
a:focus,
.link:hover,
.link:focus {
  color: #018fe2;
}

a:active,
.link:active {
  color: #23aeff;
}

.amp-header,
.amp-header a,
.amp-header li a.is-active,
.site-branding__text,
.site-branding,
.site-branding__text a,
.site-branding a {
  color: #fffeff;
}

/* ---------- Utility classes ----------- */

.hidden {
  display: none;
}

.visually-hidden {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
  word-wrap: normal;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  position: static;
  clip: auto;
  overflow: visible;
  height: auto;
  width: auto;
}

.invisible {
  visibility: hidden;
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

/* ---------- Header ----------- */

.amp-header {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.amp-header__content {
  padding: 0.75rem .9375rem 0.75rem;
}


.amp-header a {
  border-bottom: none;
}

.brand {
  margin: 0.375rem auto 0.375rem;
}

.site-branding__logo {
  display: inline-block;
  margin-right: 0.875rem; /* LTR */
  margin-bottom: 0.25rem;
  width: 6rem;
}

[dir="rtl"] .site-branding__logo {
  margin-right: 0;
  margin-left: 1em;
}

.site-branding__text {
  display: inline-block;
  vertical-align: top;
}

.site-branding__name {
  font-size: 1.375rem;
  color: #686868;
  line-height: 1;
}

.site-branding__slogan {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  margin-top: 7px;
  word-spacing: 0.1em;
  font-style: italic;
}

/* ---------- Footer ----------- */

.amp-footer {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.amp-footer__content {
  color: #c0c0c0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  padding: 2rem 1rem 2rem;
}

.amp-footer a,
.amp-footer a.is-active {
  color: #fcfcfc;
  color: rgba(255, 255, 255, 0.8);
}

.amp-footer a:hover,
.amp-footer a:focus {
  color: #fefefe;
  color: rgba(255, 255, 255, 0.95);
}


/* ---------- Skip Link ----------- */

.amp-skip-link {
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: 50;
  background: #444;
  background: rgba(0, 0, 0, 0.6);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.94em;
  line-height: 1.7em;
  padding: 1px 10px 2px;
  border-radius: 0 0 10px 10px;
  border-bottom-width: 0;
  outline: 0;
}

.amp-skip-link.visually-hidden.focusable:focus {
  position: absolute;
  color: #fff;
}

/* ---------- Messages ----------- */

.messages__wrapper {
  padding: 20px 0 5px 8px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 8px 0;
}

[dir="rtl"] .messages__wrapper {
  padding: 20px 8px 5px 0;
}

.messages {
  background: no-repeat 10px 17px;  /* LTR */
  border: 1px solid;
  border-width: 1px 1px 1px 0;  /* LTR */
  border-radius: 2px;
  padding: 15px 20px 15px 35px; /* LTR */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

[dir="rtl"] .messages {
  border-width: 1px 0 1px 1px;
  background-position: right 10px top 17px;
  padding-left: 20px;
  padding-right: 35px;
  text-align: right;
}
.messages + .messages {
  margin-top: 1.538em;
}

.messages__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.messages__item + .messages__item {
  margin-top: 0.769em;
}

/* See .color-success in Seven's colors.css */
.messages--status {
  color: #325e1c;
  background-color: #f3faef;
  border-color: #c9e1bd #c9e1bd #c9e1bd transparent;  /* LTR */
  background-image: url(../../../../../../core/misc/icons/73b355/check.svg);
  box-shadow: -8px 0 0 #77b259; /* LTR */
}

[dir="rtl"] .messages--status {
  border-color: #c9e1bd transparent #c9e1bd #c9e1bd;
  box-shadow: 8px 0 0 #77b259;
  margin-left: 0;
}

/* See .color-warning in Seven's colors.css */
.messages--warning {
  background-color: #fdf8ed;
  background-image: url(../../../../../../core/misc/icons/e29700/warning.svg);
  border-color: #f4daa6 #f4daa6 #f4daa6 transparent;  /* LTR */
  color: #734c00;
  box-shadow: -8px 0 0 #e09600; /* LTR */
}

[dir="rtl"] .messages--warning {
  border-color: #f4daa6 transparent #f4daa6 #f4daa6;
  box-shadow: 8px 0 0 #e09600;
}

/* See .color-error in Seven's colors.css */
.messages--error {
  background-color: #fcf4f2;
  color: #a51b00;
  background-image: url(../../../../../../core/misc/icons/e32700/error.svg);
  border-color: #f9c9bf #f9c9bf #f9c9bf transparent;  /* LTR */
  box-shadow: -8px 0 0 #e62600; /* LTR */
}

[dir="rtl"] .messages--error {
  border-color: #f9c9bf transparent #f9c9bf #f9c9bf;
  box-shadow: 8px 0 0 #e62600;
}

.messages--error p.error {
  color: #a51b00;
}

File

themes/thunder_amp/templates/amp-css/amp-custom-styles.html.twig
View source
  1. /* ---------- Layout ----------- */
  2. html {
  3. height: 100%;
  4. }
  5. body {
  6. min-height: 100%;
  7. }
  8. .amp-header__content,
  9. .amp-main__content,
  10. .amp-footer__content {
  11. margin: 0 auto;
  12. max-width: 620px;
  13. }
  14. .amp-main {
  15. min-height: 300px;
  16. }
  17. .amp-main__content {
  18. padding-top: 20px;
  19. padding-bottom: 40px;
  20. }
  21. .layout-container {
  22. max-width: 860px;
  23. margin-left: auto;
  24. margin-right: auto;
  25. box-sizing: border-box;
  26. }
  27. /* ---------- Typography ----------- */
  28. body {
  29. font-family: Georgia, "Times New Roman", Times, serif;
  30. font-size: 100%;
  31. line-height: 1.5;
  32. word-wrap: break-word;
  33. }
  34. /* --- Links --- */
  35. a,
  36. a.link {
  37. text-decoration: none;
  38. border-bottom: 1px dotted;
  39. }
  40. a:hover,
  41. a:active,
  42. a:focus,
  43. .link:hover,
  44. .link:active,
  45. .link:focus {
  46. text-decoration: none;
  47. border-bottom-style: solid;
  48. }
  49. .link {
  50. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  51. }
  52. h1 a,
  53. h2 a {
  54. border-bottom: none;
  55. }
  56. /* --- Headings --- */
  57. h1,
  58. h2,
  59. h3,
  60. h4,
  61. h5,
  62. h6,
  63. .heading-a,
  64. .heading-b,
  65. .heading-c,
  66. .heading-d,
  67. .heading-e,
  68. .heading-f {
  69. font-weight: inherit;
  70. margin: 1rem 0 0.5rem;
  71. }
  72. h1,
  73. .heading-a {
  74. font-size: 1.2rem;
  75. color: #000;
  76. }
  77. h2,
  78. .heading-b {
  79. font-size: 1rem;
  80. }
  81. h3,
  82. .heading-c {
  83. font-size: 0.9375rem;
  84. }
  85. h4,
  86. .heading-d {
  87. font-size: 0.875rem;
  88. }
  89. h5,
  90. h6,
  91. .heading-e,
  92. .heading-f {
  93. text-transform: uppercase;
  94. letter-spacing: 0.1em;
  95. }
  96. h5,
  97. .heading-e {
  98. font-size: 0.75rem;
  99. }
  100. h6,
  101. .heading-f {
  102. font-size: 0.625rem;
  103. }
  104. /* --- Text --- */
  105. p {
  106. margin: 0 0 1rem;
  107. }
  108. del {
  109. text-decoration: line-through;
  110. }
  111. blockquote {
  112. background: #f7f7f7;
  113. border-left: 1px solid #bbb; /* LTR */
  114. font-style: italic;
  115. margin: 1.3125rem 10px;
  116. padding: 0.4375rem 10px;
  117. }
  118. [dir="rtl"] blockquote {
  119. border-left: none;
  120. border-right: 1px solid #bbb;
  121. }
  122. blockquote:before {
  123. color: #bbb;
  124. content: "\201C";
  125. font-size: 2.625rem;
  126. line-height: 0.1;
  127. margin-right: 0.153125rem; /* LTR */
  128. vertical-align: -0.30625rem;
  129. }
  130. [dir="rtl"] blockquote:before {
  131. content: "\201D";
  132. margin-left: 0.153125rem;
  133. margin-right: 0;
  134. }
  135. blockquote:after {
  136. color: #bbb;
  137. content: "\201D";
  138. font-size: 2.625rem;
  139. line-height: 0.1;
  140. vertical-align: -0.39375rem;
  141. }
  142. [dir="rtl"] blockquote:after {
  143. content: "\201C";
  144. }
  145. blockquote > p:first-child {
  146. display: inline;
  147. }
  148. img {
  149. max-width: 100%;
  150. height: auto;
  151. }
  152. ul, ol {
  153. margin: 0;
  154. padding: 0 0 0.21875rem 0.875rem; /* LTR */
  155. }
  156. [dir="rtl"] ul,
  157. [dir="rtl"] ol {
  158. padding: 0 0.875rem 0.21875rem 0;
  159. }
  160. ol ol,
  161. ul ul {
  162. margin: 0;
  163. padding: 0 0 0.21875rem 0.875rem; /* LTR */
  164. }
  165. [dir="rtl"] ol ol,
  166. [dir="rtl"] ul ul {
  167. padding: 0 0.875rem 0.21875rem 0;
  168. }
  169. /* ---------- Colors ----------- */
  170. body {
  171. background: #292929;
  172. color: #3b3b3b;
  173. }
  174. .amp-header {
  175. background-color: #1d84c3;
  176. background-image: -webkit-linear-gradient(top, #055a8e 0%, #1d84c3 100%);
  177. background-image: linear-gradient(to bottom, #055a8e 0%, #1d84c3 100%);
  178. }
  179. .amp-main {
  180. background-color: #ffffff;
  181. }
  182. .amp-footer {
  183. background: #292929;
  184. }
  185. a,
  186. .link {
  187. color: #0071b3;
  188. }
  189. a:hover,
  190. a:focus,
  191. .link:hover,
  192. .link:focus {
  193. color: #018fe2;
  194. }
  195. a:active,
  196. .link:active {
  197. color: #23aeff;
  198. }
  199. .amp-header,
  200. .amp-header a,
  201. .amp-header li a.is-active,
  202. .site-branding__text,
  203. .site-branding,
  204. .site-branding__text a,
  205. .site-branding a {
  206. color: #fffeff;
  207. }
  208. /* ---------- Utility classes ----------- */
  209. .hidden {
  210. display: none;
  211. }
  212. .visually-hidden {
  213. position: absolute;
  214. clip: rect(1px, 1px, 1px, 1px);
  215. overflow: hidden;
  216. height: 1px;
  217. width: 1px;
  218. word-wrap: normal;
  219. }
  220. .visually-hidden.focusable:active,
  221. .visually-hidden.focusable:focus {
  222. position: static;
  223. clip: auto;
  224. overflow: visible;
  225. height: auto;
  226. width: auto;
  227. }
  228. .invisible {
  229. visibility: hidden;
  230. }
  231. .clearfix:after {
  232. content: "";
  233. display: table;
  234. clear: both;
  235. }
  236. /* ---------- Header ----------- */
  237. .amp-header {
  238. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  239. }
  240. .amp-header__content {
  241. padding: 0.75rem .9375rem 0.75rem;
  242. }
  243. .amp-header a {
  244. border-bottom: none;
  245. }
  246. .brand {
  247. margin: 0.375rem auto 0.375rem;
  248. }
  249. .site-branding__logo {
  250. display: inline-block;
  251. margin-right: 0.875rem; /* LTR */
  252. margin-bottom: 0.25rem;
  253. width: 6rem;
  254. }
  255. [dir="rtl"] .site-branding__logo {
  256. margin-right: 0;
  257. margin-left: 1em;
  258. }
  259. .site-branding__text {
  260. display: inline-block;
  261. vertical-align: top;
  262. }
  263. .site-branding__name {
  264. font-size: 1.375rem;
  265. color: #686868;
  266. line-height: 1;
  267. }
  268. .site-branding__slogan {
  269. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  270. font-size: 0.8125rem;
  271. margin-top: 7px;
  272. word-spacing: 0.1em;
  273. font-style: italic;
  274. }
  275. /* ---------- Footer ----------- */
  276. .amp-footer {
  277. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  278. }
  279. .amp-footer__content {
  280. color: #c0c0c0;
  281. color: rgba(255, 255, 255, 0.65);
  282. font-size: 0.75rem;
  283. padding: 2rem 1rem 2rem;
  284. }
  285. .amp-footer a,
  286. .amp-footer a.is-active {
  287. color: #fcfcfc;
  288. color: rgba(255, 255, 255, 0.8);
  289. }
  290. .amp-footer a:hover,
  291. .amp-footer a:focus {
  292. color: #fefefe;
  293. color: rgba(255, 255, 255, 0.95);
  294. }
  295. /* ---------- Skip Link ----------- */
  296. .amp-skip-link {
  297. left: 50%;
  298. -webkit-transform: translateX(-50%);
  299. -ms-transform: translateX(-50%);
  300. transform: translateX(-50%);
  301. z-index: 50;
  302. background: #444;
  303. background: rgba(0, 0, 0, 0.6);
  304. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  305. font-size: 0.94em;
  306. line-height: 1.7em;
  307. padding: 1px 10px 2px;
  308. border-radius: 0 0 10px 10px;
  309. border-bottom-width: 0;
  310. outline: 0;
  311. }
  312. .amp-skip-link.visually-hidden.focusable:focus {
  313. position: absolute;
  314. color: #fff;
  315. }
  316. /* ---------- Messages ----------- */
  317. .messages__wrapper {
  318. padding: 20px 0 5px 8px;
  319. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  320. margin: 8px 0;
  321. }
  322. [dir="rtl"] .messages__wrapper {
  323. padding: 20px 8px 5px 0;
  324. }
  325. .messages {
  326. background: no-repeat 10px 17px; /* LTR */
  327. border: 1px solid;
  328. border-width: 1px 1px 1px 0; /* LTR */
  329. border-radius: 2px;
  330. padding: 15px 20px 15px 35px; /* LTR */
  331. word-wrap: break-word;
  332. overflow-wrap: break-word;
  333. }
  334. [dir="rtl"] .messages {
  335. border-width: 1px 0 1px 1px;
  336. background-position: right 10px top 17px;
  337. padding-left: 20px;
  338. padding-right: 35px;
  339. text-align: right;
  340. }
  341. .messages + .messages {
  342. margin-top: 1.538em;
  343. }
  344. .messages__list {
  345. list-style: none;
  346. padding: 0;
  347. margin: 0;
  348. }
  349. .messages__item + .messages__item {
  350. margin-top: 0.769em;
  351. }
  352. /* See .color-success in Seven's colors.css */
  353. .messages--status {
  354. color: #325e1c;
  355. background-color: #f3faef;
  356. border-color: #c9e1bd #c9e1bd #c9e1bd transparent; /* LTR */
  357. background-image: url(../../../../../../core/misc/icons/73b355/check.svg);
  358. box-shadow: -8px 0 0 #77b259; /* LTR */
  359. }
  360. [dir="rtl"] .messages--status {
  361. border-color: #c9e1bd transparent #c9e1bd #c9e1bd;
  362. box-shadow: 8px 0 0 #77b259;
  363. margin-left: 0;
  364. }
  365. /* See .color-warning in Seven's colors.css */
  366. .messages--warning {
  367. background-color: #fdf8ed;
  368. background-image: url(../../../../../../core/misc/icons/e29700/warning.svg);
  369. border-color: #f4daa6 #f4daa6 #f4daa6 transparent; /* LTR */
  370. color: #734c00;
  371. box-shadow: -8px 0 0 #e09600; /* LTR */
  372. }
  373. [dir="rtl"] .messages--warning {
  374. border-color: #f4daa6 transparent #f4daa6 #f4daa6;
  375. box-shadow: 8px 0 0 #e09600;
  376. }
  377. /* See .color-error in Seven's colors.css */
  378. .messages--error {
  379. background-color: #fcf4f2;
  380. color: #a51b00;
  381. background-image: url(../../../../../../core/misc/icons/e32700/error.svg);
  382. border-color: #f9c9bf #f9c9bf #f9c9bf transparent; /* LTR */
  383. box-shadow: -8px 0 0 #e62600; /* LTR */
  384. }
  385. [dir="rtl"] .messages--error {
  386. border-color: #f9c9bf transparent #f9c9bf #f9c9bf;
  387. box-shadow: 8px 0 0 #e62600;
  388. }
  389. .messages--error p.error {
  390. color: #a51b00;
  391. }