app.scss 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  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. #edition-toc{
  138. ul{
  139. li{
  140. ul{
  141. // padding-left: 1em;
  142. border-left: 1px dotted $or;
  143. // min-height: 1em;
  144. margin-bottom: 0.5em;
  145. li{
  146. // min-height: 1em;
  147. // border-left: 1px solid red;
  148. padding:0 0 0.2em 1em;
  149. }
  150. }
  151. }
  152. }
  153. .toc-title{
  154. color: $bleuroi;
  155. font-weight: 400;
  156. margin:0;
  157. }
  158. h2.toc-title{font-size: 1.3em;}
  159. h3.toc-title{font-size: 1.2em;}
  160. h4.toc-title{font-size: 1.1em;}
  161. h5.toc-title{font-size: 1.0em;}
  162. h6.toc-title{font-size: 0.9em;}
  163. span.placeName,
  164. span.objectName,
  165. span.persName{
  166. font-weight: 600;
  167. }
  168. }
  169. #text{
  170. .content{
  171. color: $bleuroi;
  172. h1{
  173. font-size: 1.512em;
  174. }
  175. p{
  176. font-size: 1.134em;
  177. line-height: 1.5;
  178. span.persName,
  179. span.placeName,
  180. span.objectName{
  181. font-weight: 600;
  182. }
  183. }
  184. }
  185. }
  186. }
  187. footer[role="tools"]{
  188. $list-item-h: 5.3em;
  189. #history{
  190. z-index: 8;
  191. background-color: $or;
  192. padding:1.2em $side-padding;
  193. max-height: $list-item-h;
  194. @include accordeon-transition($list-item-h);
  195. >header{
  196. }
  197. .history-list{
  198. overflow-x: hidden;
  199. .wrapper{
  200. height:100%;
  201. // hidding the scrollbar
  202. overflow-y: auto;
  203. width:calc(100% + 1em);
  204. padding-right: 1em;
  205. >ul{
  206. padding:0;
  207. display: flex;
  208. flex-direction: row;
  209. flex-wrap: wrap;
  210. }
  211. }
  212. li.item{
  213. box-sizing: border-box;
  214. // we are only on 10 colls as 2 are occupied by sides
  215. flex-basis: percentage(2/($default_sum - 2));
  216. height: $list-item-h;
  217. overflow: hidden;
  218. padding-bottom: 1em;
  219. padding-right: $default_gap;
  220. article{
  221. max-height: 100%;
  222. overflow: hidden;
  223. }
  224. }
  225. article.history.item{
  226. header{
  227. h1{
  228. font-size: 0.882em;
  229. font-weight: normal;
  230. margin:0 0 0.5em 0;
  231. }
  232. }
  233. .extract{
  234. p{
  235. font-size: 0.882em;
  236. margin:0;
  237. }
  238. code{
  239. background-color: lighten(desaturate($rouge,20%), 20%);
  240. }
  241. }
  242. }
  243. }
  244. }
  245. #results{
  246. z-index: 9;
  247. background-color: $gris;
  248. padding:1.2em $side-padding;
  249. max-height: $list-item-h * 3;
  250. @include accordeon-transition($list-item-h * 3);
  251. >header{
  252. .search-keys{
  253. font-size: 0.756em;
  254. font-weight: 500;
  255. }
  256. .results-count{
  257. font-size: 0.756em;
  258. }
  259. }
  260. .results-list{
  261. overflow-x: hidden;
  262. .wrapper{
  263. height:100%;
  264. // hidding the scrollbar
  265. overflow-y: auto;
  266. width:calc(100% + 1em);
  267. padding-right: 1em;
  268. >ul{
  269. padding:0;
  270. display: flex;
  271. flex-direction: row;
  272. flex-wrap: wrap;
  273. }
  274. }
  275. li.result{
  276. box-sizing: border-box;
  277. // we are only on 10 colls as 2 are occupied by sides
  278. flex-basis: percentage(2/($default_sum - 2));
  279. height: $list-item-h;
  280. overflow: hidden;
  281. padding-bottom: 1em;
  282. padding-right: $default_gap;
  283. article{
  284. max-height: 100%;
  285. overflow: hidden;
  286. }
  287. }
  288. article.result.item{
  289. header{
  290. h1{
  291. font-size: 0.882em;
  292. font-weight: normal;
  293. margin:0 0 0.5em 0;
  294. }
  295. }
  296. .extract{
  297. p{
  298. font-size: 0.882em;
  299. margin:0;
  300. }
  301. code{
  302. background-color: lighten(desaturate($rouge,20%), 20%);
  303. }
  304. }
  305. }
  306. }
  307. }
  308. #footer-bottom{
  309. z-index: 10;
  310. padding:0 $side-padding;
  311. background-color: $bleuroi;
  312. &>*{
  313. // disable grid gap
  314. padding-right: 0;
  315. }
  316. #footer-tabs{
  317. ul{
  318. padding:0; margin:0;
  319. display: flex;
  320. flex-direction: column;
  321. li{
  322. flex: 1 1 auto;
  323. .wrapper{
  324. box-sizing: border-box;
  325. line-height: 0.6em;
  326. height:2em;
  327. width: calc(100% + $side-padding);
  328. margin-left:-$side-padding;
  329. padding:0.3em 0.5em 0.3em $side-padding;
  330. }
  331. &.history .wrapper{
  332. background-color: $or;
  333. }
  334. &.results .wrapper{
  335. background-color: $gris;
  336. }
  337. span{
  338. font-size: 0.693em;
  339. font-weight: 400;
  340. text-transform: uppercase;
  341. cursor: pointer;
  342. @include fade-transition;
  343. }
  344. }
  345. }
  346. }
  347. #search{
  348. color: #fff;
  349. background-color: $bleuroi;
  350. form{
  351. padding: 0.7em;
  352. label[for="keys"]{
  353. display: none;
  354. }
  355. input[type="text"]{
  356. padding:0.3em;
  357. font-size: 0.756em;
  358. line-height: 1;
  359. height:1em;
  360. border:none;
  361. border-radius: 2px;
  362. }
  363. // input[type="submit"]{
  364. // #submit-search{
  365. // border:none;
  366. //
  367. // }
  368. // }
  369. span.mdi{
  370. display: inline-block;
  371. font-size: 1.2em;
  372. line-height:1.1;
  373. vertical-align:middle;
  374. width:1.2em; height:1.2em;
  375. border-radius: 0.6em;
  376. background-color: #fff;
  377. color: $bleuroi;
  378. text-align: center;
  379. font-weight: 700;
  380. cursor: pointer;
  381. }
  382. }
  383. }
  384. }
  385. h2{
  386. margin:0;
  387. font-size: 0.756em;
  388. font-weight: 400;
  389. text-transform: uppercase;
  390. padding:0;
  391. }
  392. }
  393. // ___
  394. // |_ _|__ ___ _ _ ___
  395. // | |/ _/ _ \ ' \(_-<
  396. // |___\__\___/_||_/__/
  397. span.mdi-close{
  398. cursor: pointer;
  399. }
  400. @keyframes spin {
  401. from {
  402. transform:rotate(0deg);
  403. }
  404. to {
  405. transform:rotate(360deg);
  406. }
  407. }
  408. span.mdi-loading{
  409. animation-name: spin;
  410. animation-duration: 2000ms;
  411. animation-iteration-count: infinite;
  412. animation-timing-function: linear;
  413. }