styles.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. html, body {
  2. margin: 0;
  3. width: 100%;
  4. height: 100%;
  5. background-color: black;
  6. display: flex;
  7. flex-direction: column;
  8. color: white;
  9. -webkit-print-color-adjust: exact;
  10. }
  11. /* NAV */
  12. nav {
  13. background-color: #2a579a;
  14. width: 100%;
  15. }
  16. nav > ul {
  17. width:100%;
  18. display: flex;
  19. flex-direction: row;
  20. list-style-type: none;
  21. margin: 0;
  22. padding: 0;
  23. overflow: hidden;
  24. background-color: #2a579a;
  25. }
  26. nav input {
  27. display: block;
  28. width: 10%;
  29. height: 34px;
  30. position: absolute;
  31. cursor: pointer;
  32. opacity: 0; /* hides input */
  33. }
  34. nav .submenu img {
  35. width: 30px;
  36. height: 30px;
  37. margin-left: 40%;
  38. }
  39. img:hover ~ .tooltip {
  40. position: absolute;
  41. z-index: 1;
  42. top: 0;
  43. overflow: visible;
  44. }
  45. nav li {
  46. float: left;
  47. margin: auto auto;
  48. display: flex;
  49. flex: 1;
  50. justify-content: center;
  51. align-items: center;
  52. }
  53. nav li a {
  54. margin: auto;
  55. display: block;
  56. color: white;
  57. text-align: center;
  58. padding: 1.1em 1.1em;
  59. text-decoration: none;
  60. }
  61. .logo {
  62. width: 130px;
  63. padding: 0 0;
  64. }
  65. .bookmark-links a {
  66. margin-top: 5px;
  67. margin-bottom: 5px;
  68. display: block;
  69. }
  70. .logo > img { width: 130px; }
  71. #label-menu {
  72. position: absolute;
  73. z-index: -1;
  74. width:8%;
  75. }
  76. #noscript {
  77. position: fixed;
  78. top: 0px;
  79. left: 0px;
  80. z-index: 3000;
  81. height: 100%;
  82. width: 100%;
  83. background-color: black;
  84. }
  85. main {
  86. display: flex;
  87. flex-direction: row;
  88. }
  89. #viewport {
  90. height: 100%;
  91. overflow-y: hidden;
  92. }
  93. #editors, #bookmarks, #pdf, #options { flex: 1; }
  94. #bookmarks, #pdf, #options {
  95. max-width: 20%;
  96. display: none;
  97. }
  98. nav input:checked > .submenu ul,
  99. .submenu input:checked ~ ul {
  100. visibility: visible;
  101. opacity: 1;
  102. display: flex;
  103. flex-direction: column;
  104. top: 50px;
  105. margin: 0;
  106. }
  107. .active {
  108. display: none;
  109. margin-top: 10px;
  110. }
  111. .submenu input ~ div {
  112. color:black;
  113. font-size: x-large;
  114. }
  115. .submenu input:checked ~ div {
  116. color:#0699f7;
  117. }
  118. .checkbox_change_editor {
  119. opacity: 0;
  120. width: 40px;
  121. position: absolute;
  122. margin: 2px 0 3px 0;
  123. height: 32px;
  124. }
  125. .checkbox_change_editor:checked > .checkbox-text,
  126. .checkbox_change_editor:checked ~ .checkbox-text {
  127. color: white;
  128. background-color: #c8cbcf;
  129. border: 0;
  130. border-radius: 3px;
  131. }
  132. .checkbox-text {
  133. display: flex;
  134. align-items: center;
  135. justify-content: center;
  136. height: 34px;
  137. width: 50px;
  138. }
  139. .checkbox-text img {
  140. width: 40px;
  141. height: 30px;
  142. }
  143. .overflow-content {
  144. color: white;
  145. }
  146. .change-editor {
  147. right: 10%;
  148. z-index: 2;
  149. margin-bottom: 5px;
  150. margin-left: 80px;
  151. }
  152. .submenu {
  153. margin: auto auto;
  154. }
  155. #options {
  156. min-width: 100px;
  157. max-width: 300px;
  158. height: 100%;
  159. max-height: 100%;
  160. overflow: auto;
  161. margin-left: 10px;
  162. color: white;
  163. }
  164. #options > * {
  165. margin: 10px;
  166. }
  167. #options li:hover, #options input:hover {
  168. background-color: #dee0e2;
  169. }
  170. .checkbox_change_editor {
  171. opacity: 0;
  172. width: 40px;
  173. position: absolute;
  174. margin: 2px 0 3px 0;
  175. height: 32px;
  176. }
  177. .checkbox_change_editor:checked > .checkbox-text,
  178. .checkbox_change_editor:checked ~ .checkbox-text {
  179. color: white;
  180. background-color: #c8cbcf;
  181. border: 0;
  182. border-radius: 3px;
  183. }
  184. .smaller-title {
  185. width:10%
  186. }
  187. .padding {
  188. padding: 10px;
  189. }
  190. #title {
  191. width: 50% !important;
  192. white-space: nowrap;
  193. overflow: hidden;
  194. text-overflow: ellipsis;
  195. text-align: center;
  196. }
  197. #template-popup, #autoload-popup, #loading-file-popup { display: none; }
  198. #bookmarks {
  199. width: 20%;
  200. border-right: 1px solid #ccc;
  201. height: 100%;
  202. overflow: auto;
  203. }
  204. #visual-editor, #code-editor {
  205. height: 100%;
  206. border-right: 1px solid white;
  207. }
  208. /* DESKTOP WORKFLOW */
  209. @media only screen and (min-width: 900px) {
  210. #editors {
  211. width: 100%;
  212. }
  213. }
  214. /* MOBILE WORKFLOW */
  215. @media only screen and (max-width: 900px) {
  216. .options-width{
  217. max-width:100%;
  218. }
  219. .hide-if-mobile{
  220. display:none !important;
  221. }
  222. }
  223. /* Bookmarks styles */
  224. .header1, .header2, .header3{ color:white; }
  225. .header1:hover, .header2:hover, .header3:hover{ color:#2a579a; }
  226. .header1{margin-left:8px;}
  227. .header2{margin-left:15px;}
  228. .header3{margin-left:23px;}
  229. #bookmarks {
  230. counter-reset: section;
  231. }
  232. .header1 {
  233. counter-reset: subsection;
  234. }
  235. .header2 {
  236. counter-reset: subsubsection;
  237. }
  238. .header1::before {
  239. counter-increment: section;
  240. content: counter(section) ". ";
  241. }
  242. .header2::before {
  243. counter-increment: subsection;
  244. content: counter(section) "." counter(subsection) " ";
  245. }
  246. .header3::before {
  247. counter-increment: subsubsection;
  248. content: counter(section) "." counter(subsection) "." counter(subsubsection) " ";
  249. }
  250. /* Overriding creta styles */
  251. table, td, th, tr {
  252. border: 1px solid white !important;
  253. }
  254. .popup {
  255. background-color: black !important;
  256. }
  257. .image > img {
  258. background-color: white;
  259. }
  260. .edit-controls > div {
  261. color: white;
  262. }
  263. .center {
  264. text-align: center;
  265. }