app.scss 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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. }
  59. #results{
  60. z-index: 9;
  61. background-color: $gris;
  62. padding:1.2em $side-padding;
  63. max-height: $list-item-h * 3;
  64. @include accordeon-transition($list-item-h * 3);
  65. >header{
  66. .results-count{
  67. font-size: 0.756em;
  68. }
  69. }
  70. .results-list{
  71. overflow-x: hidden;
  72. .wrapper{
  73. height:100%;
  74. overflow-y: auto;
  75. width:calc(100% + 1em);
  76. padding-right: 1em;
  77. >ul{
  78. padding:0;
  79. display: flex;
  80. flex-direction: row;
  81. flex-wrap: wrap;
  82. }
  83. }
  84. li.result{
  85. box-sizing: border-box;
  86. flex-basis: percentage(2/$default_sum);
  87. height: $list-item-h;
  88. overflow: hidden;
  89. padding-bottom: 1em;
  90. padding-right: 0.7em;
  91. article{
  92. max-height: 100%;
  93. overflow: hidden;
  94. }
  95. }
  96. article.result.item{
  97. header{
  98. h1{
  99. font-size: 0.882em;
  100. font-weight: normal;
  101. margin:0 0 0.5em 0;
  102. }
  103. }
  104. .extract{
  105. p{
  106. font-size: 0.882em;
  107. margin:0;
  108. }
  109. code{
  110. background-color: lighten(desaturate($rouge,20%), 20%);
  111. }
  112. }
  113. }
  114. }
  115. }
  116. #footer-bottom{
  117. z-index: 10;
  118. padding:0 $side-padding;
  119. background-color: $bleuroi;
  120. &>*{
  121. // disable grid gap
  122. padding-right: 0;
  123. }
  124. #footer-tabs{
  125. ul{
  126. padding:0; margin:0;
  127. display: flex;
  128. flex-direction: column;
  129. li{
  130. flex: 1 1 auto;
  131. .wrapper{
  132. box-sizing: border-box;
  133. line-height: 0.6em;
  134. height:2em;
  135. width: calc(100% + $side-padding);
  136. margin-left:-$side-padding;
  137. padding:0.3em 0.5em 0.3em $side-padding;
  138. }
  139. &.history .wrapper{
  140. background-color: $or;
  141. }
  142. &.results .wrapper{
  143. background-color: $gris;
  144. }
  145. span{
  146. font-size: 0.693em;
  147. font-weight: 400;
  148. text-transform: uppercase;
  149. cursor: pointer;
  150. @include fade-transition;
  151. }
  152. }
  153. }
  154. }
  155. #search{
  156. color: #fff;
  157. background-color: $bleuroi;
  158. form{
  159. padding: 0.7em;
  160. label[for="keys"]{
  161. display: none;
  162. }
  163. input[type="text"]{
  164. padding:0.3em;
  165. font-size: 0.756em;
  166. line-height: 1;
  167. height:1em;
  168. border:none;
  169. border-radius: 2px;
  170. }
  171. // input[type="submit"]{
  172. // #submit-search{
  173. // border:none;
  174. //
  175. // }
  176. // }
  177. span.mdi{
  178. display: inline-block;
  179. font-size: 1.2em;
  180. line-height:1.1;
  181. vertical-align:middle;
  182. width:1.2em; height:1.2em;
  183. border-radius: 0.6em;
  184. background-color: #fff;
  185. color: $bleuroi;
  186. text-align: center;
  187. font-weight: 700;
  188. cursor: pointer;
  189. }
  190. }
  191. }
  192. }
  193. h2{
  194. margin:0;
  195. font-size: 0.756em;
  196. font-weight: 400;
  197. text-transform: uppercase;
  198. padding:0;
  199. }
  200. }
  201. // ___
  202. // |_ _|__ ___ _ _ ___
  203. // | |/ _/ _ \ ' \(_-<
  204. // |___\__\___/_||_/__/
  205. span.mdi-close{
  206. cursor: pointer;
  207. }
  208. @keyframes spin {
  209. from {
  210. transform:rotate(0deg);
  211. }
  212. to {
  213. transform:rotate(360deg);
  214. }
  215. }
  216. span.mdi-loading{
  217. animation-name: spin;
  218. animation-duration: 2000ms;
  219. animation-iteration-count: infinite;
  220. animation-timing-function: linear;
  221. }