ui.css 12 KB

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