ui.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  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: 140%;
  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: #ffffff;
  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.143em solid #285710;
  405. }
  406. input[type=button]:hover::first-letter{
  407. color: #ccffcc;
  408. }
  409. /* Style for textboxes */
  410. input[type=text]{
  411. font-weight: bold;
  412. color: #224422;
  413. background-color: #bbccbb;
  414. border: 0.286em solid #ddeedd;
  415. border-color: #dddddd;
  416. border-radius: 0.429em;
  417. padding: 0.25em;
  418. text-shadow: 0 0 0.5em #ffffff;
  419. }
  420. input[type=checkbox]{
  421. width: 1em;
  422. height: 1em;
  423. border-radius: 0.2em;
  424. border: 0.063em solid #005500;
  425. }
  426. /* Style for textareas */
  427. textarea{
  428. width: 80%;
  429. font-weight: bold;
  430. color: #444444;
  431. background-color: #bbbbbb;
  432. border: 0.286em solid #dddddd;
  433. border-color: #dddddd;
  434. border-radius: 0.286em;
  435. padding: 0.25em;
  436. text-shadow: 0 0 0.5em #ffffff;
  437. resize: none;
  438. }
  439. /* Style for selects */
  440. select{
  441. font-weight: bold;
  442. color: #444444;
  443. background-color: #bbbbbb;
  444. border: 0.286em solid #dddddd;
  445. border-radius: 0.286em;
  446. padding: 0.25em;
  447. text-shadow: 0 0 0.5em #ffffff;
  448. }
  449. /* Style for placeholders in input fields */
  450. ::-webkit-input-placeholder { /* WebKit browsers */
  451. color: #777777;
  452. }
  453. :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
  454. color: #777777;
  455. }
  456. ::-moz-placeholder { /* Mozilla Firefox 19+ */
  457. color: #777777;
  458. }
  459. :-ms-input-placeholder { /* Internet Explorer 10+ */
  460. color: #777777;
  461. }
  462. /* Style-only class user to indicate that a field is incorrect. Ususally this class is added to an element with js */
  463. .error{
  464. border-color: #ffaaaa;
  465. }
  466. /* Style for the textbox input when the entered text is not the expected one */
  467. input[type=text].error{
  468. border-color: #ffaaaa;
  469. }
  470. /* Style for the textared input when the entered text is not the expected one */
  471. textarea.error{
  472. border-color: #ffaaaa;
  473. }
  474. /* Style for buttons that act as links */
  475. a.a_button{
  476. display: inline-block;
  477. color: #cccccc;
  478. background-color: #278c3a;
  479. border: 0.143em solid #66bf38;
  480. border-radius: 0.429em;
  481. padding: 0.5em 0.8em;
  482. text-shadow: 0 0 0.75em #000000;
  483. text-decoration: none;
  484. font-family: 'Nunito';
  485. font-weight: bold;
  486. font-variant: small-caps;
  487. letter-spacing: 0.07em;
  488. font-size: 110%;
  489. box-shadow: inset 0 0 0.2em #082400;
  490. text-transform: capitalize;
  491. transition: all .3s ease-in-out;
  492. }
  493. @media screen and (max-width : 800px){
  494. a.a_button{
  495. font-size: 120%;
  496. padding: 0.9em 1.4em;
  497. }
  498. }
  499. a.a_button::first-letter{
  500. color: #ffffff;
  501. }
  502. a.a_button:hover{
  503. color: #ffffff;
  504. background-color: #34b94d;
  505. box-shadow: inset 0 0 0.1em #000;
  506. border: 0.143em solid #285710;
  507. }
  508. a.a_button:hover::first-letter{
  509. color: #ccffcc;
  510. }
  511. /**********************************
  512. * Styles for comment-related *
  513. * elements *
  514. **********************************/
  515. /* Contains fields to identify the user before the comment can be posted. Hidden by css, must be displayed with js */
  516. div#identification_form{
  517. display: none;
  518. }
  519. /* Contain a comment, with the details and the text */
  520. div.comment{
  521. background-color: #efffef;
  522. border: 0.1em solid #aaffaa;
  523. border-radius: 0.3em;
  524. padding: 0.5em;
  525. margin: 0.5em;
  526. }
  527. /* User who posted the coment */
  528. div.comment h4.comment_user{
  529. margin-top: 0.417em;
  530. margin-bottom: 0;
  531. }
  532. div.comment h4.comment_user span.comment_user_registered{
  533. font-weight: bold;
  534. font-size: 110%;
  535. color: #005500;
  536. }
  537. /* Style for the comment's images */
  538. img.comment_image{
  539. border: 0.077em solid black;
  540. max-height: 6em;
  541. max-width: 60%;
  542. display: block;
  543. vertical-align: top;
  544. border: 0.133em solid black;
  545. margin-left: 0.938em;
  546. margin-bottom: 0.938em;
  547. box-shadow: 0 0 1em #444444;
  548. }
  549. /* Paragraph with the comment text */
  550. p.comment_text{
  551. vertical-align: top;
  552. width: auto;
  553. display: block;
  554. margin-top: 0.938em;
  555. margin-left: 0.938em;
  556. }
  557. span.comment_date{
  558. font-size: 80%;
  559. font-style: italic;
  560. }
  561. /* Input field for the comment text */
  562. textarea#new_comment_text{
  563. width: 98%;
  564. }
  565. /* Input field for the comment user */
  566. input#new_comment_user{
  567. width: 47%;
  568. }
  569. /* Input field for the comment email */
  570. input#new_comment_email{
  571. width: 47%;
  572. }
  573. /* Styles so the input field to upload an image with the comment looks like a button */
  574. label.image_upload {
  575. font-weight: bold;
  576. color: #cccccc;
  577. background-color: #555555;
  578. border: 0.067em solid #bbbbbb;
  579. border-radius: 0.2em;
  580. padding: 0.5em;
  581. text-shadow: 0 0 0.750em #000000;
  582. font-size: 0.813em; /*Same as buttons*/
  583. font-family: 'Nunito';
  584. }
  585. label.image_upload input {
  586. width: 0 !important;
  587. opacity: 0 !important;
  588. overflow: hidden !important;
  589. }
  590. /* Previsualization for the upload image in a comment */
  591. img#new_comment_image_preview{
  592. max-height: 7.692em;
  593. max-width: 11.538em;
  594. }
  595. /**********************************
  596. * Styles for the social buttons. *
  597. **********************************/
  598. a.share img.share{
  599. display: inline-block;
  600. vertical-align: top;
  601. overflow: hidden;
  602. width: 1.6em;
  603. height: 1.6em;
  604. border: 0.1em solid #003300;
  605. border-radius: 2em;
  606. box-shadow: 0 0 0.3em #005500;
  607. margin: 0.2em;
  608. transition: all .3s ease-in-out;
  609. }
  610. a.share img.share:hover{
  611. box-shadow: 0 0 0.7em #005500;
  612. border-radius: 0.7em;
  613. }