Advertisement
Guest User

kek3

a guest
Oct 22nd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.31 KB | None | 0 0
  1. :root {
  2. --bg-color: var(--color-background);
  3. --accent-color: var(--color-accent);
  4. --box-shadow: 0 0 16px rgba(0,0,0,.4);
  5. --color-background: #1c1f22;
  6. --color-el-background: rgba(255,255,255,.05);
  7. --color-text: rgba(255,255,255,.8);
  8. --color-accent: #e53232;
  9. --space-huge: 2rem;
  10. --space-block: 1rem;
  11. --space-inline: .5em;
  12. --line-thin: 1px;
  13. --line-thick: 2px;
  14. }
  15. * {
  16. margin:0;
  17. padding:0;
  18. box-sizing:border-box;
  19. }
  20. html,body {
  21. height:100%;
  22. }
  23. html {
  24. -webkit-tap-highlight-color:transparent;
  25. background:#111;
  26. background:var(--color-background);
  27. font:1em/1 'Lato',sans-serif;
  28. color:rgba(255,255,255,.8);
  29. color:var(--color-text);
  30. }
  31. body {
  32. display:flex;
  33. overflow:hidden;
  34. }
  35. .scroll-container {
  36. overflow-x:hidden;
  37. overflow-y:scroll;
  38. }
  39. @media (min-width: 840px) {
  40. .scroll-container::-webkit-scrollbar {
  41. height:.5rem;
  42. width:.5rem;
  43. background:rgba(255,255,255,.025);
  44. border-radius:.25rem;
  45. }
  46. .scroll-container::-webkit-scrollbar-thumb {
  47. background:rgba(255,255,255,.05);
  48. border-radius:.25rem;
  49. }
  50. .scroll-container::-webkit-scrollbar-thumb:active {
  51. background:rgba(255,255,255,.1);
  52. }
  53. }
  54. div#notification-msg {
  55. margin-bottom:15px;
  56. }
  57. .main-column {
  58. position:relative;
  59. flex:1 1 auto;
  60. display:flex;
  61. flex-direction:column;
  62. height:calc(100vh - 1rem);
  63. padding:.5rem;
  64. }
  65. .main-column>header,.main-column>footer,.main-column main>* {
  66. width:100%;
  67. max-width:600px;
  68. margin:0 auto;
  69. flex:none;
  70. }
  71. .main-column main {
  72. flex:none;
  73. display:flex;
  74. flex-direction:column;
  75. }
  76. .main-column main>:nth-child(n+2) {
  77. margin-top:.5rem;
  78. }
  79. @media (min-width: 840px) {
  80. .main-column {
  81. padding:2rem .5rem;
  82. margin:.5rem .5rem .5rem 0;
  83. }
  84. .main-column main {
  85. margin:2rem 0;
  86. }
  87. .main-column main>:nth-child(n+2) {
  88. margin-top:2rem;
  89. }
  90. }
  91. @media (max-width: 839px) {
  92. .main-column {
  93. padding-bottom:3.5rem;
  94. }
  95. .main-column>* {
  96. max-width:none;
  97. }
  98. }
  99. .main-header {
  100. display:flex;
  101. justify-content:center;
  102. align-items:center;
  103. }
  104. .main-header .logo svg {
  105. display:block;
  106. height:32px;
  107. fill:rgba(255,255,255,.8);
  108. }
  109. @media (max-width: 839px) {
  110. .main-header .logo {
  111. padding:.5em 1em;
  112. }
  113. .main-header .logo svg {
  114. display:block;
  115. height:1em;
  116. }
  117. .main-header {
  118. position:fixed;
  119. left:.5rem;
  120. right:.5rem;
  121. bottom:0;
  122. border-top:1px solid rgba(255,255,255,.05);
  123. background:#111;
  124. background:var(--color-background);
  125. justify-content:space-between;
  126. padding:.5rem 0;
  127. box-shadow:0 0 3rem 1em #111;
  128. box-shadow:0 0 3rem 1em var(--color-background);
  129. z-index:3;
  130. width:auto!important;
  131. margin:0;
  132. }
  133. .main-header .toggles button {
  134. --color-el-background: transparent;
  135. }
  136. }
  137. @media (min-width: 840px) {
  138. .main-header a {
  139. margin:auto;
  140. }
  141. .main-header .toggles {
  142. display:none;
  143. }
  144. .main-header .logo svg :last-child {
  145. fill:#e53232;
  146. fill:var(--color-accent);
  147. }
  148. }
  149. aside {
  150. position:relative;
  151. box-shadow:0 0 16px rgba(0,0,0,.8);
  152. box-shadow:var(--box-shadow);
  153. height:100vh;
  154. width:360px;
  155. background:#111;
  156. background:var(--bg-color);
  157. transition:transform .6s,margin-right .6s,margin-left .6s;
  158. display:flex;
  159. flex-direction:column;
  160. z-index:20;
  161. }
  162. aside.left {
  163. order:-1;
  164. }
  165. aside>section {
  166. display:flex;
  167. flex-direction:column;
  168. padding:1rem;
  169. flex:none;
  170. }
  171. aside .scroll-container {
  172. padding-right:1rem;
  173. }
  174. aside>section.flex {
  175. flex:auto;
  176. overflow-x:hidden;
  177. overflow-y:scroll;
  178. margin-right:1rem;
  179. }
  180. .chat>.alert-notifier {
  181. padding:5px;
  182. text-align:center;
  183. display:none;
  184. background:#e53232;
  185. }
  186. .chat>.alert-notifier.new {
  187. display:block;
  188. }
  189. section.chat>form.logged-in {
  190. display:none;
  191. }
  192. aside .button-group {
  193. display:flex;
  194. }
  195. aside nav.button-group {
  196. }
  197. aside .button-group button {
  198. flex:auto;
  199. justify-content:center;
  200. }
  201. aside nav.button-group button {
  202. white-space:nowrap;
  203. flex:1;
  204. padding:0;
  205. border-radius:0;
  206. margin:0!important;
  207. }
  208. aside nav.button-group button.is-active {
  209. color:rgba(255,255,255,.5);
  210. }
  211. aside nav.button-group button:first-child {
  212. border-radius:4px 0 0 4px;
  213. padding-left:1em;
  214. }
  215. aside nav.button-group button:last-child {
  216. border-radius:0 4px 4px 0;
  217. padding-right:1em;
  218. }
  219. aside .button-group button:nth-child(n+2) {
  220. margin-left:0.5rem;
  221. }
  222. aside>section.user {
  223. flex:none;
  224. flex-direction:row;
  225. align-items:center;
  226. justify-content:space-between;
  227. cursor:pointer;
  228. }
  229. aside>section.user:hover,aside>section.user:hover+section {
  230. background-color:rgba(255,255,255,.05);
  231. }
  232. section.user .toggle-icon {
  233. height:1rem;
  234. width:.5rem;
  235. background:rgba(255,255,255,.2);
  236. position:relative;
  237. border-radius:.25rem;
  238. transition:background-color .2s;
  239. }
  240. section.user .toggle-icon svg {
  241. width:1rem;
  242. height:1rem;
  243. position:absolute;
  244. top:0;
  245. left:50%;
  246. transform:translate(-50%,-50%);
  247. transition:top .2s,transform .2s;
  248. }
  249. section.user .toggle-icon.is-open {
  250. background:#e53232;
  251. background:var(--accent-color);
  252. }
  253. section.user .toggle-icon.is-open svg {
  254. top:100%;
  255. transform:translate(-50%,-50%) rotate(90deg);
  256. }
  257. aside>section.menus {
  258. overflow:hidden;
  259. flex:none;
  260. transition:height .2s,padding .2s;
  261. background-clip:padding-box;
  262. }
  263. aside>section.menus .settings.no-support {
  264. display:none;
  265. }
  266. aside>section.menus>* {
  267. flex:none;
  268. }
  269. aside>section.menus .settings {
  270. flex:auto;
  271. overflow-y:scroll;
  272. overflow-x:hidden;
  273. margin-top:1rem;
  274. }
  275. aside>section.menus:not(.is-open) {
  276. height:0;
  277. padding-top:0;
  278. padding-bottom:0;
  279. }
  280. aside .settings h3::first-letter {
  281. text-transform:uppercase;
  282. }
  283. aside>section.chat {
  284. flex:1 1 auto;
  285. }
  286. aside>section.login {
  287. flex:none;
  288. }
  289. @media (max-width: 800px) {
  290. aside {
  291. position:fixed;
  292. left:105%;
  293. }
  294. aside [data-toggletarget] {
  295. position:fixed;
  296. margin:0!important;
  297. top:.5rem;
  298. left:.5rem;
  299. right:.5rem;
  300. bottom:3rem;
  301. background:#111;
  302. background:var(--color-background);
  303. border-radius:2px;
  304. box-shadow:0 0 3rem rgba(0,0,0,.8);
  305. transition:visibility 0s .1s,opacity .1s,transform .1s;
  306. }
  307. aside [data-toggletarget]:not(.is-open) {
  308. visibility:hidden;
  309. opacity:0;
  310. transform:translateY(1rem);
  311. }
  312. aside [data-toggletarget].is-open {
  313. transition:visibility 0s,opacity .1s,transform .1s;
  314. }
  315. }
  316. @media (min-width: 840px) {
  317. aside>.menus {
  318. padding-top:0;
  319. border-bottom:1px solid rgba(255,255,255,.05);
  320. }
  321. aside>.menus.is-open {
  322. height:50vh;
  323. }
  324. }
  325. .donations p {
  326. color:rgba(255,255,255,.8);
  327. }
  328. .donations p span {
  329. color:#e53232;
  330. color:var(--accent-color);
  331. }
  332. .donations .slider {
  333. margin:16px 0;
  334. }
  335. .floating-heart {
  336. position:fixed;
  337. z-index:4;
  338. motion-path:path('M0,0 Q32,-32 0,-64 Q-32,-96 0,-128');
  339. motion-rotation:0deg;
  340. width:1rem;
  341. height:1rem;
  342. pointer-events:none;
  343. fill:white;
  344. }
  345. .floating-heart.contributor {
  346. z-index:5;
  347. width:1.5rem;
  348. height:1.5rem;
  349. }
  350. footer {
  351. margin-top:auto!important;
  352. }
  353. footer .bolt {
  354. fill:#e53232;
  355. fill:var(--accent-color);
  356. }
  357. @media all and (min-width: 440px) {
  358. footer ul {
  359. display:flex;
  360. flex-direction:row;
  361. flex-wrap:wrap;
  362. border:none!important;
  363. }
  364. footer li {
  365. border:none!important;
  366. flex-shrink:1;
  367. background:transparent!important;
  368. align-items:center!important;
  369. }
  370. footer svg {
  371. box-sizing:content-box;
  372. }
  373. footer li>* {
  374. padding:0 16px;
  375. }
  376. footer li:nth-child(n+2)::before {
  377. content:'\b7';
  378. color:rgba(255,255,255,.5);
  379. }
  380. }
  381. .template {
  382. display:none;
  383. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement