ui.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  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. }
  238. /* .entry is a style only class to show content. Must be allways children os a .lighted element */
  239. section article{
  240. border: 0.1em solid #aaffaa00;
  241. border-radius: 0.3em;
  242. padding: 0.5em;
  243. margin: 0.5em;
  244. transition: all .4s ease-in-out;
  245. }
  246. section section_list:hover{
  247. background-color: #efffef;
  248. border: 0.1em solid #aaffaaff;
  249. }
  250. /* Style for the mathces in search results */
  251. span.result_counter{
  252. margin-left: 1.2em;
  253. margin-bottom: 0.5em;
  254. font-weight: bold;
  255. font-style: italic;
  256. }
  257. /* Shown when no records on database */
  258. div.unavailable{
  259. margin-left: 4em;
  260. font-style: italic;
  261. }
  262. /**********************************
  263. * Styles to be applied to some *
  264. * horizontally scrollable *
  265. * elements *
  266. **********************************/
  267. /* Horizontall scrollbar that apears when a project has lots of renders */
  268. .slider::-webkit-scrollbar{
  269. width: 0.5em;
  270. height: 0.25em;
  271. background-color: #444444;
  272. }
  273. .slider::-webkit-scrollbar-thumb{
  274. background-color: #cccccc;
  275. border-radius: 0.714em;
  276. }
  277. .slider::-webkit-scrollbar-thumb:hover{
  278. background-color: #cccccc;
  279. border: 0.143em solid #000000;
  280. }
  281. .slider::-webkit-scrollbar-thumb:active{
  282. background-color: #cccccc;
  283. border: 0.143em solid #000000;
  284. }
  285. /* Icons for sharing page in a social network */
  286. img.social_icon{
  287. width: 3em;
  288. height: 3em;
  289. }
  290. /* Elements that should have the cursor as pointer */
  291. .pointer{
  292. cursor: pointer;
  293. }
  294. /**********************************
  295. * Styles for diverse input *
  296. * elements. Type-assigned *
  297. **********************************/
  298. /* Font for all the input elements */
  299. input{
  300. font-family: 'Nunito';
  301. }
  302. /* Style for the "submit" type elements in forms */
  303. input[type=submit]{
  304. font-weight: bold;
  305. color: #cccccc;
  306. background-color: #555555;
  307. border: 0.143em solid #bbbbbb;
  308. border-radius: 0.429em;
  309. padding: 0.5em;
  310. text-shadow: 0 0 0.75em #000000;
  311. cursor: pointer;
  312. }
  313. /* Style forr buttons */
  314. input[type=button]{
  315. font-weight: bold;
  316. color: #cccccc;
  317. background-color: #555555;
  318. border: 0.143em solid #bbbbbb;
  319. border-radius: 0.429em;
  320. padding: 0.5em;
  321. text-shadow: 0 0 0.75em #000000;
  322. cursor: pointer;
  323. }
  324. /* Style for textboxes */
  325. input[type=text]{
  326. font-weight: bold;
  327. color: #224422;
  328. background-color: #bbccbb;
  329. border: 0.286em solid #ddeedd;
  330. border-color: #dddddd;
  331. border-radius: 0.429em;
  332. padding: 0.25em;
  333. text-shadow: 0 0 0.5em #ffffff;
  334. }
  335. input[type=checkbox]{
  336. width: 1em;
  337. height: 1em;
  338. border-radius: 0.2em;
  339. border: 0.063em solid #005500;
  340. }
  341. /* Style for textareas */
  342. textarea{
  343. width: 80%;
  344. font-weight: bold;
  345. color: #444444;
  346. background-color: #bbbbbb;
  347. border: 0.286em solid #dddddd;
  348. border-color: #dddddd;
  349. border-radius: 0.286em;
  350. padding: 0.25em;
  351. text-shadow: 0 0 0.5em #ffffff;
  352. resize: none;
  353. }
  354. /* Style for selects */
  355. select{
  356. font-weight: bold;
  357. color: #444444;
  358. background-color: #bbbbbb;
  359. border: 0.286em solid #dddddd;
  360. border-radius: 0.286em;
  361. padding: 0.25em;
  362. text-shadow: 0 0 0.5em #ffffff;
  363. }
  364. /* Style for placeholders in input fields */
  365. ::-webkit-input-placeholder { /* WebKit browsers */
  366. color: #777777;
  367. }
  368. :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
  369. color: #777777;
  370. }
  371. ::-moz-placeholder { /* Mozilla Firefox 19+ */
  372. color: #777777;
  373. }
  374. :-ms-input-placeholder { /* Internet Explorer 10+ */
  375. color: #777777;
  376. }
  377. /* Style-only class user to indicate that a field is incorrect. Ususally this class is added to an element with js */
  378. .error{
  379. border-color: #ffaaaa;
  380. }
  381. /* Style for the textbox input when the entered text is not the expected one */
  382. input[type=text].error{
  383. border-color: #ffaaaa;
  384. }
  385. /* Style for the textared input when the entered text is not the expected one */
  386. textarea.error{
  387. border-color: #ffaaaa;
  388. }
  389. /* Style for buttons that act as links */
  390. a.a_button{
  391. display: inline-block;
  392. color: #cccccc;
  393. background-color: #555555;
  394. border: 0.143em solid #bbbbbb;
  395. border-radius: 0.429em;
  396. padding: 0.5em;
  397. text-shadow: 0 0 0.75em #000000;
  398. text-decoration: none;
  399. font: -webkit-small-control;
  400. font-family: 'Nunito';
  401. font-weight: bold;
  402. }
  403. /**********************************
  404. * Styles for comment-related *
  405. * elements *
  406. **********************************/
  407. /* Contains fields to identify the user before the comment can be posted. Hidden by css, must be displayed with js */
  408. div#identification_form{
  409. display: none;
  410. }
  411. /* Contain a comment, with the details and the text */
  412. div.comment{
  413. background-color: #efffef;
  414. border: 0.1em solid #aaffaa;
  415. border-radius: 0.3em;
  416. padding: 0.5em;
  417. margin: 0.5em;
  418. }
  419. /* User who posted the coment */
  420. div.comment h4.comment_user{
  421. margin-top: 0.417em;
  422. margin-bottom: 0;
  423. }
  424. div.comment h4.comment_user span.comment_user_registered{
  425. font-weight: bold;
  426. font-size: 110%;
  427. color: #005500;
  428. }
  429. /* Style for the comment's images */
  430. img.comment_image{
  431. border: 0.077em solid black;
  432. max-height: 6em;
  433. max-width: 60%;
  434. display: block;
  435. vertical-align: top;
  436. border: 0.133em solid black;
  437. margin-left: 0.938em;
  438. margin-bottom: 0.938em;
  439. box-shadow: 0 0 1em #444444;
  440. }
  441. /* Paragraph with the comment text */
  442. p.comment_text{
  443. vertical-align: top;
  444. width: auto;
  445. display: block;
  446. margin-top: 0.938em;
  447. margin-left: 0.938em;
  448. }
  449. span.comment_date{
  450. font-size: 80%;
  451. font-style: italic;
  452. }
  453. /* Input field for the comment text */
  454. textarea#new_comment_text{
  455. width: 98%;
  456. }
  457. /* Input field for the comment user */
  458. input#new_comment_user{
  459. width: 47%;
  460. }
  461. /* Input field for the comment email */
  462. input#new_comment_email{
  463. width: 47%;
  464. }
  465. /* Styles so the input field to upload an image with the comment looks like a button */
  466. label.image_upload {
  467. font-weight: bold;
  468. color: #cccccc;
  469. background-color: #555555;
  470. border: 0.067em solid #bbbbbb;
  471. border-radius: 0.2em;
  472. padding: 0.5em;
  473. text-shadow: 0 0 0.750em #000000;
  474. font-size: 0.813em; /*Same as buttons*/
  475. font-family: 'Nunito';
  476. }
  477. label.image_upload input {
  478. width: 0 !important;
  479. opacity: 0 !important;
  480. overflow: hidden !important;
  481. }
  482. /* Previsualization for the upload image in a comment */
  483. img#new_comment_image_preview{
  484. max-height: 7.692em;
  485. max-width: 11.538em;
  486. }
  487. /**********************************
  488. * Styles for the social buttons. *
  489. **********************************/
  490. a.share img.share{
  491. display: inline-block;
  492. vertical-align: top;
  493. overflow: hidden;
  494. width: 1.6em;
  495. height: 1.6em;
  496. border: 0.1em solid #003300;
  497. border-radius: 2em;
  498. box-shadow: 0 0 0.3em #005500;
  499. margin: 0.2em;
  500. transition: all .3s ease-in-out;
  501. }
  502. a.share img.share:hover{
  503. box-shadow: 0 0 0.7em #005500;
  504. border-radius: 0.7em;
  505. }