app.scss 8.2 KB

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