main.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  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. #content-top{
  165. &:after{
  166. content:"";
  167. clear:both;
  168. display: block;
  169. }
  170. }
  171. #block-materiosapisearchblock{
  172. float:right;
  173. display:inline-block;
  174. // box-shadow: 0 0 5px rgba(0,0,0,0.2);
  175. padding:0;
  176. #materio-sapi-search-form{
  177. .form-item, input.button{
  178. display: inline-block;
  179. }
  180. #edit-search{
  181. border:1px #BBB solid;
  182. border-radius: 14px;
  183. padding:0.3em;
  184. color:#666;
  185. }
  186. #edit-submit{
  187. border:0;
  188. text-indent: 50px;
  189. overflow: hidden;
  190. width:20px; height:20px;
  191. // border-radius: 7px;
  192. background-image: url('../img/search.png');
  193. background-position: center;
  194. background-repeat: no-repeat;
  195. background-size: contain;
  196. }
  197. }
  198. }
  199. h1.page-title{
  200. margin:0;
  201. }
  202. // front
  203. article.node--type-frontpage{
  204. .node__content{
  205. .field--name-field-what-is-materio,
  206. .field--name-field-a-database,
  207. .field--name-field-showrooms,
  208. .field--name-field-blabla,
  209. .field--name-field-pricing{
  210. &:not(:nth-child(1)){
  211. margin-top: 1em;
  212. }
  213. .field__label{
  214. font-size: 2.2em;
  215. font-weight: bold;
  216. }
  217. }
  218. .field--name-computed-materials-reference,
  219. .field--name-computed-showrooms-reference,
  220. .field--name-computed-articles-reference{
  221. .field__item{
  222. display: inline-block;
  223. vertical-align: top;
  224. max-width:250px;
  225. }
  226. }
  227. }
  228. }
  229. // ___ _
  230. // / __|__ _ _ _ __| |___
  231. // | (__/ _` | '_/ _` (_-<
  232. // \___\__,_|_| \__,_/__/
  233. .infinite-loading-container{
  234. .infinite-status-prompt{
  235. i[class^="loading-"]{
  236. width:15px; height:15px;
  237. }
  238. }
  239. }
  240. .cards-list{
  241. .search-info{
  242. margin:0 0 1em 0;
  243. }
  244. &>ul{
  245. margin:0; padding:0;
  246. &>li{
  247. list-style: none;
  248. margin:0 1em 1em 0; padding:0;
  249. display: inline-block;
  250. vertical-align: top;
  251. }
  252. }
  253. }
  254. .card{
  255. position: relative;
  256. width:210px; height:295px;
  257. box-shadow: 0 0 5px rgba(0,0,0,0.2);
  258. // focused
  259. // box-shadow: 0 0 7px rgba(0,0,0,0.9);
  260. header{
  261. position: absolute;
  262. bottom:0;
  263. z-index:10;
  264. color: #000;
  265. background-color: rgba(255,255,255,0.8);
  266. padding: 0.3em 0.3em;
  267. box-sizing:border-box;
  268. width:100%;
  269. h1, h4{ margin:0; padding:0; }
  270. h1{
  271. font-size: 1.3em;
  272. font-weight: 700;
  273. line-height: 0.8;
  274. margin-bottom: 0.2em;
  275. }
  276. h4{
  277. font-size: 0.882em;
  278. font-weight: 300;
  279. line-height: 1;
  280. // margin-bottom: 0.1em;
  281. }
  282. span.ref{
  283. font-size: 0.693em;
  284. font-weight: 300;
  285. line-height: 1;
  286. }
  287. }
  288. section.images{
  289. position: relative;
  290. &, *{width: 100%; height:100%;}
  291. figure{
  292. margin:0;
  293. position: absolute;
  294. top:0; left:0;
  295. // width: 100%; height:100%;
  296. &:first-of-type{
  297. z-index:5
  298. }
  299. img{
  300. // width: 100%; height:100%;
  301. &.blank{
  302. position: absolute;
  303. top:0; left:0;
  304. z-index: 20;
  305. }
  306. }
  307. }
  308. }
  309. }