ui.css 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. /* Glogal font. */
  2. @font-face{
  3. font-family: font;
  4. src: url('/font/FreeSans.ttf')
  5. }
  6. /* Hiddden eleemnts. */
  7. .hidden{
  8. display: none;
  9. }
  10. /* Mobile or desktop specifics. */
  11. .mobile{
  12. display: none;
  13. }
  14. .desktop{
  15. display: initial;
  16. }
  17. @media screen and (max-width: 600px){
  18. .desktop{
  19. display: none;
  20. }
  21. .mobile{
  22. display: initial;
  23. }
  24. }
  25. /* Common elements across the page. */
  26. a, .fake_a{
  27. color: #4c9ed9;
  28. text-decoration: none;
  29. transition: all .2s ease-in-out;
  30. }
  31. a:hover, .fake_a:hover{
  32. color: #347;
  33. text-shadow: 0 0 0.4em #265885;
  34. text-decoration: underline;
  35. }
  36. input[type="text"], input[type="number"], input[type="date"]{
  37. border-radius: 0.3em;
  38. height: 1.5em;
  39. border: 0.2em solid #0078ff;
  40. color: #002255;
  41. background-color: #ccddff;
  42. margin: 0.1em;
  43. }
  44. input[type="button"], input[type="submit"], select{
  45. border-radius: 0.3em;
  46. height: 2em;
  47. border: 0.2em solid #0078ff;
  48. font-weight: bold;
  49. color: #ffffff;
  50. background-color: #124567;
  51. cursor: pointer;
  52. margin: 0.1em;
  53. letter-spacing: 0.1em;
  54. }
  55. textarea{
  56. border-radius: 0.3em;
  57. min-height: 2em;
  58. max-height: 15em;
  59. border: 0.2em solid #0078ff;
  60. color: #002255;
  61. background-color: #ccddff;
  62. resize: vertical;
  63. margin: 0.1em;
  64. }
  65. li{
  66. list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAG0lEQVQImWNgIBqU//+PWwKGcUoQVECanVgAAJSsH/KywgEfAAAAAElFTkSuQmCC');
  67. }
  68. img.slid{
  69. height: 0.9em;
  70. width: 0.9em;
  71. padding: 0.1em;
  72. cursor: pointer;
  73. vertical-align: middle;
  74. transition: opacity 0.5s ease-in-out;
  75. }
  76. /* Quick styles for varios elements used widely. */
  77. .pointer{cursor: pointer;}
  78. .hidden{display: none;}
  79. .italic{font-style: italic;}
  80. .bold{font-weight: bold;}
  81. .stroke{text-decoration: line-through;}
  82. .underline{text-decoration: underline;}
  83. /* Body */
  84. body{
  85. font-family: font;
  86. margin: 0;
  87. /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#b5d3e5+0,e5f4ff+10,e5f4ff+90,b5d3e5+100 */
  88. background: linear-gradient(to right, #b5d3e5 0%,#e5f4ff 10%,#e5f4ff 90%,#b5d3e5 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  89. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b5d3e5', endColorstr='#b5d3e5',GradientType=1 ); /* IE6-9 */
  90. }
  91. /* Header */
  92. header{
  93. margin: -0.5em auto 2.5em auto;
  94. padding: 0.5em 0 0 0;
  95. width: 100%;
  96. background-color: #0078ff;
  97. border-bottom: 0.1em solid #1a4d6a;
  98. box-shadow: 0 0 3em #dde;
  99. text-align: center; /* Compensate for space between iline-block elements. */
  100. }
  101. header img{
  102. display: inline-block;
  103. width: 10%;
  104. max-width: 4.5em;
  105. max-height: 4.5em;
  106. margin: 0.5em -1.5em -0.5em 0.5em;
  107. vertical-align: middle;
  108. filter: drop-shadow(0 0 0.4em #dde);
  109. border-radius: 100%;
  110. }
  111. header a{
  112. display: inline-block;
  113. vertical-align: middle;
  114. width: calc(((100% - 6em) / 6) - 2em);
  115. margin: 0;
  116. padding: 0.5em 0.1em;
  117. font-size: 120%;
  118. font-weight: bold;
  119. color: #ffffff;
  120. text-align: center;
  121. padding: 0.4em 0;
  122. border-top: 0.2em solid #3d6780;
  123. border-bottom: 0.2em solid #3d6780;
  124. transition: all .3s ease-in-out;
  125. overflow-x: hidden;
  126. white-space: nowrap;
  127. text-transform: capitalize;
  128. background-color: #8cceff;
  129. text-shadow: -0.04em 0 #1a4d6a, 0 0.04em #1a4d6a, 0.04em 0 #1a4d6a, 0 -0.04em #1a4d6a;
  130. }
  131. header a:last-child{
  132. border-top-right-radius: 0.5em;
  133. border-bottom-right-radius: 0.5em;
  134. border-right: 0.2em solid #1a4d6a;
  135. padding-right: 0.4em
  136. }
  137. header a:hover{
  138. border-top: 0.3em solid #8cceff;
  139. border-bottom: 0.3em solid #8cceff;
  140. padding: 0.3em 0;
  141. color: #8cceff;
  142. background-color: #ffffff;
  143. text-shadow: 0 0 0em #ffffff;
  144. text-decoration: none;
  145. }
  146. header a:last-child:hover{
  147. border-right: 0.3em solid #8cceff;
  148. padding-right: 0.3em;
  149. }
  150. /* Footer. */
  151. footer{
  152. width: 100%;
  153. display: inline-block;
  154. background-color: #0078ff;
  155. border-top: 0.1em solid #1a4d6a;
  156. margin: 1em 0 0 0;
  157. padding: 0;
  158. width: 100%;
  159. box-shadow: 0 0 2em #dde;
  160. text-align: center;
  161. color: #ccddff
  162. }
  163. footer > div{
  164. display: inline-block;
  165. vertical-align: middle;
  166. margin: 0;
  167. padding: 1em;
  168. text-align: center;
  169. }
  170. footer > div#footer_social{
  171. width: 22%;
  172. }
  173. footer > div#footer_social img{
  174. display: inline-block;
  175. vertical-align:center;
  176. height: 2.2em;
  177. margin: 0.12em;
  178. transition: all .3s ease-in-out;
  179. filter: drop-shadow(0 0 0.2em #ddddee);
  180. }
  181. footer > div#footer_social img:hover{
  182. filter: drop-shadow(0 0 0.6em #111);
  183. }
  184. footer > div#footer_sponsors{
  185. width: 40%;
  186. }
  187. footer > div#footer_sponsors img{
  188. display: inline-block;
  189. vertical-align:center;
  190. max-height: 3.3em;
  191. min-height: 2em;
  192. min-width: 3em;
  193. max-width: 5em;
  194. border: 0.1em solid #111122;
  195. border-radius: 0.2em;
  196. margin: 0.1em 0.4em 0.1em 0.4em;
  197. vertical-align: middle;
  198. }
  199. footer > div#footer_util{
  200. width: 22%;
  201. }
  202. footer > div#footer_util img.lang{
  203. height: 1em;
  204. margin: 0.5em;
  205. border-radius: 0.2em;
  206. border: 0.15em solid #003;
  207. cursor: pointer;
  208. box-shadow: 0 0 0.7em #dde;
  209. transition: all .3s ease-in-out;
  210. }
  211. footer > div#footer_util img.lang:hover{
  212. box-shadow: 0 0 1em #111;
  213. }
  214. footer > div#footer_util img.app{
  215. height: 2em;
  216. border-radius: 0.4em;
  217. border: 0.15em solid #003;
  218. cursor: pointer;
  219. box-shadow: 0 0 0.5em #dde;
  220. transition: all .3s ease-in-out;
  221. }
  222. footer > div#footer_util img.app:hover{
  223. box-shadow: 0 0 0.8em #dde;
  224. }
  225. /* Basic page structures. */
  226. main{
  227. margin: auto;
  228. width: 90%;
  229. max-width: 80em;
  230. min-width: 60em;
  231. }
  232. section{
  233. border-left: 0.1em solid #000011;
  234. border-right: 0.1em solid #000011;
  235. border-bottom: 0.1em solid #000011;
  236. border-radius: 1em;
  237. padding: 0 0 0.5em 0;
  238. background-color: #98c8ff;
  239. filter: drop-shadow(0 0 0.4em #000011);
  240. margin: 1em;
  241. }
  242. section h3{
  243. font-size: 140%;
  244. font-style: bold;
  245. color: #ffffff;
  246. background-color: #0078ff;
  247. padding: 0.5em 2em 0.1em 1.5em;
  248. border-top-left-radius: 0.7em;
  249. border-top-right-radius: 0.7em;
  250. border-top: 1px solid #000011;
  251. border-bottom: 1px solid #000011;
  252. margin: 0;
  253. }
  254. article{
  255. background-color: #ffffff;
  256. padding: 15px;
  257. margin: 1.5em;
  258. border: 0.1em solid #6D6990;
  259. border-radius: 0.3em;
  260. box-shadow: inset 0 0 0.2em #dde;
  261. transition: all .3s ease-in-out;
  262. }
  263. article h4{
  264. color: #275573;
  265. font-weight: bold;
  266. font-size: 120%;
  267. padding: 0.2em 1em;
  268. margin: -15px -15px 1em -15px;
  269. border-bottom: 0.1em solid #27557333;
  270. background: linear-gradient(to top, #27557333 10%, #ffffff 30%, #ffffff 70%, #27557333 90%);
  271. }
  272. article h4 a{
  273. color: #275573;
  274. }
  275. /* Posted omments */
  276. div.comment{
  277. margin: 0.5em 1em 0.5em 1em;
  278. }
  279. div.comment span.comment_user{
  280. font-weight: bold;
  281. }
  282. div.comment span.comment_date{
  283. font-style: italic;
  284. font-size: 80%;
  285. }
  286. div.comment span.comment_date::before {
  287. content: " - ";
  288. font-size: 80%;
  289. }
  290. div.comment p.comment_text{
  291. margin: 0.5em 1em 0.5em 0.5em;
  292. }
  293. /* Comment form */
  294. div#comment_new{
  295. padding: 0.5em 1.5em 0.5em 1.5em;
  296. }
  297. div#comment_new textarea{
  298. width: 95%;
  299. }
  300. div#comment_new input[type='text']{
  301. width: 70%;
  302. }
  303. div#comment_new input[type='submit']{
  304. width: 25%;
  305. }