base.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. :root {
  2. /* fonts */
  3. --head-font: 'Montserrat', sans-serif;
  4. --main-font: 'Open Sans', sans-serif;
  5. /* font and margin sizes */
  6. --main-size: 1.15em;
  7. --medium-size: 0.75em;
  8. --small-size: 0.65em;
  9. --unit-size: 1em;
  10. --side-margin: 2em;
  11. --nav-size: 15em;
  12. /* colours and shadows */
  13. --fg: #eceff4;
  14. --accent: #81a1c1;
  15. --accent-low: #81a1c160;
  16. --bg1: #2e3440;
  17. --bg2: #3b4252;
  18. --bg3: #434c5e;
  19. --bg4: #4c566a;
  20. --bg5: #d8dee9;
  21. --shadow: 0px 0px 20px 0px rgba(46,52,64,0.95);
  22. }
  23. /* DEFAULTS */
  24. body,
  25. html {
  26. background: var(--bg1);
  27. background-attachment: fixed;
  28. background-size: cover;
  29. color: var(--fg);
  30. font-family: var(--main-font);
  31. font-size: var(--main-size);
  32. margin: 0;
  33. padding: 0;
  34. }
  35. hr {
  36. margin: 0;
  37. color: var(--accent-low);
  38. }
  39. ul {
  40. text-decoration: none;
  41. margin: 0;
  42. padding: 0;
  43. list-style: none;
  44. }
  45. li {
  46. margin: 0;
  47. padding: 0;
  48. }
  49. a:link {
  50. text-decoration: none;
  51. outline: 0;
  52. color: var(--fg);
  53. }
  54. a:visited {
  55. outline: 0;
  56. color: var(--fg);
  57. margin: 0;
  58. padding: 0;
  59. }
  60. a:hover {
  61. color: var(--fg);
  62. transition: all 0.8s ease;
  63. }
  64. a:focus {
  65. color: var(--fg);
  66. transition: all 0.8s ease;
  67. }
  68. b {
  69. font-family: var(--head-font);
  70. font-weight: 800;
  71. }
  72. /* HEADER */
  73. #header {
  74. position: fixed;
  75. top: 0;
  76. left: 0;
  77. right: 0;
  78. background-color: var(--accent);
  79. padding: var(--main-size);
  80. height: var(--main-size);
  81. }
  82. #top {
  83. display: flex;
  84. justify-content: space-around;
  85. align-items: center;
  86. flex-wrap: wrap;
  87. width: 100%;
  88. }
  89. .icon-menu {
  90. margin: 0;
  91. padding: 0;
  92. display: none;
  93. width: var(--unit-size);
  94. height: var(--unit-size);
  95. stroke-width: 0;
  96. stroke: currentColor;
  97. fill: currentColor;
  98. }
  99. #instance {
  100. order: 2;
  101. }
  102. #instance b {
  103. margin: 0;
  104. padding: 0;
  105. vertical-align: middle;
  106. margin-left: calc(0.2 * var(--unit-size));
  107. color: var(--bg1);
  108. }
  109. .icon-logo {
  110. margin: 0;
  111. padding: 0;
  112. display: inline-block;
  113. width: var(--unit-size);
  114. height: var(--unit-size);
  115. stroke-width: 0;
  116. stroke: currentColor;
  117. fill: var(--bg1);
  118. vertical-align: middle;
  119. }
  120. #left-panel {
  121. order: 1;
  122. }
  123. /* left panel z-index fix */
  124. .form {
  125. position: relative;
  126. z-index: 0;
  127. }
  128. #header {
  129. z-index: 1;
  130. }
  131. /* RIGHT PANEL */
  132. #right-panel {
  133. order: 3;
  134. }
  135. .arrow {
  136. border: solid var(--fg);
  137. border-width: 0 3px 3px 0;
  138. display: none;
  139. padding: 0.3em;
  140. }
  141. .right {
  142. transform: rotate(135deg);
  143. -webkit-transform: rotate(135deg);
  144. }
  145. .rss {
  146. display: flex;
  147. flex-direction: column;
  148. width: var(--nav-size);
  149. height: calc(100vh - (3 * var(--unit-size)));
  150. position: fixed;
  151. background-color: var(--bg1);
  152. margin-top: calc(3 * var(--main-size));
  153. z-index: 0;
  154. border-left: solid 1px var(--accent-low);
  155. }
  156. input.larger {
  157. width: var(--main-size);
  158. height: calc( 2 * var(--main-size));
  159. }
  160. /* untoggled */
  161. .rss {
  162. right: 0;
  163. top: 0;
  164. transition: 0.3s ease;
  165. }
  166. .arrow label {
  167. display: block;
  168. cursor: pointer;
  169. }
  170. #toggle-right {
  171. position: absolute;
  172. z-index: 2;
  173. cursor: pointer;
  174. opacity: 0;
  175. }
  176. #toggle-right:not(:checked)+.arrow {
  177. transform: rotate(135deg);
  178. transition: 0.3s ease;
  179. }
  180. /* toggled */
  181. #toggle-right:checked~.rss {
  182. display: flex;
  183. right: 0;
  184. top: 0;
  185. transition: 0.3s ease;
  186. }
  187. #toggle-right:checked+.arrow {
  188. transform: rotate(-45deg);
  189. transition: 0.3s ease;
  190. }
  191. /* styling radio buttons and checkboxes */
  192. .content input[type="checkbox"] + label::before {
  193. content: '';
  194. position: relative;
  195. display: inline-block;
  196. margin-right: 5px;
  197. width: var(--medium-size);
  198. height: var(--medium-size);
  199. background: var(--fg);
  200. border-radius: 10%
  201. }
  202. .content input[type="checkbox"]:checked + label::before {
  203. background: var(--accent);
  204. border-radius: 10%;
  205. background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiICAgeG1sbnM6aW5rc2N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0iMTM4MiIgICAgIGlkPSJuYW1lZHZpZXc4IiAgICAgc2hvd2dyaWQ9ImZhbHNlIiAgICAgaW5rc2NhcGU6em9vbT0iMjkuODc1IiAgICAgaW5rc2NhcGU6Y3g9IjE2LjA2Njk0NiIgICAgIGlua3NjYXBlOmN5PSIxNiIgICAgIGlua3NjYXBlOndpbmRvdy14PSIwIiAgICAgaW5rc2NhcGU6d2luZG93LXk9IjMwIiAgICAgaW5rc2NhcGU6d2luZG93LW1heGltaXplZD0iMSIgICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9InN2ZzYiIC8+ICA8dGl0bGUgICAgIGlkPSJ0aXRsZTIiPmNoZWNrbWFyazwvdGl0bGU+ICA8cGF0aCAgICAgZD0iTTI3IDRsLTE1IDE1LTctNy01IDUgMTIgMTIgMjAtMjB6IiAgICAgaWQ9InBhdGg0IiAgICAgc3R5bGU9ImZpbGw6IzJlMzQ0MDtmaWxsLW9wYWNpdHk6MSIgLz48L3N2Zz4=); background-position: center;
  206. background-repeat: no-repeat;
  207. background-size: 80%;
  208. }
  209. .content input[type="checkbox"]:focus + label::before,
  210. .content input[type="checkbox"]:hover + label::before{
  211. border-radius: 10%;
  212. box-shadow: 0 0px 8px var(--accent);
  213. }
  214. .content input[type="checkbox"] {
  215. position: absolute;
  216. height: 1px;
  217. width: 1px;
  218. overflow: hidden;
  219. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  220. clip: rect(1px, 1px, 1px, 1px);
  221. }
  222. .content input[type="radio"] + label::before {
  223. content: '';
  224. position: relative;
  225. display: inline-block;
  226. margin-right: 5px;
  227. width: var(--medium-size);
  228. height: var(--medium-size);
  229. background: var(--fg);
  230. border-radius: 50%
  231. }
  232. .content input[type="radio"]:checked + label::before {
  233. background: var(--accent);
  234. border-radius: 50%;
  235. background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PH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gIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9InN2ZzQiICAgICBpbmtzY2FwZTp3aW5kb3ctbWF4aW1pemVkPSIxIiAgICAgaW5rc2NhcGU6d2luZG93LXk9IjMwIiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjAiICAgICBpbmtzY2FwZTpjeT0iMjUwIiAgICAgaW5rc2NhcGU6Y3g9IjI1MS4wNDYwMyIgICAgIGlua3NjYXBlOnpvb209IjEuOTEyIiAgICAgc2hvd2dyaWQ9ImZhbHNlIiAgICAgaWQ9Im5hbWVkdmlldzYiICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMzgyIiAgICAgaW5rc2NhcGU6d2luZG93LXdpZHRoPSIyNTYwIiAgICAgaW5rc2NhcGU6cGFnZXNoYWRvdz0iMiIgICAgIGlua3NjYXBlOnBhZ2VvcGFjaXR5PSIwIiAgICAgZ3VpZGV0b2xlcmFuY2U9IjEwIiAgICAgZ3JpZHRvbGVyYW5jZT0iMTAiICAgICBvYmplY3R0b2xlcmFuY2U9IjEwIiAgICAgYm9yZGVyb3BhY2l0eT0iMSIgICAgIGJvcmRlcmNvbG9yPSIjNjY2NjY2IiAgICAgcGFnZWNvbG9yPSIjZmZmZmZmIiAvPiAgPGNpcmNsZSAgICAgc3R5bGU9ImZpbGw6IzJlMzQ0MDtmaWxsLW9wYWNpdHk6MTtzdHJva2U6IzJlMzQ0MDtzdHJva2Utb3BhY2l0eTowIiAgICAgaWQ9ImNpcmNsZTIiICAgICBzdHJva2Utd2lkdGg9IjgiICAgICBzdHJva2U9IiMwMDAiICAgICBmaWxsPSIjZmZmIiAgICAgcj0iMjEwIiAgICAgY3k9IjI1MCIgICAgIGN4PSIyNTAiIC8+PC9zdmc+);
  236. background-position: center center;
  237. background-repeat: no-repeat;
  238. background-size: 60%;
  239. -webkit-background-size: 60%;
  240. -moz-background-size: 60%;
  241. -o-background-size: 60%;
  242. fill: #2e3440;
  243. }
  244. .content input[type="radio"]:focus + label::before,
  245. .content input[type="radio"]:hover + label::before{
  246. border-radius: 50%;
  247. box-shadow: 0 0px 8px var(--accent);
  248. }
  249. .content input[type="radio"] {
  250. position: absolute;
  251. height: 1px;
  252. width: 1px;
  253. overflow: hidden;
  254. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  255. clip: rect(1px, 1px, 1px, 1px);
  256. }
  257. .create-notice button[type=submit] {
  258. background: var(--bg1);
  259. padding: 0.3em 1em;
  260. color: var(--fg);
  261. border-style: solid;
  262. border-color: var(--accent);
  263. border-radius: var(--unit-size);
  264. border-width: 2px;
  265. font-family: 'Montserrat', sans-serif;
  266. font-size: var(--small-size);
  267. font-weight: 700;
  268. }
  269. .create-notice button[type=submit]:focus,
  270. .create-notice button[type=submit]:hover {
  271. border-radius: var(--unit-size);
  272. box-shadow: 0 0px 8px var(--accent);
  273. }