app.scss 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. @import './base/reset';
  2. @import './base/variables';
  3. @import './base/colors';
  4. @import './base/grid-flex';
  5. @import './base/layout';
  6. @import './base/fonts';
  7. @import './base/transitions';
  8. body{
  9. color: #1a1a1a;
  10. }
  11. #root{
  12. }
  13. header[role="banner"]{
  14. div.wrapper{
  15. display: grid;
  16. grid-template-columns: 1fr 1fr;
  17. }
  18. h1.site-title{
  19. grid-column: 1;
  20. margin:0;
  21. font-size: 1em;
  22. }
  23. nav#header-menu{
  24. grid-column: 2;
  25. text-align: right;
  26. >ul>li{
  27. display: inline-block;
  28. margin-right: 1em;
  29. position: relative;
  30. >ul{
  31. position: absolute;
  32. top:1em; right:0;
  33. overflow: hidden;
  34. >li{
  35. transition: height 0.3s ease-in-out;
  36. height:0.2px;
  37. }
  38. }
  39. &:hover{
  40. >ul>li{
  41. height:1em;
  42. }
  43. }
  44. }
  45. li>span,li>a{
  46. font-size: 0.9em;
  47. }
  48. }
  49. }
  50. section[role="main-content"]{
  51. #home{
  52. header{
  53. text-align: center;
  54. h1{
  55. color: $bleuroi;
  56. font-size: 8em;
  57. font-weight: 300;
  58. margin:15vh 0 0;
  59. }
  60. h2{
  61. color: $or;
  62. font-size: 2em;
  63. font-weight: 300;
  64. margin:1em 0 0;
  65. text-transform: uppercase;
  66. letter-spacing: 0.2em;
  67. sup{
  68. // line-height: 5em;
  69. vertical-align:text-top;
  70. font-size: 0.7em
  71. }
  72. }
  73. }
  74. $filet_space:8em;
  75. $decallage: 0.5em;
  76. section{
  77. padding-top: $filet_space;
  78. }
  79. div.teasers{
  80. display: flex;
  81. flex-direction: row;
  82. flex-wrap: nowrap;
  83. position: relative;
  84. padding-right: 0;
  85. article{
  86. box-sizing: border-box;
  87. flex-basis: percentage(2 / ( $default_sum - 6) );
  88. padding-right: $default_gap;
  89. }
  90. // filets decoratif
  91. &:before, &:after{
  92. z-index: 0;
  93. content: "";
  94. position: absolute;
  95. opacity: 0.4;
  96. }
  97. &:before{
  98. border:1px solid $or;
  99. width:calc(100% + #{$filet_space*2 + $decallage*2});
  100. left:- $filet_space - $default_gap/2 -$decallage;
  101. height:calc(100% + #{$filet_space});
  102. top:- $filet_space / 2;
  103. }
  104. &:after{
  105. border:1px solid $rouge;
  106. width:calc(100% + #{$filet_space*2});
  107. left:- $filet_space - $default_gap/2;
  108. height:calc(100% + #{$filet_space + $decallage*2});
  109. top:- $filet_space / 2 - $decallage;
  110. }
  111. }
  112. }
  113. }
  114. footer[role="tools"]{
  115. $list-item-h: 5.3em;
  116. #history{
  117. z-index: 8;
  118. background-color: $or;
  119. padding:1.2em $side-padding;
  120. max-height: $list-item-h;
  121. @include accordeon-transition($list-item-h);
  122. >header{
  123. }
  124. .history-list{
  125. overflow-x: hidden;
  126. .wrapper{
  127. height:100%;
  128. // hidding the scrollbar
  129. overflow-y: auto;
  130. width:calc(100% + 1em);
  131. padding-right: 1em;
  132. >ul{
  133. padding:0;
  134. display: flex;
  135. flex-direction: row;
  136. flex-wrap: wrap;
  137. }
  138. }
  139. li.item{
  140. box-sizing: border-box;
  141. // we are only on 10 colls as 2 are occupied by sides
  142. flex-basis: percentage(2/($default_sum - 2));
  143. height: $list-item-h;
  144. overflow: hidden;
  145. padding-bottom: 1em;
  146. padding-right: $default_gap;
  147. article{
  148. max-height: 100%;
  149. overflow: hidden;
  150. }
  151. }
  152. article.history.item{
  153. header{
  154. h1{
  155. font-size: 0.882em;
  156. font-weight: normal;
  157. margin:0 0 0.5em 0;
  158. }
  159. }
  160. .extract{
  161. p{
  162. font-size: 0.882em;
  163. margin:0;
  164. }
  165. code{
  166. background-color: lighten(desaturate($rouge,20%), 20%);
  167. }
  168. }
  169. }
  170. }
  171. }
  172. #results{
  173. z-index: 9;
  174. background-color: $gris;
  175. padding:1.2em $side-padding;
  176. max-height: $list-item-h * 3;
  177. @include accordeon-transition($list-item-h * 3);
  178. >header{
  179. .search-keys{
  180. font-size: 0.756em;
  181. font-weight: 500;
  182. }
  183. .results-count{
  184. font-size: 0.756em;
  185. }
  186. }
  187. .results-list{
  188. overflow-x: hidden;
  189. .wrapper{
  190. height:100%;
  191. // hidding the scrollbar
  192. overflow-y: auto;
  193. width:calc(100% + 1em);
  194. padding-right: 1em;
  195. >ul{
  196. padding:0;
  197. display: flex;
  198. flex-direction: row;
  199. flex-wrap: wrap;
  200. }
  201. }
  202. li.result{
  203. box-sizing: border-box;
  204. // we are only on 10 colls as 2 are occupied by sides
  205. flex-basis: percentage(2/($default_sum - 2));
  206. height: $list-item-h;
  207. overflow: hidden;
  208. padding-bottom: 1em;
  209. padding-right: $default_gap;
  210. article{
  211. max-height: 100%;
  212. overflow: hidden;
  213. }
  214. }
  215. article.result.item{
  216. header{
  217. h1{
  218. font-size: 0.882em;
  219. font-weight: normal;
  220. margin:0 0 0.5em 0;
  221. }
  222. }
  223. .extract{
  224. p{
  225. font-size: 0.882em;
  226. margin:0;
  227. }
  228. code{
  229. background-color: lighten(desaturate($rouge,20%), 20%);
  230. }
  231. }
  232. }
  233. }
  234. }
  235. #footer-bottom{
  236. z-index: 10;
  237. padding:0 $side-padding;
  238. background-color: $bleuroi;
  239. &>*{
  240. // disable grid gap
  241. padding-right: 0;
  242. }
  243. #footer-tabs{
  244. ul{
  245. padding:0; margin:0;
  246. display: flex;
  247. flex-direction: column;
  248. li{
  249. flex: 1 1 auto;
  250. .wrapper{
  251. box-sizing: border-box;
  252. line-height: 0.6em;
  253. height:2em;
  254. width: calc(100% + $side-padding);
  255. margin-left:-$side-padding;
  256. padding:0.3em 0.5em 0.3em $side-padding;
  257. }
  258. &.history .wrapper{
  259. background-color: $or;
  260. }
  261. &.results .wrapper{
  262. background-color: $gris;
  263. }
  264. span{
  265. font-size: 0.693em;
  266. font-weight: 400;
  267. text-transform: uppercase;
  268. cursor: pointer;
  269. @include fade-transition;
  270. }
  271. }
  272. }
  273. }
  274. #search{
  275. color: #fff;
  276. background-color: $bleuroi;
  277. form{
  278. padding: 0.7em;
  279. label[for="keys"]{
  280. display: none;
  281. }
  282. input[type="text"]{
  283. padding:0.3em;
  284. font-size: 0.756em;
  285. line-height: 1;
  286. height:1em;
  287. border:none;
  288. border-radius: 2px;
  289. }
  290. // input[type="submit"]{
  291. // #submit-search{
  292. // border:none;
  293. //
  294. // }
  295. // }
  296. span.mdi{
  297. display: inline-block;
  298. font-size: 1.2em;
  299. line-height:1.1;
  300. vertical-align:middle;
  301. width:1.2em; height:1.2em;
  302. border-radius: 0.6em;
  303. background-color: #fff;
  304. color: $bleuroi;
  305. text-align: center;
  306. font-weight: 700;
  307. cursor: pointer;
  308. }
  309. }
  310. }
  311. }
  312. h2{
  313. margin:0;
  314. font-size: 0.756em;
  315. font-weight: 400;
  316. text-transform: uppercase;
  317. padding:0;
  318. }
  319. }
  320. // ___
  321. // |_ _|__ ___ _ _ ___
  322. // | |/ _/ _ \ ' \(_-<
  323. // |___\__\___/_||_/__/
  324. span.mdi-close{
  325. cursor: pointer;
  326. }
  327. @keyframes spin {
  328. from {
  329. transform:rotate(0deg);
  330. }
  331. to {
  332. transform:rotate(360deg);
  333. }
  334. }
  335. span.mdi-loading{
  336. animation-name: spin;
  337. animation-duration: 2000ms;
  338. animation-iteration-count: infinite;
  339. animation-timing-function: linear;
  340. }