base_small.css 11 KB

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