styles.css 4.5 KB

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