ui.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  1. /* Website fonts. */
  2. @font-face {
  3. font-family: 'Nunito';
  4. src: url('/fonts/Nunito-Regular.ttf');
  5. }
  6. @font-face {
  7. font-family: 'Latin';
  8. src: url('/fonts/Latin-Modern-Mono-Light-Bold.otf');
  9. }
  10. /* Elements to be shown only in large screens. */
  11. .desktop{
  12. display: initial;
  13. }
  14. @media screen and (max-width : 800px){
  15. .desktop{
  16. display: none;
  17. }
  18. }
  19. /* Elements to be shown only in small screens. */
  20. .mobile{
  21. display: none;
  22. }
  23. @media screen and (max-width : 800px){
  24. .mobile{
  25. display: initial !important;
  26. }
  27. }
  28. /* Styles for the body of the page. */
  29. html {
  30. height: 100%;
  31. }
  32. body{
  33. height: 100%;
  34. padding: 0;
  35. margin: 0;
  36. background-color: #000000;
  37. font-size: 90%;
  38. min-height: 100vh;
  39. flex-direction: column;
  40. display: flex;
  41. }
  42. @media screen and (max-width : 800px){
  43. body{
  44. font-size: 100%;
  45. }
  46. }
  47. /* Style for all links. */
  48. a{
  49. color: #555555;
  50. text-shadow: 0 0 0.5em #7777ff;
  51. text-decoration: none;
  52. }
  53. /* Styles for elements that look and act as links. */
  54. .fake_a{
  55. color: #555555;
  56. text-shadow: 0 0 0.5em #7777ff;
  57. text-decoration: none;
  58. cursor: pointer;
  59. }
  60. /* Bold elements. */
  61. .bold{
  62. font-weight: bold;
  63. }
  64. /* Elements that look and act as buttons or links.*/
  65. .pointer {
  66. cursor: pointer;
  67. }
  68. /* Hidden elements. */
  69. .hidden{
  70. display: none;
  71. }
  72. img.slider{
  73. width: 1em;
  74. height: 1em;
  75. vertial-align: middle;
  76. transition: all .3s ease-in-out;
  77. }
  78. div#cover{
  79. display: none;
  80. background-color: #000000bb;
  81. opacity: 0;
  82. transition: opacity .3s ease-in-out;
  83. position: fixed;
  84. top: 0;
  85. left: 0;
  86. right: 0;
  87. bottom: 0;
  88. }
  89. header{
  90. background-color: #000000;
  91. width: 100%;
  92. text-align: center;
  93. }
  94. header div#logo{
  95. color: #ffffff;
  96. font-size: 4em;
  97. font-family: 'Latin';
  98. }
  99. header nav{
  100. width: 100%;
  101. }
  102. header nav a{
  103. font-size: 1.5em;
  104. margin: 0.5em;
  105. color: #ffffff;
  106. text-decoration: none;
  107. position: relative;
  108. }
  109. header nav a:hover{
  110. color: #ffffff;
  111. }
  112. header nav a:before {
  113. content: " ";
  114. position: absolute;
  115. width: 100%;
  116. height: 0.1em;
  117. bottom: -0.1em;
  118. left: 0;
  119. background-color: #ffffff;
  120. visibility: hidden;
  121. transform: scaleX(0);
  122. transition: all 0.3s ease-in-out 0s;
  123. }
  124. header nav a:hover:before {
  125. visibility: visible;
  126. transform: scaleX(1);
  127. }
  128. header nav a img{
  129. height: 1.5em;
  130. vertical-align: bottom;
  131. }
  132. @media screen and (max-width : 800px){
  133. header nav{
  134. overflow: hidden;
  135. white-space: nowrap;
  136. }
  137. header nav a{
  138. display: inline-block;
  139. width: 32%;
  140. margin: 0;
  141. padding: 0.5em 0;
  142. text-align: center;
  143. color: #ffffff;
  144. text-decoration: none;
  145. border: 0.1em solid #aaaaaa;
  146. background-color: #222222;
  147. }
  148. header nav a img{
  149. height: 1.1em;
  150. vertical-align: middle;
  151. }
  152. }
  153. /* The actual footer */
  154. footer{
  155. background-color: #000000;
  156. font-size: 80%;
  157. text-align: center;
  158. height: 3.5em;
  159. margin-left: auto;
  160. margin-right: auto;
  161. margin-top: 3em;
  162. margin-bottom: 2em;
  163. color: #dddddd;
  164. bottom: 0;
  165. left: 0;
  166. padding: 1em 2em 3em 2em;
  167. }
  168. /* A table containing all the elements in the footer */
  169. footer table#footer_table{
  170. margin-left: auto;
  171. margin-right: auto;
  172. width: 80%;
  173. table-layout: fixed;
  174. }
  175. @media screen and (max-width : 800px){
  176. footer table#footer_table{
  177. width: 95%;
  178. }
  179. }
  180. /* An horizontal line separating the page contents from the footer. */
  181. footer table#footer_table hr#footer_separator{
  182. border: 0;
  183. background-color: #444444;
  184. height: 0.1em;
  185. width: 70%;
  186. }
  187. /* Left area of the footer. */
  188. footer table#footer_table td#footer_left{
  189. width: 33%;
  190. text-align: center;
  191. }
  192. /* Social label. */
  193. footer table#footer_table td#footer_left span#footer_follow{
  194. display: block;
  195. margin: 0 0 1em 0;
  196. }
  197. /* Icons for social media */
  198. footer table#footer_table td#footer_left img.footer_social_icon{
  199. width: 2em;
  200. margin: 0.2em;
  201. vertical-align: middle;
  202. background-color: #ffffff;
  203. border: 0.1em solid #ffffff;
  204. border-radius: 0.3em;
  205. }
  206. /* Middle area of the footer */
  207. footer table#footer_table td#footer_center{
  208. width: 33%;
  209. text-align: center;
  210. }
  211. /* Right area of the footer */
  212. footer table#footer_table td#footer_right{
  213. width: 33%;
  214. text-align: center;
  215. }
  216. /* Help link. */
  217. footer table#footer_table td#footer_right span#footer_help{
  218. display: block;
  219. margin: 0 0 1em 0;
  220. }
  221. /* Language flags. */
  222. footer table#footer_table td#footer_right a.lang img{
  223. height: 1em;
  224. margin: 0.5em;
  225. border-radius: 0.2em;
  226. border: 0.15em solid #555555;
  227. cursor: pointer;
  228. box-shadow: 0 0 0.7em #dde;
  229. transition: all .3s ease-in-out;
  230. }
  231. footer table#footer_table td#footer_right a.lang img:hover{
  232. box-shadow: 0 0 1em #111;
  233. }
  234. @media screen and (max-width : 800px){
  235. footer table#footer_table td#footer_right a.lang img{
  236. height: 1.5em;
  237. margin: 0.2em;
  238. border-radius: 0.1em;
  239. border: 0.1em solid #555555;
  240. box-shadow: 0 0 0 #dde;
  241. }
  242. }
  243. main{
  244. background-color: #000000;
  245. width: 100%;
  246. max-width: 90em;
  247. margin: 2em auto;
  248. padding: 0;
  249. text-align: center;
  250. flex: 1;
  251. }
  252. @media screen and (max-width : 800px){
  253. main{
  254. width: 100%;
  255. margin: 1em auto;
  256. }
  257. }
  258. section{
  259. text-align: left;
  260. margin: 0.5em;
  261. padding: 1em;
  262. background-color: #f0f0f0;
  263. border: 0.1em solid #003300;
  264. overflow: hidden;
  265. border-top-left-radius: 0.5em;
  266. border-top-right-radius: 0.5em;
  267. border-bottom-left-radius: 1.5em;
  268. border-bottom-right-radius: 1.5em;
  269. }
  270. @media screen and (max-width : 800px){
  271. section{
  272. margin: 1em;
  273. }
  274. }
  275. section h3{
  276. position: relative;
  277. font-weight: bold;
  278. color: #ffffff;
  279. background-color: #60ae29;
  280. border-bottom: 0.1em solid #003300;
  281. font-size: 150%;
  282. padding: 0.5em 2em 0.2em 3em;
  283. margin: -0.8em -1em 1em -1em;
  284. font-variant: small-caps;
  285. }
  286. section h3:before {
  287. content: " /";
  288. opacity: 0.3;
  289. }
  290. /* .entry is a style only class to show content. Must be allways children os a .lighted element */
  291. section article{
  292. border: 0.1em solid #aaffaa00;
  293. border-radius: 0.3em;
  294. padding: 0.5em;
  295. margin: 0.5em;
  296. transition: all .4s ease-in-out;
  297. }
  298. section article h4{
  299. font-variant: small-caps;
  300. text-decoration: underline;
  301. text-decoration-color: #33553377;
  302. font-size: 130%;
  303. margin: 0.2em auto 1em auto;
  304. }
  305. section section_list:hover{
  306. background-color: #efffef;
  307. border: 0.1em solid #aaffaaff;
  308. }
  309. /* Style for the mathces in search results */
  310. span.result_counter{
  311. margin-left: 1.2em;
  312. margin-bottom: 0.5em;
  313. font-weight: bold;
  314. font-style: italic;
  315. }
  316. /* Shown when no records on database */
  317. div.unavailable{
  318. margin-left: 4em;
  319. font-style: italic;
  320. }
  321. /**********************************
  322. * Styles to be applied to some *
  323. * horizontally scrollable *
  324. * elements *
  325. **********************************/
  326. /* Horizontall scrollbar that apears when a project has lots of renders */
  327. .slider::-webkit-scrollbar{
  328. width: 0.5em;
  329. height: 0.25em;
  330. background-color: #444444;
  331. }
  332. .slider::-webkit-scrollbar-thumb{
  333. background-color: #cccccc;
  334. border-radius: 0.714em;
  335. }
  336. .slider::-webkit-scrollbar-thumb:hover{
  337. background-color: #cccccc;
  338. border: 0.143em solid #000000;
  339. }
  340. .slider::-webkit-scrollbar-thumb:active{
  341. background-color: #cccccc;
  342. border: 0.143em solid #000000;
  343. }
  344. /* Icons for sharing page in a social network */
  345. img.social_icon{
  346. width: 3em;
  347. height: 3em;
  348. }
  349. /* Elements that should have the cursor as pointer */
  350. .pointer{
  351. cursor: pointer;
  352. }
  353. /**********************************
  354. * Styles for diverse input *
  355. * elements. Type-assigned *
  356. **********************************/
  357. /* Font for all the input elements */
  358. input{
  359. font-family: 'Nunito';
  360. }
  361. /* Style for the "submit" type elements in forms */
  362. input[type=submit]{
  363. font-weight: bold;
  364. color: #cccccc;
  365. background-color: #555555;
  366. border: 0.143em solid #bbbbbb;
  367. border-radius: 0.429em;
  368. padding: 0.5em;
  369. text-shadow: 0 0 0.75em #000000;
  370. cursor: pointer;
  371. }
  372. /* Style forr buttons */
  373. input[type=button]{
  374. cursor: pointer;
  375. display: inline-block;
  376. color: #cccccc;
  377. background-color: #278c3a;
  378. border: 0.143em solid #66bf38;
  379. border-radius: 0.429em;
  380. padding: 0.5em 0.8em;
  381. text-shadow: 0 0 0.75em #000000;
  382. text-decoration: none;
  383. font-family: 'Nunito';
  384. font-weight: bold;
  385. font-variant: small-caps;
  386. letter-spacing: 0.07em;
  387. font-size: 110%;
  388. box-shadow: inset 0 0 0.2em #082400;
  389. text-transform: capitalize;
  390. }
  391. @media screen and (max-width : 800px){
  392. input[type=button]{
  393. font-size: 120%;
  394. padding: 0.9em 1.4em;
  395. }
  396. }
  397. input[type=button]::first-letter{
  398. color: #eeeeee;
  399. }
  400. input[type=button]:hover{
  401. color: #ffffff;
  402. background-color: #34b94d;
  403. box-shadow: inset 0 0 0.1em #000;
  404. border: 0.2em solid #285710;
  405. }
  406. input[type=button]:hover::first-letter{
  407. color: #ffffff;
  408. }
  409. }
  410. /* Style for textboxes */
  411. input[type=text]{
  412. font-weight: bold;
  413. color: #224422;
  414. background-color: #bbccbb;
  415. border: 0.286em solid #ddeedd;
  416. border-color: #dddddd;
  417. border-radius: 0.429em;
  418. padding: 0.25em;
  419. text-shadow: 0 0 0.5em #ffffff;
  420. }
  421. input[type=checkbox]{
  422. width: 1em;
  423. height: 1em;
  424. border-radius: 0.2em;
  425. border: 0.063em solid #005500;
  426. }
  427. /* Style for textareas */
  428. textarea{
  429. width: 80%;
  430. font-weight: bold;
  431. color: #444444;
  432. background-color: #bbbbbb;
  433. border: 0.286em solid #dddddd;
  434. border-color: #dddddd;
  435. border-radius: 0.286em;
  436. padding: 0.25em;
  437. text-shadow: 0 0 0.5em #ffffff;
  438. resize: none;
  439. }
  440. /* Style for selects */
  441. select{
  442. font-weight: bold;
  443. color: #444444;
  444. background-color: #bbbbbb;
  445. border: 0.286em solid #dddddd;
  446. border-radius: 0.286em;
  447. padding: 0.25em;
  448. text-shadow: 0 0 0.5em #ffffff;
  449. }
  450. /* Style for placeholders in input fields */
  451. ::-webkit-input-placeholder { /* WebKit browsers */
  452. color: #777777;
  453. }
  454. :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
  455. color: #777777;
  456. }
  457. ::-moz-placeholder { /* Mozilla Firefox 19+ */
  458. color: #777777;
  459. }
  460. :-ms-input-placeholder { /* Internet Explorer 10+ */
  461. color: #777777;
  462. }
  463. /* Style-only class user to indicate that a field is incorrect. Ususally this class is added to an element with js */
  464. .error{
  465. border-color: #ffaaaa;
  466. }
  467. /* Style for the textbox input when the entered text is not the expected one */
  468. input[type=text].error{
  469. border-color: #ffaaaa;
  470. }
  471. /* Style for the textared input when the entered text is not the expected one */
  472. textarea.error{
  473. border-color: #ffaaaa;
  474. }
  475. /* Style for buttons that act as links */
  476. a.a_button{
  477. display: inline-block;
  478. color: #cccccc;
  479. background-color: #278c3a;
  480. border: 0.143em solid #66bf38;
  481. border-radius: 0.429em;
  482. padding: 0.5em 0.8em;
  483. text-shadow: 0 0 0.75em #000000;
  484. text-decoration: none;
  485. font-family: 'Nunito';
  486. font-weight: bold;
  487. font-variant: small-caps;
  488. letter-spacing: 0.07em;
  489. font-size: 110%;
  490. box-shadow: inset 0 0 0.2em #082400;
  491. text-transform: capitalize;
  492. transition: all .3s ease-in-out;
  493. }
  494. @media screen and (max-width : 800px){
  495. a.a_button{
  496. font-size: 120%;
  497. padding: 0.9em 1.4em;
  498. }
  499. }
  500. a.a_button::first-letter{
  501. color: #eeeeee;
  502. }
  503. a.a_button:hover{
  504. color: #ffffff;
  505. background-color: #34b94d;
  506. box-shadow: inset 0 0 0.1em #000;
  507. border: 0.2em solid #285710;
  508. }
  509. a.a_button:hover::first-letter{
  510. color: #ffffff;
  511. }
  512. /**********************************
  513. * Styles for comment-related *
  514. * elements *
  515. **********************************/
  516. /* Contains fields to identify the user before the comment can be posted. Hidden by css, must be displayed with js */
  517. div#identification_form{
  518. display: none;
  519. }
  520. /* Contain a comment, with the details and the text */
  521. div.comment{
  522. background-color: #efffef;
  523. border: 0.1em solid #aaffaa;
  524. border-radius: 0.3em;
  525. padding: 0.5em;
  526. margin: 0.5em;
  527. }
  528. /* User who posted the coment */
  529. div.comment h4.comment_user{
  530. margin-top: 0.417em;
  531. margin-bottom: 0;
  532. }
  533. div.comment h4.comment_user span.comment_user_registered{
  534. font-weight: bold;
  535. font-size: 110%;
  536. color: #005500;
  537. }
  538. /* Style for the comment's images */
  539. img.comment_image{
  540. border: 0.077em solid black;
  541. max-height: 6em;
  542. max-width: 60%;
  543. display: block;
  544. vertical-align: top;
  545. border: 0.133em solid black;
  546. margin-left: 0.938em;
  547. margin-bottom: 0.938em;
  548. box-shadow: 0 0 1em #444444;
  549. }
  550. /* Paragraph with the comment text */
  551. p.comment_text{
  552. vertical-align: top;
  553. width: auto;
  554. display: block;
  555. margin-top: 0.938em;
  556. margin-left: 0.938em;
  557. }
  558. span.comment_date{
  559. font-size: 80%;
  560. font-style: italic;
  561. }
  562. /* Input field for the comment text */
  563. textarea#new_comment_text{
  564. width: 98%;
  565. }
  566. /* Input field for the comment user */
  567. input#new_comment_user{
  568. width: 47%;
  569. }
  570. /* Input field for the comment email */
  571. input#new_comment_email{
  572. width: 47%;
  573. }
  574. /* Styles so the input field to upload an image with the comment looks like a button */
  575. label.image_upload {
  576. font-weight: bold;
  577. color: #cccccc;
  578. background-color: #555555;
  579. border: 0.067em solid #bbbbbb;
  580. border-radius: 0.2em;
  581. padding: 0.5em;
  582. text-shadow: 0 0 0.750em #000000;
  583. font-size: 0.813em; /*Same as buttons*/
  584. font-family: 'Nunito';
  585. }
  586. label.image_upload input {
  587. width: 0 !important;
  588. opacity: 0 !important;
  589. overflow: hidden !important;
  590. }
  591. /* Previsualization for the upload image in a comment */
  592. img#new_comment_image_preview{
  593. max-height: 7.692em;
  594. max-width: 11.538em;
  595. }
  596. /**********************************
  597. * Styles for the social buttons. *
  598. **********************************/
  599. a.share img.share{
  600. display: inline-block;
  601. vertical-align: top;
  602. overflow: hidden;
  603. width: 1.6em;
  604. height: 1.6em;
  605. border: 0.1em solid #003300;
  606. border-radius: 2em;
  607. box-shadow: 0 0 0.3em #005500;
  608. margin: 0.2em;
  609. transition: all .3s ease-in-out;
  610. }
  611. a.share img.share:hover{
  612. box-shadow: 0 0 0.7em #005500;
  613. border-radius: 0.7em;
  614. }