app.scss 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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. }
  52. footer[role="tools"]{
  53. $list-item-h: 5.3em;
  54. #history{
  55. z-index: 8;
  56. background-color: $or;
  57. padding:1.2em $side-padding;
  58. max-height: $list-item-h;
  59. @include accordeon-transition($list-item-h);
  60. >header{
  61. }
  62. .history-list{
  63. overflow-x: hidden;
  64. .wrapper{
  65. height:100%;
  66. // hidding the scrollbar
  67. overflow-y: auto;
  68. width:calc(100% + 1em);
  69. padding-right: 1em;
  70. >ul{
  71. padding:0;
  72. display: flex;
  73. flex-direction: row;
  74. flex-wrap: wrap;
  75. }
  76. }
  77. li.item{
  78. box-sizing: border-box;
  79. flex-basis: percentage(2/$default_sum);
  80. height: $list-item-h;
  81. overflow: hidden;
  82. padding-bottom: 1em;
  83. padding-right: 0.7em;
  84. article{
  85. max-height: 100%;
  86. overflow: hidden;
  87. }
  88. }
  89. article.history.item{
  90. header{
  91. h1{
  92. font-size: 0.882em;
  93. font-weight: normal;
  94. margin:0 0 0.5em 0;
  95. }
  96. }
  97. .extract{
  98. p{
  99. font-size: 0.882em;
  100. margin:0;
  101. }
  102. code{
  103. background-color: lighten(desaturate($rouge,20%), 20%);
  104. }
  105. }
  106. }
  107. }
  108. }
  109. #results{
  110. z-index: 9;
  111. background-color: $gris;
  112. padding:1.2em $side-padding;
  113. max-height: $list-item-h * 3;
  114. @include accordeon-transition($list-item-h * 3);
  115. >header{
  116. .search-keys{
  117. font-size: 0.756em;
  118. font-weight: 500;
  119. }
  120. .results-count{
  121. font-size: 0.756em;
  122. }
  123. }
  124. .results-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.result{
  140. box-sizing: border-box;
  141. flex-basis: percentage(2/$default_sum);
  142. height: $list-item-h;
  143. overflow: hidden;
  144. padding-bottom: 1em;
  145. padding-right: 0.7em;
  146. article{
  147. max-height: 100%;
  148. overflow: hidden;
  149. }
  150. }
  151. article.result.item{
  152. header{
  153. h1{
  154. font-size: 0.882em;
  155. font-weight: normal;
  156. margin:0 0 0.5em 0;
  157. }
  158. }
  159. .extract{
  160. p{
  161. font-size: 0.882em;
  162. margin:0;
  163. }
  164. code{
  165. background-color: lighten(desaturate($rouge,20%), 20%);
  166. }
  167. }
  168. }
  169. }
  170. }
  171. #footer-bottom{
  172. z-index: 10;
  173. padding:0 $side-padding;
  174. background-color: $bleuroi;
  175. &>*{
  176. // disable grid gap
  177. padding-right: 0;
  178. }
  179. #footer-tabs{
  180. ul{
  181. padding:0; margin:0;
  182. display: flex;
  183. flex-direction: column;
  184. li{
  185. flex: 1 1 auto;
  186. .wrapper{
  187. box-sizing: border-box;
  188. line-height: 0.6em;
  189. height:2em;
  190. width: calc(100% + $side-padding);
  191. margin-left:-$side-padding;
  192. padding:0.3em 0.5em 0.3em $side-padding;
  193. }
  194. &.history .wrapper{
  195. background-color: $or;
  196. }
  197. &.results .wrapper{
  198. background-color: $gris;
  199. }
  200. span{
  201. font-size: 0.693em;
  202. font-weight: 400;
  203. text-transform: uppercase;
  204. cursor: pointer;
  205. @include fade-transition;
  206. }
  207. }
  208. }
  209. }
  210. #search{
  211. color: #fff;
  212. background-color: $bleuroi;
  213. form{
  214. padding: 0.7em;
  215. label[for="keys"]{
  216. display: none;
  217. }
  218. input[type="text"]{
  219. padding:0.3em;
  220. font-size: 0.756em;
  221. line-height: 1;
  222. height:1em;
  223. border:none;
  224. border-radius: 2px;
  225. }
  226. // input[type="submit"]{
  227. // #submit-search{
  228. // border:none;
  229. //
  230. // }
  231. // }
  232. span.mdi{
  233. display: inline-block;
  234. font-size: 1.2em;
  235. line-height:1.1;
  236. vertical-align:middle;
  237. width:1.2em; height:1.2em;
  238. border-radius: 0.6em;
  239. background-color: #fff;
  240. color: $bleuroi;
  241. text-align: center;
  242. font-weight: 700;
  243. cursor: pointer;
  244. }
  245. }
  246. }
  247. }
  248. h2{
  249. margin:0;
  250. font-size: 0.756em;
  251. font-weight: 400;
  252. text-transform: uppercase;
  253. padding:0;
  254. }
  255. }
  256. // ___
  257. // |_ _|__ ___ _ _ ___
  258. // | |/ _/ _ \ ' \(_-<
  259. // |___\__\___/_||_/__/
  260. span.mdi-close{
  261. cursor: pointer;
  262. }
  263. @keyframes spin {
  264. from {
  265. transform:rotate(0deg);
  266. }
  267. to {
  268. transform:rotate(360deg);
  269. }
  270. }
  271. span.mdi-loading{
  272. animation-name: spin;
  273. animation-duration: 2000ms;
  274. animation-iteration-count: infinite;
  275. animation-timing-function: linear;
  276. }