app.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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. body{
  8. color: #1a1a1a;
  9. }
  10. #root{
  11. }
  12. header[role="banner"]{
  13. div.wrapper{
  14. display: grid;
  15. grid-template-columns: 1fr 1fr;
  16. }
  17. h1.site-title{
  18. grid-column: 1;
  19. margin:0;
  20. font-size: 1em;
  21. }
  22. nav#header-menu{
  23. grid-column: 2;
  24. text-align: right;
  25. >ul>li{
  26. display: inline-block;
  27. margin-right: 1em;
  28. position: relative;
  29. >ul{
  30. position: absolute;
  31. top:1em; right:0;
  32. overflow: hidden;
  33. >li{
  34. transition: height 0.3s ease-in-out;
  35. height:0.2px;
  36. }
  37. }
  38. &:hover{
  39. >ul>li{
  40. height:1em;
  41. }
  42. }
  43. }
  44. li>span,li>a{
  45. font-size: 0.9em;
  46. }
  47. }
  48. }
  49. section[role="main-content"]{
  50. }
  51. footer[role="tools"]{
  52. #history{
  53. background-color: $or;
  54. padding:1.2em $side-padding;
  55. }
  56. #results{
  57. background-color: $gris;
  58. max-height: 50vh;
  59. padding:1.2em $side-padding;
  60. section.col-1{
  61. .results-count{
  62. font-size: 0.756em;
  63. }
  64. }
  65. .results-list{
  66. overflow-x: hidden;
  67. .wrapper{
  68. height:100%;
  69. overflow-y: auto;
  70. width:calc(100% + 1em);
  71. padding-right: 1em;
  72. >ul{
  73. padding:0;
  74. display: flex;
  75. flex-direction: row;
  76. flex-wrap: wrap;
  77. }
  78. }
  79. li.result{
  80. flex-basis: percentage(2/$default_sum);
  81. height: 5.3em;
  82. overflow: hidden;
  83. margin-bottom: 1em;
  84. padding-right: 0.7em;
  85. box-sizing: border-box;
  86. }
  87. article.result.item{
  88. header{
  89. h1{
  90. font-size: 0.882em;
  91. font-weight: normal;
  92. margin:0 0 0.5em 0;
  93. }
  94. }
  95. .extract{
  96. p{
  97. font-size: 0.882em;
  98. margin:0;
  99. }
  100. code{
  101. background-color: lighten(desaturate($rouge,20%), 20%);
  102. }
  103. }
  104. }
  105. }
  106. }
  107. #footer-bottom{
  108. padding:0 $side-padding;
  109. background-color: $bleuroi;
  110. &>*{
  111. // disable grid gap
  112. padding-right: 0;
  113. }
  114. #footer-tabs{
  115. ul{
  116. padding:0; margin:0;
  117. display: flex;
  118. flex-direction: column;
  119. li{
  120. flex: 1 1 auto;
  121. .wrapper{
  122. box-sizing: border-box;
  123. line-height: 0.6em;
  124. height:2em;
  125. width: calc(100% + $side-padding);
  126. margin-left:-$side-padding;
  127. padding:0.3em 0.5em 0.3em $side-padding;
  128. }
  129. &.history .wrapper{
  130. background-color: $or;
  131. }
  132. &.results .wrapper{
  133. background-color: $gris;
  134. }
  135. span{
  136. font-size: 0.693em;
  137. font-weight: 400;
  138. text-transform: uppercase;
  139. cursor: pointer;
  140. }
  141. }
  142. }
  143. }
  144. #search{
  145. color: #fff;
  146. background-color: $bleuroi;
  147. form{
  148. padding: 0.7em;
  149. label[for="keys"]{
  150. display: none;
  151. }
  152. input[type="text"]{
  153. padding:0.3em;
  154. font-size: 0.756em;
  155. line-height: 1;
  156. height:1em;
  157. border:none;
  158. border-radius: 2px;
  159. }
  160. // input[type="submit"]{
  161. // #submit-search{
  162. // border:none;
  163. //
  164. // }
  165. // }
  166. span.mdi{
  167. display: inline-block;
  168. font-size: 1.2em;
  169. line-height:1.1;
  170. vertical-align:middle;
  171. width:1.2em; height:1.2em;
  172. border-radius: 0.6em;
  173. background-color: #fff;
  174. color: $bleuroi;
  175. text-align: center;
  176. font-weight: 700;
  177. cursor: pointer;
  178. }
  179. }
  180. }
  181. }
  182. h2{
  183. margin:0;
  184. font-size: 0.756em;
  185. font-weight: 400;
  186. text-transform: uppercase;
  187. padding:0;
  188. }
  189. }
  190. // ___
  191. // |_ _|__ ___ _ _ ___
  192. // | |/ _/ _ \ ' \(_-<
  193. // |___\__\___/_||_/__/
  194. span.mdi-close{
  195. cursor: pointer;
  196. }
  197. @keyframes spin {
  198. from {
  199. transform:rotate(0deg);
  200. }
  201. to {
  202. transform:rotate(360deg);
  203. }
  204. }
  205. span.mdi-loading{
  206. animation-name: spin;
  207. animation-duration: 2000ms;
  208. animation-iteration-count: infinite;
  209. animation-timing-function: linear;
  210. }
  211. // _ _ _ _
  212. // | |_ _ _ __ _ _ _ __(_) |_(_)___ _ _ ___
  213. // | _| '_/ _` | ' \(_-< | _| / _ \ ' \(_-<
  214. // \__|_| \__,_|_||_/__/_|\__|_\___/_||_/__/
  215. .fade-roll-enter-active{
  216. transition: all .3s ease-in-out;
  217. }
  218. .fade-roll-leave-active{
  219. transition: all .8s ease;
  220. }
  221. .fade-roll-enter, .fade-roll-leave-to{
  222. opacity:0;
  223. // height:1px;
  224. }