You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

styles.css 8.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  1. :root {
  2. --border-prop: 0px solid #F2F;
  3. --header-height: 10%;
  4. --prime-color: rgb(71, 17, 221);
  5. --container-bg: rgba(30, 30, 50, 0.644);
  6. --text-color: rgba(255,255,255, 1);
  7. --row-color: rgba(0, 0, 100, 0.3);
  8. --button-prim: rgba(255,255,255,0.1);
  9. --button-sec: rgba(255, 255, 255, 0.4);
  10. --popup-border: 2px solid rgb(11, 11, 128);
  11. --popup-stripe: 3px solid rgba(0,0,50,0.5);
  12. --title-size: 60px;
  13. --text-size: 30px;
  14. --smal-text: 20px;
  15. }
  16. div{
  17. border: 0px #F2F;
  18. border-style: dashed;
  19. }
  20. html, body {
  21. width: 100%;
  22. height: 100%;
  23. background: var(--prime-color);
  24. margin: 0;
  25. }
  26. header{
  27. height: var(--header-height);
  28. padding-top: 30px;
  29. display: flex;
  30. justify-content: center;
  31. }
  32. /*text*/
  33. h1, h2, h3, .title, label{
  34. font-size: var(--title-size);
  35. padding: 0px;
  36. margin: 0px;
  37. font-family: Arial;
  38. color: var(--text-color);
  39. }
  40. h2, label{
  41. font-size: var(--text-size);
  42. }
  43. h3{
  44. font-size: var(--smal-text);
  45. }
  46. input {
  47. width: 100%;
  48. font-family: Arial;
  49. font-size: 2em;
  50. color: rgb(255, 255, 255);
  51. padding: 0;
  52. padding-bottom: 5px;
  53. background: none;
  54. border: none;
  55. border-bottom: 1px solid #ffffff;
  56. margin-bottom: 15px;
  57. margin-top: 15px
  58. }
  59. input:focus {
  60. outline: 0;
  61. }
  62. .main {
  63. width: 100%;
  64. height: 100%;
  65. display: flex;
  66. justify-content: center;
  67. align-items: center;
  68. }
  69. .container{
  70. width: 400px;
  71. border: var(--border-prop);
  72. background-color: var(--container-bg);
  73. padding: 20px;
  74. display: flex;
  75. flex-direction: column;
  76. }
  77. .user-container{
  78. width: 50%;
  79. min-height: 35em;
  80. }
  81. .header {
  82. border: var(--border-prop);
  83. font-size: 25px;
  84. text-align: center;
  85. margin-bottom: 25px;
  86. }
  87. .datasec {
  88. border: var(--border-prop);
  89. font-family: Arial;
  90. font-size: 30px;
  91. color: white;
  92. }
  93. /* buttons */
  94. .buttons-container {
  95. border: var(--border-prop);
  96. display: flex;
  97. justify-content: center;
  98. width: 100%;
  99. }
  100. .button {
  101. display: inline-block;
  102. border-radius: 0;
  103. background-color: #303030;
  104. border: none;
  105. /*text*/
  106. color: #FFFFFF;
  107. text-align: center;
  108. font-size: var(--text-size);
  109. padding: 10px;
  110. width: 100%;
  111. cursor: pointer;
  112. }
  113. .button span{
  114. cursor: pointer;
  115. display: inline-block;
  116. position: relative;
  117. transition: 1s;
  118. }
  119. .button span::after {
  120. content: '\00bb';
  121. position: absolute;
  122. opacity: 0;
  123. top: 0;
  124. right: -20px;
  125. transition: .5s;
  126. }
  127. .button:hover span {
  128. padding-right: 25px;
  129. }
  130. .button:hover span::after{
  131. opacity: 1;
  132. right: 0;
  133. }
  134. .susButton , .remButton, .nextButton, .manageButton, #addBtn{
  135. margin-left: 5px;
  136. }
  137. .icon{
  138. pointer-events: none;
  139. }
  140. /* end of buttons*/
  141. #loginText {
  142. transition: 0.35s;
  143. }
  144. .fadeout {
  145. opacity: 0;
  146. }
  147. #loginform {
  148. border: var(--border-prop);
  149. margin-bottom: 10px;
  150. }
  151. /*
  152. border: 1px #F2F;
  153. border-style: dashed;
  154. */
  155. /* User/Mod Table */
  156. .table{
  157. min-height: 32em;
  158. }
  159. .row{
  160. display: flex;
  161. flex-direction: row;
  162. align-items: center;
  163. justify-content: space-between;
  164. background-color: var(--row-color);
  165. margin-top: 10px;
  166. margin-bottom: 10px;
  167. padding-left: 10px;
  168. padding-right: 10px;
  169. }
  170. .col-left , .col-right{
  171. display: flex;
  172. padding: 0;
  173. margin: 0;
  174. }
  175. /* End of Table */
  176. /* Page Selector */
  177. .rightButtons{
  178. display: flex;
  179. margin-left: 10px;
  180. }
  181. .ButtonRow{
  182. display: flex;
  183. flex-direction: row;
  184. justify-content: space-between;
  185. padding-right: 10px;
  186. }
  187. /* End of Page Selector*/
  188. /*-----POPUP-----*/
  189. .popup{
  190. position: fixed;
  191. top: 50%;
  192. left: 50%;
  193. transform: translate(-50%, -50%) scale(0);
  194. transition: 50ms ease-in-out;
  195. border: var(--popup-border);
  196. z-index: 10; /*lay ontop of everything*/
  197. background-color: var(--prime-color);
  198. width: 500px;
  199. max-width: 80%;
  200. min-height: 18em;
  201. display: flex;
  202. flex-direction: column;
  203. justify-content: space-evenly;
  204. }
  205. .popup.active{
  206. transform: translate(-50%, -50%) scale(1);
  207. }
  208. .popup-header{
  209. padding: 10px;
  210. display: flex;
  211. justify-content: space-between;
  212. align-items: center;
  213. border-bottom: var(--popup-stripe);
  214. }
  215. .popup-header .title{
  216. font-size: var(--text-size);
  217. font-weight: bold;
  218. }
  219. .popup-header .close-btn{
  220. cursor: pointer;
  221. border: none;
  222. outline: none;
  223. background: none;
  224. font-size: var(--title-size);
  225. font-weight: bold;
  226. color: white;
  227. }
  228. .popup-body{
  229. display: flex;
  230. justify-content: center;
  231. padding: 10px;
  232. }
  233. #overlay{
  234. position: fixed;
  235. opacity: 0;
  236. transition: 50ms ease-in-out;
  237. top: 0;
  238. left: 0;
  239. right: 0;
  240. bottom: 0;
  241. background-color: rgba(0,0,0,.75);
  242. pointer-events: none;
  243. }
  244. #overlay.active{
  245. opacity: 1;
  246. pointer-events: all;
  247. }
  248. .popup-body{
  249. display: fixed;
  250. justify-items: center;
  251. }
  252. #formNewUser{
  253. width: 50%;
  254. }
  255. input {
  256. width: 100%;
  257. font-family: Arial;
  258. font-size: var(--text-size);
  259. color: white;
  260. padding: 0;
  261. padding-bottom: 5px;
  262. background: none;
  263. border: none;
  264. border-bottom: 1px solid #ffffff;
  265. margin-bottom: 15px;
  266. margin-top: 15px
  267. }
  268. input:focus {
  269. outline: 0;
  270. }
  271. /*-----POPUP-END-----*/
  272. /* New Post Section*/
  273. [contentEditable=true]:empty:not(:focus):before{
  274. content:attr(data-text);
  275. color: rgba(0,0,0,0.5);
  276. }
  277. .preview-title{
  278. color: #000;
  279. }
  280. .editor{
  281. display: flex;
  282. flex-flow: row;
  283. justify-content: center;
  284. }
  285. .editor-menubar{
  286. display: flex;
  287. flex-direction: column;
  288. align-items: center;
  289. justify-content: center;
  290. }
  291. button, .color-select{
  292. color: #ffffff;
  293. font-size: var(--text-size);
  294. padding-left: 10px;
  295. padding-right: 10px;
  296. background-color: var(--button-prim);
  297. cursor: pointer;
  298. transition: all 250ms;
  299. border: none;
  300. min-width: 50px;
  301. min-height: 50px;
  302. }
  303. button:hover{
  304. background-color: var(--button-sec);
  305. }
  306. button:focus{
  307. outline: none;
  308. }
  309. .regSection{
  310. font-size: var(--text-size);
  311. }
  312. .canvas{
  313. background-color: rgba(255,255,255,1);
  314. width: 46.3rem;
  315. height: 30rem;
  316. padding: 2.5rem;
  317. font-size: var(--text-size);
  318. color: #000;
  319. font-family: arial;
  320. line-height: 1.5em;
  321. }
  322. .canvas:focus{
  323. outline: none;
  324. }
  325. #title-canvas, #editor-canvas{
  326. height: 5rem;
  327. font-size: var(--title-size);
  328. align-self: center;
  329. text-align: center;
  330. text-justify: center;
  331. padding: 10px;
  332. border-bottom: .5rem solid #000 ;
  333. }
  334. #editor-canvas{
  335. text-align: left;
  336. text-justify: left;
  337. height: 30rem;
  338. font-size: var(--smal-text);
  339. }
  340. #box{
  341. display: flex;
  342. flex-direction: column;
  343. }
  344. #cancelBtn{
  345. padding: 0;
  346. font-size: var(--title-size);
  347. line-height: 1.8rem;
  348. }
  349. .postContainer{
  350. width: 60em;
  351. }
  352. .lower{
  353. display: flex;
  354. flex-flow: row;
  355. justify-content: center;
  356. align-items: center;
  357. }
  358. .topper{
  359. display: flex;
  360. flex-flow: row;
  361. justify-content: flex-end;
  362. align-items: flex-end;
  363. }
  364. .calendar{
  365. color: #ffffff;
  366. font-size: var(--text-size);
  367. padding: 1rem;
  368. transition: all 250ms;
  369. display: flex;
  370. flex-flow: column;
  371. align-items: center;
  372. justify-content: center;
  373. margin-left: .5rem;
  374. margin-right: .5rem;
  375. }
  376. .calendar-element{
  377. border: none;
  378. }
  379. .calendar-element:focus{
  380. outline: none;
  381. }
  382. #title-text{
  383. width: 100%;
  384. display: flex;
  385. flex-flow: column;
  386. }
  387. #submit-post{
  388. margin-left: .5rem;
  389. }
  390. .color-select{
  391. background-color: var(--button-prim);
  392. padding-left: 0px;
  393. padding-right: 0px;
  394. display: flex;
  395. justify-content: center;
  396. margin: 0px;
  397. }
  398. .color-select:hover{
  399. background-color: var(--button-sec);
  400. }
  401. .editor-button{
  402. min-width: 50px;
  403. max-width: 50px;
  404. min-height: 50px;
  405. max-height: 50px;
  406. }
  407. /* End of New Post*/
  408. /* Preview */
  409. .TitleRow{
  410. max-width: 100%;
  411. display: flex;
  412. flex-direction: row;
  413. justify-content: space-evenly;
  414. background-color: var(--container-bg);
  415. padding-right: 10px;
  416. padding-bottom: 10px;
  417. align-items: center;
  418. margin-bottom: 5px;
  419. }
  420. .titleDiv{
  421. min-width: 25%;
  422. }
  423. #topper{
  424. height: 10%;
  425. text-align: center;
  426. top: 0px;
  427. }
  428. #content{
  429. width: 100%;
  430. height: 85%;
  431. display: flex;
  432. justify-content: center;
  433. flex-wrap: wrap;
  434. }
  435. @keyframes fadein {
  436. 0% {
  437. opacity: 0;
  438. }
  439. }
  440. .post{
  441. animation: fadein 2s ease;
  442. min-width: 30%;
  443. max-width: 45%;
  444. min-height: 28%;
  445. max-height: 45%;
  446. padding: 2vh;
  447. margin: 5px;
  448. border-width: 0px;
  449. border-color: var(--prime);
  450. color: black;
  451. }
  452. .hidden{
  453. color: red;
  454. }
  455. /* End of Preview */