example.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. body {
  2. background-color: #942A57;
  3. margin: 0 auto;
  4. max-width: 760px;
  5. }
  6. html, body {
  7. -webkit-box-sizing: border-box;
  8. -moz-box-sizing: border-box;
  9. box-sizing: border-box;
  10. }
  11. *, *:before, *:after {
  12. -webkit-box-sizing: inherit;
  13. -moz-box-sizing: inherit;
  14. box-sizing: inherit;
  15. }
  16. body, input, button {
  17. font-family: Georgia, Helvetica;
  18. font-size: 17px;
  19. color: #ecf0f1;
  20. }
  21. h1 {
  22. text-align: center;
  23. background-color: #AC5C7E;
  24. margin-top: 20px;
  25. margin-bottom: 0;
  26. padding: 10px;
  27. }
  28. h3 {
  29. background-color: rgba(255, 255, 255, 0.2);
  30. border-bottom: 5px solid #A13462;
  31. text-align: center;
  32. padding: 10px;
  33. }
  34. h3 div {
  35. margin-bottom: 10px;
  36. }
  37. .tagline {
  38. position: relative;
  39. margin-top: 0;
  40. }
  41. .tagline-text {
  42. vertical-align: middle;
  43. }
  44. .__slackin {
  45. float: right;
  46. margin-left: 10px;
  47. vertical-align: middle;
  48. }
  49. .promo {
  50. margin-bottom: 0;
  51. font-style: italic;
  52. padding: 10px;
  53. background-color: #ff4020;
  54. border-bottom: 5px solid #c00;
  55. }
  56. a {
  57. font-weight: bold;
  58. }
  59. a,
  60. a:hover {
  61. color: #ecf0f1;
  62. }
  63. pre {
  64. white-space: pre-wrap;
  65. }
  66. pre code {
  67. color: #fff;
  68. font-size: 14px;
  69. line-height: 1.3;
  70. }
  71. label {
  72. display: block;
  73. margin-bottom: 15px;
  74. }
  75. #superSecret {
  76. opacity: 0.01;
  77. background-color: rgb(0,0,0,0.3);
  78. height: 60px;
  79. width: 100%;
  80. transition: 0.2s;
  81. object-fit: cover;
  82. }
  83. #superSecret:hover {
  84. animation: superSUPERSecret;
  85. animation-duration: 0.5s;
  86. animation-iteration-count: infinite;
  87. opacity: 0.8;
  88. background-color: rgb(0,0,0,0.1);
  89. }
  90. @keyframes superSUPERSecret {
  91. 0%{transform: rotate(3deg)}
  92. 50%{transform: rotate(-3deg)}
  93. 100%{transform: rotate(3deg)}
  94. }
  95. sub {
  96. display: block;
  97. text-align: right;
  98. margin-top: -10px;
  99. font-size: 11px;
  100. font-style: italic;
  101. }
  102. ul {
  103. margin: 0;
  104. padding: 0;
  105. }
  106. .parent {
  107. background-color: rgba(255, 255, 255, 0.2);
  108. margin: 50px 0;
  109. padding: 20px;
  110. }
  111. input {
  112. border: none;
  113. outline: none;
  114. background-color: #ecf0f1;
  115. padding: 10px;
  116. color: #942A57;
  117. border: 0;
  118. margin: 5px 0;
  119. display: block;
  120. width: 100%;
  121. }
  122. button {
  123. background-color: #ecf0f1;
  124. color: #942A57;
  125. border: 0;
  126. padding: 18px 12px;
  127. margin-left: 6px;
  128. cursor: pointer;
  129. outline: none;
  130. }
  131. button:hover {
  132. background-color: #e74c3c;
  133. color: #ecf0f1;
  134. }
  135. .gh-fork {
  136. position: fixed;
  137. top: 0;
  138. right: 0;
  139. border: 0;
  140. }
  141. /* dragula-specific example page styles */
  142. .wrapper {
  143. display: table;
  144. }
  145. .container {
  146. display: table-cell;
  147. background-color: rgba(255, 255, 255, 0.2);
  148. width: 50%;
  149. }
  150. .container:nth-child(odd) {
  151. background-color: rgba(0, 0, 0, 0.2);
  152. }
  153. /*
  154. * note that styling gu-mirror directly is a bad practice because it's too generic.
  155. * you're better off giving the draggable elements a unique class and styling that directly!
  156. */
  157. .container > div,
  158. .gu-mirror {
  159. margin: 10px;
  160. padding: 10px;
  161. background-color: rgba(0, 0, 0, 0.2);
  162. transition: opacity 0.4s ease-in-out;
  163. }
  164. .container > div {
  165. cursor: move;
  166. cursor: grab;
  167. cursor: -moz-grab;
  168. cursor: -webkit-grab;
  169. }
  170. .gu-mirror {
  171. cursor: grabbing;
  172. cursor: -moz-grabbing;
  173. cursor: -webkit-grabbing;
  174. }
  175. .container .ex-moved {
  176. background-color: #e74c3c;
  177. }
  178. .container.ex-over {
  179. background-color: rgba(255, 255, 255, 0.3);
  180. }
  181. #left-lovehandles > div,
  182. #right-lovehandles > div {
  183. cursor: initial;
  184. }
  185. .handle {
  186. padding: 0 5px;
  187. margin-right: 5px;
  188. background-color: rgba(0, 0, 0, 0.4);
  189. cursor: move;
  190. }
  191. .image-thing {
  192. margin: 20px 0;
  193. display: block;
  194. text-align: center;
  195. }
  196. .slack-join {
  197. position: absolute;
  198. font-weight: normal;
  199. font-size: 14px;
  200. right: 10px;
  201. top: 50%;
  202. margin-top: -8px;
  203. line-height: 16px;
  204. }
  205. /* Carbon */
  206. #carbonads {
  207. position: absolute;
  208. display: block;
  209. overflow: hidden;
  210. margin-left: -180px;
  211. padding: 1em;
  212. max-width: calc(130px + 2em);
  213. background-color: #aa5579;
  214. text-align: center;
  215. font-size: 12px;
  216. font-family: Verdana, "Helvetica Neue", Helvetica, sans-serif;
  217. line-height: 1.5;
  218. }
  219. #carbonads a {
  220. color: inherit;
  221. text-decoration: none;
  222. font-weight: 400;
  223. transition: color .2s ease-in-out;
  224. }
  225. #carbonads a:hover {
  226. color: #221c3b;
  227. }
  228. #carbonads span {
  229. display: block;
  230. overflow: hidden;
  231. }
  232. .carbon-img {
  233. display: block;
  234. margin: 0 auto 1em;
  235. }
  236. .carbon-text {
  237. display: block;
  238. margin-bottom: 1em;
  239. }
  240. .carbon-poweredby {
  241. display: block;
  242. text-transform: uppercase;
  243. letter-spacing: 1px;
  244. font-size: 9px;
  245. }
  246. @media only screen and (min-width: 320px) and (max-width: 960px) {
  247. #carbonads {
  248. position: relative;
  249. float: none;
  250. margin: 0 auto -2em;
  251. max-width: 330px;
  252. }
  253. #carbonads span {
  254. position: relative;
  255. }
  256. #carbonads > span {
  257. max-width: none;
  258. }
  259. .carbon-img {
  260. float: left;
  261. margin: 0 1em 0 0;
  262. }
  263. .carbon-text {
  264. float: left;
  265. margin-bottom: 0;
  266. max-width: calc(100% - 130px - 1em);
  267. text-align: left;
  268. }
  269. .carbon-poweredby {
  270. position: absolute;
  271. right: 0;
  272. bottom: 0;
  273. display: block;
  274. }
  275. }