sunblind.css 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. /**
  2. [ sunblind ]
  3. A blindingly sunny theme for Reveal.js with Lora + Leto fonts and a colorful border.
  4. By Josh Dzielak, https://dzello.com/, License MIT
  5. The bold border is optional and requires some HTML. To use it:
  6. 1. Add 4 divs to your HTML page:
  7. <div class="line top"></div>
  8. <div class="line bottom"></div>
  9. <div class="line left"></div>
  10. <div class="line right"></div>
  11. 2. Set { margin: 0.2 } in the Reveal.js initializer to make sure
  12. your presentation content doesn't collide with the frame.
  13. Like the theme but don't like the colors? Don't fret. Just change
  14. $borderColor and/or $linkColor below to something else and rebuild.
  15. Or if you don't want to rebuild the theme just override the .line background
  16. property with some CSS:
  17. .line {
  18. background: <new-color>;
  19. }
  20. */
  21. @import url(https://fonts.googleapis.com/css?family=Lato:300,700);
  22. @import url(https://fonts.googleapis.com/css?family=Lora:700);
  23. section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
  24. color: #141414; }
  25. .reveal .controls {
  26. right: 50px;
  27. bottom: 50px; }
  28. .line {
  29. content: '';
  30. position: fixed;
  31. background: #f6f195;
  32. z-index: 105; }
  33. .line.top {
  34. left: 0;
  35. top: 0;
  36. width: 100%;
  37. height: 30px; }
  38. @media (max-width: 840px) {
  39. .line.top {
  40. height: 15px; } }
  41. .line.bottom {
  42. left: 0;
  43. top: auto;
  44. bottom: 0;
  45. width: 100%;
  46. height: 30px; }
  47. @media (max-width: 840px) {
  48. .line.bottom {
  49. height: 15px; } }
  50. .line.left {
  51. left: 0;
  52. top: 0;
  53. width: 30px;
  54. height: 200%; }
  55. @media (max-width: 840px) {
  56. .line.left {
  57. width: 15px; } }
  58. .line.right {
  59. left: auto;
  60. right: 0;
  61. top: 0;
  62. width: 30px;
  63. height: 200%; }
  64. @media (max-width: 840px) {
  65. .line.right {
  66. width: 15px; } }
  67. /*********************************************
  68. * GLOBAL STYLES
  69. *********************************************/
  70. body {
  71. background: #fff;
  72. background-color: #fff; }
  73. .reveal {
  74. font-family: "Lato", serif;
  75. font-size: 32px;
  76. font-weight: normal;
  77. color: #363636; }
  78. ::selection {
  79. color: #fff;
  80. background: #ffc0d5;
  81. text-shadow: none; }
  82. ::-moz-selection {
  83. color: #fff;
  84. background: #ffc0d5;
  85. text-shadow: none; }
  86. .reveal .slides > section,
  87. .reveal .slides > section > section {
  88. line-height: 1.3;
  89. font-weight: inherit; }
  90. /*********************************************
  91. * HEADERS
  92. *********************************************/
  93. .reveal h1,
  94. .reveal h2,
  95. .reveal h3,
  96. .reveal h4,
  97. .reveal h5,
  98. .reveal h6 {
  99. margin: 0 0 20px 0;
  100. color: #141414;
  101. font-family: "Lora", sans-serif;
  102. font-weight: 700;
  103. line-height: 1.2;
  104. letter-spacing: normal;
  105. text-transform: uppercase;
  106. text-shadow: none;
  107. word-wrap: break-word; }
  108. .reveal h1 {
  109. font-size: 2em; }
  110. .reveal h2 {
  111. font-size: 1.8em; }
  112. .reveal h3 {
  113. font-size: 1.4em; }
  114. .reveal h4 {
  115. font-size: 1.2em; }
  116. .reveal h1 {
  117. text-shadow: none; }
  118. /*********************************************
  119. * OTHER
  120. *********************************************/
  121. .reveal p {
  122. margin: 20px 0;
  123. line-height: 1.3; }
  124. /* Ensure certain elements are never larger than the slide itself */
  125. .reveal img,
  126. .reveal video,
  127. .reveal iframe {
  128. max-width: 95%;
  129. max-height: 95%; }
  130. .reveal strong,
  131. .reveal b {
  132. font-weight: bold; }
  133. .reveal em {
  134. font-style: italic; }
  135. .reveal ol,
  136. .reveal dl,
  137. .reveal ul {
  138. display: inline-block;
  139. text-align: left;
  140. margin: 0 0 0 1em; }
  141. .reveal ol {
  142. list-style-type: decimal; }
  143. .reveal ul {
  144. list-style-type: disc; }
  145. .reveal ul ul {
  146. list-style-type: square; }
  147. .reveal ul ul ul {
  148. list-style-type: circle; }
  149. .reveal ul ul,
  150. .reveal ul ol,
  151. .reveal ol ol,
  152. .reveal ol ul {
  153. display: block;
  154. margin-left: 40px; }
  155. .reveal dt {
  156. font-weight: bold; }
  157. .reveal dd {
  158. margin-left: 40px; }
  159. .reveal blockquote {
  160. display: block;
  161. position: relative;
  162. width: 70%;
  163. margin: 20px auto;
  164. padding: 5px;
  165. font-style: italic;
  166. background: rgba(255, 255, 255, 0.05);
  167. box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
  168. .reveal blockquote p:first-child,
  169. .reveal blockquote p:last-child {
  170. display: inline-block; }
  171. .reveal q {
  172. font-style: italic; }
  173. .reveal pre {
  174. display: block;
  175. position: relative;
  176. width: 90%;
  177. margin: 20px auto;
  178. text-align: left;
  179. font-size: 0.55em;
  180. font-family: monospace;
  181. line-height: 1.2em;
  182. word-wrap: break-word;
  183. box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
  184. .reveal code {
  185. font-family: monospace;
  186. text-transform: none; }
  187. .reveal pre code {
  188. display: block;
  189. padding: 5px;
  190. overflow: auto;
  191. max-height: 400px;
  192. word-wrap: normal; }
  193. .reveal table {
  194. margin: auto;
  195. border-collapse: collapse;
  196. border-spacing: 0; }
  197. .reveal table th {
  198. font-weight: bold; }
  199. .reveal table th,
  200. .reveal table td {
  201. text-align: left;
  202. padding: 0.2em 0.5em 0.2em 0.5em;
  203. border-bottom: 1px solid; }
  204. .reveal table th[align="center"],
  205. .reveal table td[align="center"] {
  206. text-align: center; }
  207. .reveal table th[align="right"],
  208. .reveal table td[align="right"] {
  209. text-align: right; }
  210. .reveal table tbody tr:last-child th,
  211. .reveal table tbody tr:last-child td {
  212. border-bottom: none; }
  213. .reveal sup {
  214. vertical-align: super; }
  215. .reveal sub {
  216. vertical-align: sub; }
  217. .reveal small {
  218. display: inline-block;
  219. font-size: 0.6em;
  220. line-height: 1.2em;
  221. vertical-align: top; }
  222. .reveal small * {
  223. vertical-align: top; }
  224. /*********************************************
  225. * LINKS
  226. *********************************************/
  227. .reveal a {
  228. color: #FF4081;
  229. text-decoration: none;
  230. -webkit-transition: color .15s ease;
  231. -moz-transition: color .15s ease;
  232. transition: color .15s ease; }
  233. .reveal a:hover {
  234. color: #ff8db3;
  235. text-shadow: none;
  236. border: none; }
  237. .reveal .roll span:after {
  238. color: #fff;
  239. background: #f30053; }
  240. /*********************************************
  241. * IMAGES
  242. *********************************************/
  243. .reveal section img {
  244. margin: 15px 0px;
  245. background: rgba(255, 255, 255, 0.12);
  246. border: 4px solid #363636;
  247. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
  248. .reveal section img.plain {
  249. border: 0;
  250. box-shadow: none; }
  251. .reveal a img {
  252. -webkit-transition: all .15s linear;
  253. -moz-transition: all .15s linear;
  254. transition: all .15s linear; }
  255. .reveal a:hover img {
  256. background: rgba(255, 255, 255, 0.2);
  257. border-color: #FF4081;
  258. box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
  259. /*********************************************
  260. * NAVIGATION CONTROLS
  261. *********************************************/
  262. .reveal .controls {
  263. color: #FF4081; }
  264. /*********************************************
  265. * PROGRESS BAR
  266. *********************************************/
  267. .reveal .progress {
  268. background: rgba(0, 0, 0, 0.2);
  269. color: #FF4081; }
  270. .reveal .progress span {
  271. -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
  272. -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
  273. transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }