base_mid.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.15em;
  7. --medium-size: 0.7em;
  8. --small-size: 0.65em;
  9. --unit-size: 1em;
  10. --side-margin: 5em;
  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. ul {
  36. text-decoration: none;
  37. margin: 0;
  38. padding: 0;
  39. list-style: none;
  40. }
  41. li {
  42. margin: 0;
  43. padding: 0;
  44. }
  45. a:link {
  46. text-decoration: none;
  47. outline: 0;
  48. color: var(--fg);
  49. margin: 0;
  50. padding: 0;
  51. }
  52. a:visited {
  53. outline: 0;
  54. color: var(--fg);
  55. margin: 0;
  56. padding: 0;
  57. }
  58. a:hover {
  59. color: var(--fg);
  60. transition: all 0.8s ease;
  61. }
  62. a:focus {
  63. color: var(--fg);
  64. transition: all 0.8s ease;
  65. }
  66. b {
  67. font-family: var(--head-font);
  68. font-weight: 800;
  69. }
  70. /* HEADER */
  71. #header {
  72. position: fixed;
  73. top: 0;
  74. left: 0;
  75. right: 0;
  76. background-color: var(--accent);
  77. padding: var(--main-size);
  78. height: var(--main-size);
  79. }
  80. #top {
  81. display: flex;
  82. justify-content: space-between;
  83. align-items: center;
  84. flex-wrap: wrap;
  85. width: 100%;
  86. }
  87. .icon-menu {
  88. position: relative;
  89. display: flex;
  90. align-items: center;
  91. width: var(--unit-size);
  92. height: var(--unit-size);
  93. cursor: pointer;
  94. transition: all .5s ease-in-out;
  95. }
  96. .icon-menu label {
  97. width: var(--unit-size);
  98. height: 3px;
  99. border-radius: 3px;
  100. background: var(--bg1);
  101. transition: all .5s ease-in-out;
  102. }
  103. .icon-menu label::before,
  104. .icon-menu label::after {
  105. content: '';
  106. position: absolute;
  107. width: var(--unit-size);
  108. height: 3px;
  109. border-radius: 3px;
  110. background: var(--bg1);
  111. transition: all .5s ease-in-out;
  112. }
  113. .icon-menu label::before {
  114. transform: translateY(-6px);
  115. }
  116. .icon-menu label::after {
  117. transform: translateY(6px);
  118. }
  119. #toggle:checked+div label{
  120. width: 0px;
  121. }
  122. #toggle:checked+div label::before {
  123. transform: rotate(45deg);
  124. }
  125. #toggle:checked+div label::after {
  126. transform: rotate(-45deg);
  127. }
  128. #instance {
  129. order: 2;
  130. }
  131. #instance b {
  132. margin: 0;
  133. padding: 0;
  134. vertical-align: middle;
  135. margin-left: calc(0.2 * var(--unit-size));
  136. color: var(--bg1);
  137. }
  138. .icon-logo {
  139. margin: 0;
  140. padding: 0;
  141. display: inline-block;
  142. width: var(--unit-size);
  143. height: var(--unit-size);
  144. stroke-width: 0;
  145. stroke: currentColor;
  146. fill: var(--bg1);
  147. vertical-align: middle;
  148. }
  149. #left-panel {
  150. order: 1;
  151. }
  152. /* left panel z-index fix */
  153. .form {
  154. position: relative;
  155. z-index: 0;
  156. }
  157. #header {
  158. z-index: 1;
  159. }
  160. /* RIGHT PANEL */
  161. #right-panel {
  162. order: 3;
  163. }
  164. .arrow {
  165. border: solid var(--bg1);
  166. border-width: 0 3px 3px 0;
  167. display: inline-block;
  168. padding: 0.3em;
  169. }
  170. .right {
  171. transform: rotate(135deg);
  172. -webkit-transform: rotate(135deg);
  173. }
  174. .rss {
  175. display: flex;
  176. flex-direction: column;
  177. width: var(--nav-size);
  178. height: calc(100vh - (3 * var(--unit-size)));
  179. position: fixed;
  180. background-color: var(--bg1);
  181. margin-top: calc(3 * var(--main-size));
  182. border: solid 1px var(--accent-low);
  183. }
  184. input.larger {
  185. width: var(--main-size);
  186. height: calc( 2 * var(--main-size));
  187. }
  188. /* untoggled */
  189. .rss {
  190. right: -100%;
  191. top: 0;
  192. transition: 0.3s ease;
  193. }
  194. .arrow label {
  195. display: block;
  196. cursor: pointer
  197. }
  198. #toggle-right {
  199. position: absolute;
  200. z-index: 2;
  201. cursor: pointer;
  202. opacity: 0;
  203. }
  204. #toggle-right:not(:checked)+.arrow {
  205. transform: rotate(135deg);
  206. transition: 0.3s ease;
  207. }
  208. /* toggled */
  209. #toggle-right:checked~.rss {
  210. display: flex;
  211. right: 0;
  212. top: 0;
  213. transition: 0.3s ease;
  214. }
  215. #toggle-right:checked+.arrow {
  216. transform: rotate(-45deg);
  217. transition: 0.3s ease;
  218. }
  219. /* styling radio buttons and checkboxes */
  220. .content input[type="checkbox"] + label::before {
  221. content: '';
  222. position: relative;
  223. display: inline-block;
  224. margin-right: 5px;
  225. width: var(--medium-size);
  226. height: var(--medium-size);
  227. background: var(--fg);
  228. border-radius: 10%
  229. }
  230. .content input[type="checkbox"]:checked + label::before {
  231. background: var(--accent);
  232. border-radius: 10%;
  233. background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyAgIHhtbG5zOmRjPSJodHRw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AgIGlua3NjYXBlOmRvY3VtZW50LXJvdGF0aW9uPSIwIiAgICAgcGFnZWNvbG9yPSIjZmZmZmZmIiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiICAgICBib3JkZXJvcGFjaXR5PSIxIiAgICAgb2JqZWN0dG9sZXJhbmNlPSIxMCIgICAgIGdyaWR0b2xlcmFuY2U9IjEwIiAgICAgZ3VpZGV0b2xlcmFuY2U9IjEwIiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAiICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIiAgICAgaW5rc2NhcGU6d2luZG93LXdpZHRoPSIyNTYwIiAgICAgaW5rc2NhcGU6d2luZG93LWhlaWdodD0iMTM4MiIgICAgIGlkPSJuYW1lZHZpZXc4IiAgICAgc2hvd2dyaWQ9ImZhbHNlIiAgICAgaW5rc2NhcGU6em9vbT0iMjkuODc1IiAgICAgaW5rc2NhcGU6Y3g9IjE2LjA2Njk0NiIgICAgIGlua3NjYXBlOmN5PSIxNiIgICAgIGlua3NjYXBlOndpbmRvdy14PSIwIiAgICAgaW5rc2NhcGU6d2luZG93LXk9IjMwIiAgICAgaW5rc2NhcGU6d2luZG93LW1heGltaXplZD0iMSIgICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9InN2ZzYiIC8+ICA8dGl0bGUgICAgIGlkPSJ0aXRsZTIiPmNoZWNrbWFyazwvdGl0bGU+ICA8cGF0aCAgICAgZD0iTTI3IDRsLTE1IDE1LTctNy01IDUgMTIgMTIgMjAtMjB6IiAgICAgaWQ9InBhdGg0IiAgICAgc3R5bGU9ImZpbGw6IzJlMzQ0MDtmaWxsLW9wYWNpdHk6MSIgLz48L3N2Zz4=); 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(--medium-size);
  256. height: var(--medium-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+PHN2ZyAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiICAgaW5rc2NhcGU6dmVyc2lvbj0iMS4wICg0MDM1YTRmYjQ5LCAyMDIwLTA1LTAxKSIgICBzb2RpcG9kaTpkb2NuYW1lPSJjaXJjbGUuc3ZnIiAgIGlkPSJzdmc0IiAgIHZlcnNpb249IjEuMSIgICBoZWlnaHQ9IjUwMCIgICB3aWR0aD0iNTAwIj4gIDxtZXRhZ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cmNsZSAgICAgc3R5bGU9ImZpbGw6IzJlMzQ0MDtmaWxsLW9wYWNpdHk6MTtzdHJva2U6IzJlMzQ0MDtzdHJva2Utb3BhY2l0eTowIiAgICAgaWQ9ImNpcmNsZTIiICAgICBzdHJva2Utd2lkdGg9IjgiICAgICBzdHJva2U9IiMwMDAiICAgICBmaWxsPSIjZmZmIiAgICAgcj0iMjEwIiAgICAgY3k9IjI1MCIgICAgIGN4PSIyNTAiIC8+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.3em 1em;
  285. color: var(--fg);
  286. border-style: solid;
  287. border-color: var(--accent);
  288. border-radius: var(--small-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. }