pockit.css 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. :root {
  2. --gray-9: #E6E6E6;
  3. --gray-8: #CCCCCC;
  4. --gray-7: #B3B3B3;
  5. --gray-6: #4D4D4D;
  6. --gray-5: #404040;
  7. --gray-4: #333333;
  8. --gray-3: #252525;
  9. --gray-2: #1f1f1f;
  10. --gray-1: #1c1c1c;
  11. --gray-0: #161616;
  12. --error: #4B2224;
  13. --success: #2B4B22;
  14. --successhover: #3A662E;
  15. --successfocus: #25401D;
  16. --successborder: green;
  17. --blue: #006DFF;
  18. --accent: #396690;
  19. }
  20. @font-face{font-family:'lato'; src: url('/fonts/Lato-Bold.ttf') format('truetype'); font-weight: bold; font-style: normal;}
  21. @font-face{font-family:'lato'; src: url('/fonts/Lato-BoldItalic.ttf') format('truetype'); font-weight:bold; font-style: italic;}
  22. @font-face{font-family:'lato'; src: url('/fonts/Lato-Regular.ttf') format('truetype'); font-weight:normal; font-style: normal;}
  23. body {
  24. background-color: var(--gray-1);
  25. color: var(--gray-8);
  26. font-family: 'lato';
  27. font-size: 18px;
  28. margin: 0;
  29. }
  30. h1 {
  31. margin: 0;
  32. }
  33. nav {
  34. background-color: var(--gray-0);
  35. }
  36. a {
  37. text-decoration: underline;
  38. }
  39. a:hover {
  40. text-decoration: none;
  41. }
  42. /* Forms */
  43. .form-control-container {
  44. margin: 1em auto;
  45. position: relative;
  46. display: flex;
  47. flex-flow: column;
  48. }
  49. .form-control-container label {
  50. color: var(--gray-9)
  51. }
  52. .form-control {
  53. padding: 0.5em;
  54. margin: 0.1em 0;
  55. width: 1fr;
  56. background-color: var(--gray-4);
  57. color: var(--gray-7);
  58. outline: none;
  59. border-radius: 5px;
  60. font-size: 16px;
  61. border: 1px solid transparent;
  62. }
  63. .form-control:hover,
  64. .form-control:focus {
  65. border-color: var(--gray-6);
  66. }
  67. .form-control:focus {
  68. color: var(--gray-9);
  69. }
  70. /* End Forms */
  71. /* Buttons */
  72. .btn {
  73. background-color: var(--gray-4);
  74. border: 1px solid var(--gray-5);
  75. padding: 0.5em;
  76. color: var(--gray-9);
  77. font-size: 1rem;
  78. border-radius: 5px;
  79. text-align: center;
  80. text-decoration: none;
  81. display: inline-block;
  82. margin: 0.1em;
  83. font-size: 14px;
  84. cursor: pointer;
  85. }
  86. .btn:hover {
  87. background-color: var(--gray-6);
  88. }
  89. .btn:active,
  90. .btn:focus,
  91. .btn.selected {
  92. background-color: var(--gray-3);
  93. }
  94. .text-center {
  95. text-align: center;
  96. }
  97. .actions-row {
  98. display: flex;
  99. flex-flow: row;
  100. width: 100%;
  101. justify-content: center;
  102. }
  103. .action {
  104. display: flex;
  105. flex-flow: column;
  106. text-align: center;
  107. position: relative;
  108. background-color: transparent;
  109. border-radius: 10px;
  110. padding: 1em;
  111. transition: 100ms;
  112. }
  113. .action:hover {
  114. background-color: rgba(255, 255, 255, 0.3);
  115. }
  116. .action > img {
  117. max-width: 128px;
  118. margin-top: 1em;
  119. }
  120. .action > a {
  121. display: block;
  122. width: 100%;
  123. height: 100%;
  124. color: #fff;
  125. }
  126. .stretched-link {
  127. position: absolute;
  128. width: 100%;
  129. height: 100%;
  130. top: 0;
  131. left: 0;
  132. z-index: 1;
  133. }
  134. /* Breadcrumbs */
  135. .breadcrumb {
  136. padding: 0 0.5em;
  137. position: relative;
  138. z-index: 2;
  139. }
  140. .breadcrumb-item {
  141. padding: 0.5em 0;
  142. }
  143. .breadcrumb ul {
  144. display: flex;
  145. flex-wrap: wrap;
  146. list-style: none;
  147. margin: 0;
  148. padding: 0;
  149. }
  150. .breadcrumb li:not(:last-child)::after {
  151. display: inline-block;
  152. margin: 0 .25rem;
  153. content: "→";
  154. color: var(--gray-7);
  155. }
  156. .breadcrumb-item a {
  157. color: var(--accent);
  158. }
  159. .breadcrumb-item.active {
  160. color: var(--gray-7);
  161. }
  162. /* End Breadcrumbs */
  163. /* Cards */
  164. .card {
  165. background-color: var(--gray-3);
  166. border: 1px solid var(--gray-4);
  167. border-radius: 15px;
  168. padding: 1em;
  169. margin: 2em auto;
  170. width: 80%;
  171. max-width: 866px;
  172. }
  173. .card.error {
  174. background-color: #4B2224;
  175. border-color: red;
  176. color: #f9fbf8;
  177. }
  178. .card.modal {
  179. position: fixed;
  180. top: 10%;
  181. left: 0;
  182. right: 0;
  183. z-index: 2;
  184. }
  185. /* End Cards */
  186. /* CRUD */
  187. .crud-item {
  188. margin: 1rem auto;
  189. padding: 1em;
  190. background-color: var(--gray-2);
  191. border-radius: 5px;
  192. display: grid;
  193. grid-template-columns: 75% 25%;
  194. }
  195. .crud-buttons {
  196. display: flex;
  197. flex-direction: column;
  198. }
  199. .crud-buttons button {
  200. margin: 0.1em;
  201. }
  202. /* End CRUD */
  203. .dark-overlay {
  204. background-color: rgba(0,0,0,0.5);
  205. position: fixed;
  206. top: 0;
  207. bottom: 0;
  208. left: 0;
  209. right: 0;
  210. z-index: 1;
  211. }
  212. /* Colors */
  213. .danger {
  214. background-color: var(--error);
  215. }
  216. .success {
  217. background-color: var(--success);
  218. border-color: var(--successborder);
  219. color: var(--gray-9);
  220. }
  221. .success:hover {
  222. background-color: var(--successhover);
  223. }
  224. .success:active,
  225. .success:focus {
  226. background-color: var(--successfocus);
  227. }
  228. /* End Colors */
  229. #controls > textarea {
  230. width: -moz-available;
  231. resize: vertical;
  232. background-color: var(--gray-4);
  233. outline: none;
  234. border: 1px solid var(--card-border);
  235. color: var(--gray-8);
  236. border-radius: 5px;
  237. font-size: 1rem;
  238. }
  239. #control-sidebar {
  240. margin: 0;
  241. padding: 1em;
  242. width: 215px;
  243. position: fixed;
  244. height: 100%;
  245. overflow: auto;
  246. border-radius: 0;
  247. background-color: var(--gray-0);
  248. border: none;
  249. top: 0px;
  250. left: 0px;
  251. display: flex;
  252. justify-content: end;
  253. flex-flow: column;
  254. z-index: 1;
  255. box-sizing: border-box;
  256. }
  257. #control-sidebar .btn {
  258. width: 100%;
  259. margin: 3px;
  260. }