main.scss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. // @Author: Bachir Soussi Chiadmi <bach>
  2. // @Date: 18-12-2017
  3. // @Email: bachir@figureslibres.io
  4. // @Filename: app.scss
  5. // @Last modified by: bach
  6. // @Last modified time: 20-12-2017
  7. // @License: GPL-V3
  8. @import './base/reset';
  9. @import './base/variables';
  10. @import './base/colors';
  11. @import './base/grid';
  12. @import './base/layout';
  13. // $mdi-font-path: "./mdi/fonts";
  14. // @import './mdi/scss/materialdesignicons.scss';
  15. @import './base/fonts';
  16. html{
  17. // background-color: red;
  18. }
  19. aside.messages{
  20. border:none;
  21. }
  22. // _ _ _
  23. // | || |___ __ _ __| |___ _ _
  24. // | __ / -_) _` / _` / -_) '_|
  25. // |_||_\___\__,_\__,_\___|_|
  26. header[role="banner"]{
  27. padding:0.2em 0 0 0;
  28. #block-sitebranding{
  29. h1{
  30. margin:0;
  31. line-height: 1;
  32. }
  33. }
  34. #block-userlogin{
  35. position: relative;
  36. width:8em;
  37. overflow: visible;
  38. h2{
  39. margin: 0;
  40. font-size: 1em;
  41. font-weight: 400;
  42. }
  43. &>section{
  44. background-color: #fff;
  45. overflow: hidden;
  46. width:11em;
  47. height:1px;
  48. padding:0.01em 1em;
  49. // margin:0 0 0 -1em;
  50. box-sizing:content-box;
  51. transition: all 0.4s ease-in-out;
  52. // outline: 1px solid blue;
  53. transition-delay: 2s;
  54. position: absolute;
  55. right:0;
  56. top:1.7em;
  57. box-sizing: content-box;
  58. }
  59. &:hover{
  60. &>section{
  61. transition-delay: 0s;
  62. height:12em;
  63. padding:1em 1em;
  64. box-shadow: 0 0 10px #ccc;
  65. }
  66. }
  67. .form-item{
  68. margin:0;
  69. position: relative;
  70. width:100%;
  71. &.form-item-name{
  72. margin:2px 0 0.5em 0;
  73. input{
  74. width:90%;
  75. padding:0;
  76. box-sizing: content-box;
  77. }
  78. }
  79. &.form-item-pass{
  80. margin:0 0 0.5em 0;
  81. input{
  82. width:90%;
  83. padding:0;
  84. box-sizing: content-box;
  85. }
  86. }
  87. &.form-item-persistent-login{
  88. font-size: 0.756em;
  89. label{
  90. vertical-align: top;
  91. }
  92. }
  93. }
  94. #edit-actions{
  95. margin:0;
  96. }
  97. .item-list{
  98. ul{
  99. margin:0;
  100. li{
  101. list-style: none;
  102. margin:0;
  103. a{
  104. font-size: 0.756em;
  105. }
  106. }
  107. }
  108. }
  109. }
  110. #block-languageswitcher{
  111. h2{
  112. margin: 0.1em 0 0 0;
  113. font-size: 0.756em;
  114. font-weight: 400;
  115. padding:0.1em 0.4em 0.2em;
  116. border-radius: 3px;
  117. background-color: #444;
  118. color: #fff;
  119. display: inline-block;
  120. vertical-align: top;
  121. }
  122. &>ul.links{
  123. // background-color: #fff;
  124. overflow: hidden;
  125. width:5em;
  126. height:1px;
  127. padding:0.01em 0;
  128. margin:0;
  129. box-sizing:content-box;
  130. transition: all 0.4s ease-in-out;
  131. // outline: 1px solid blue;
  132. // transition-delay: 2s;
  133. }
  134. &:hover{
  135. &>ul.links{
  136. transition-delay: 0s;
  137. height:2em;
  138. padding:0.3em 0;
  139. // box-shadow: 0 0 10px #ccc;
  140. }
  141. }
  142. li{
  143. list-style: none;
  144. padding:0;
  145. &.is-active{
  146. display:none;
  147. }
  148. a{
  149. margin: 0;
  150. font-size: 0.756em;
  151. font-weight: 400;
  152. padding:0.2em 0.4em;
  153. border-radius: 3px;
  154. background-color: #444;
  155. color: #fff;
  156. }
  157. }
  158. }
  159. }
  160. aside.messages{
  161. padding: 0;
  162. }
  163. // content top
  164. #materio-sapi-search-form{
  165. .form-item, input.button{
  166. display: inline-block;
  167. }
  168. }
  169. // front
  170. article.node--type-frontpage{
  171. .node__content{
  172. .field--name-field-what-is-materio,
  173. .field--name-field-a-database,
  174. .field--name-field-showrooms,
  175. .field--name-field-blabla,
  176. .field--name-field-pricing{
  177. &:not(:nth-child(1)){
  178. margin-top: 1em;
  179. }
  180. .field__label{
  181. font-size: 2.2em;
  182. font-weight: bold;
  183. }
  184. }
  185. .field--name-computed-materials-reference,
  186. .field--name-computed-showrooms-reference,
  187. .field--name-computed-articles-reference{
  188. .field__item{
  189. display: inline-block;
  190. vertical-align: top;
  191. max-width:250px;
  192. }
  193. }
  194. }
  195. }
  196. // ___ _
  197. // / __|__ _ _ _ __| |___
  198. // | (__/ _` | '_/ _` (_-<
  199. // \___\__,_|_| \__,_/__/
  200. .infinite-loading-container{
  201. .infinite-status-prompt{
  202. i[class^="loading-"]{
  203. width:15px; height:15px;
  204. }
  205. }
  206. }
  207. .cards-list{
  208. &>ul{
  209. margin:0; padding:0;
  210. &>li{
  211. list-style: none;
  212. margin:0 1em 1em 0; padding:0;
  213. display: inline-block;
  214. vertical-align: top;
  215. }
  216. }
  217. }
  218. .card{
  219. position: relative;
  220. width:210px; height:295px;
  221. header{
  222. position: absolute;
  223. bottom:0;
  224. z-index:10;
  225. color: #fff;
  226. background-color: rgba(0,0,0,0.5);
  227. width:100%;
  228. h1, h4{ margin:0; padding:0; }
  229. h1{
  230. font-size: 1.5em;
  231. }
  232. h4{
  233. font-size: 1em;
  234. font-weight: normal;
  235. }
  236. }
  237. section.images{
  238. position: relative;
  239. &, *{width: 100%; height:100%;}
  240. figure{
  241. margin:0;
  242. position: absolute;
  243. top:0; left:0;
  244. // width: 100%; height:100%;
  245. &:first-of-type{
  246. z-index:5
  247. }
  248. img{
  249. // width: 100%; height:100%;
  250. &.blank{
  251. position: absolute;
  252. top:0; left:0;
  253. z-index: 20;
  254. }
  255. }
  256. }
  257. }
  258. }