Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

184 lines
4.8KB

  1. {{ define "title" -}}
  2. {{ .Params.title }} | Semantic Design System for Hugo
  3. {{- end }}
  4. {{ define "header" }}
  5. {{ partial "masthead.html" . }}
  6. <style>
  7. :root {
  8. --vertical-rhythm: 5rem;
  9. --logo-animation-filter-start: drop-shadow(0 -25px 45px #ff2e88) brightness(1) drop-shadow(0 -55px 35px #ff2e88) brightness(1) drop-shadow(0 -35px 155px #ff9800) brightness(4);
  10. --logo-animation-filter-end: drop-shadow(0 -20px 45px #ff2e88) brightness(.1) drop-shadow(0 0 5px #ff2e88) brightness(.7) drop-shadow(0 -20px 135px #ff2e88) brightness(2);
  11. }
  12. main, footer, header, caption {
  13. text-align: center;
  14. }
  15. nav[itemtype*="SiteNavigationElement"] {
  16. opacity: 0;
  17. transition: opacity 300ms ease;
  18. }
  19. nav[itemtype*="SiteNavigationElement"]:focus-within {
  20. opacity: 1;
  21. transition: opacity 300ms ease;
  22. }
  23. @media screen and (max-width: 768px) {
  24. nav[itemtype*="SiteNavigationElement"] {
  25. display: none;
  26. }
  27. .hack header h1 {
  28. margin-top: 2rem !important;
  29. }
  30. .grid {
  31. flex-direction: row;
  32. }
  33. .cell {
  34. flex: 1;
  35. }
  36. }
  37. .shaded {
  38. filter: var(--logo-animation-filter-start);
  39. opacity: 0;
  40. }
  41. .animated {
  42. /* FIXME: Animation disabled due to browser conflict with Web Miner */
  43. animation: reveal 2s both;
  44. opacity: 1; /* remove with fix */
  45. filter: var(--logo-animation-filter-end); /* remove with fix */
  46. }
  47. @keyframes reveal {
  48. from {
  49. filter: var(--logo-animation-filter-start);
  50. }
  51. to {
  52. filter: var(--logo-animation-filter-end);
  53. opacity: 1;
  54. }
  55. }
  56. .hack .grid {
  57. justify-content: center;
  58. }
  59. .hack header h1:after {
  60. content: none;
  61. }
  62. .hack header h1 {
  63. font-family: Futura,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif;
  64. padding: 0;
  65. margin: 1rem;
  66. font-size: 3em;
  67. display: inline-block;
  68. background-color: #2a3439;
  69. color: transparent;
  70. text-shadow: 0 2px 3px rgba(255, 255, 255, 0.1);
  71. -webkit-background-clip: text;
  72. -moz-background-clip: text;
  73. background-clip: text;
  74. filter: brightness(3);
  75. }
  76. .hack header h1 sup {
  77. font-size: 1rem;
  78. }
  79. .hack header h1 sup:before {
  80. content: " ";
  81. }
  82. .hack header h2:before,
  83. .hack section h2:before {
  84. content: unset;
  85. }
  86. .hack header h2,
  87. .hack section h2 {
  88. margin-top: .8rem;
  89. font-size: 1.2em;
  90. }
  91. .hack header h2 {
  92. margin-top: -1rem;
  93. }
  94. .hack .install.cta {
  95. margin-top: -1rem;
  96. margin-bottom: 2rem;
  97. }
  98. .hack .install.cta form[action*="quick-install"] {
  99. width: unset;
  100. }
  101. .hack .install.cta form[action*="quick-install"] button {
  102. border-radius: 4px;
  103. color: #ccc;
  104. background-color: #ff2e8860;
  105. transition: all 0.25s ease;
  106. }
  107. .hack .install.cta form[action*="quick-install"] button:hover,
  108. .hack .install.cta form[action*="quick-install"] button:focus {
  109. background-color: #ff2e8880;
  110. color: #fff;
  111. }
  112. .hack .install.cta form[action*="quick-install"] button svg {
  113. stroke: #ff9800;
  114. }
  115. .hack section:not(.capabilities) {
  116. margin: var(--vertical-rhythm) 0;
  117. }
  118. .hack section.hero {
  119. margin-top: -2rem;
  120. margin-bottom: 0;
  121. }
  122. .hack section.hero figure {
  123. margin: 0;
  124. line-height: 0;
  125. min-height: 266px;
  126. }
  127. @media screen and (min-width: 768px) {
  128. .hack section.hero figure img {
  129. margin: -3em 0 -2em;
  130. }
  131. }
  132. .hack section.tagline p {
  133. margin: 0;
  134. font-size: 1.1rem;
  135. line-height: 1.6;
  136. }
  137. .hack section.capabilities table a {
  138. display: block;
  139. }
  140. .hack footer section.cta {
  141. margin-top: 6rem;
  142. }
  143. .hack footer section.cta a {
  144. border-bottom: none;
  145. background-color: inherit;
  146. color: #ff9800;
  147. display: inline-block;
  148. }
  149. .hack footer section.cta a:hover {
  150. color: #fff;
  151. }
  152. .hack footer section.cta a small {
  153. display: block;
  154. }
  155. .hack footer section.license {
  156. display: block;
  157. margin: 3rem;
  158. }
  159. .hack footer section.license blockquote {
  160. margin-top: 3rem;
  161. }
  162. .hack footer section.license a {
  163. border-bottom: none;
  164. background-color: inherit;
  165. filter: var(--logo-animation-filter-end);
  166. }
  167. .dark table tbody td:first-child {
  168. color: inherit;
  169. }
  170. </style>
  171. {{ end }}
  172. {{ define "main" }}
  173. <header>
  174. <h1>{{ .Title }}<sup class="muted">v{{ .Site.Data.npm.latest.version }}</sup></h1>
  175. <h2 class="muted">Semantic Design System for Hugo</h2>
  176. </header>
  177. {{ .Content }}
  178. {{ end }}
  179. {{ define "footer" }}
  180. {{ partial "powered-by.html" . }}
  181. {{ partial "cookie-disclaimer.html" . }}
  182. {{ end }}