main.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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:14em;
  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. }
  58. &:hover{
  59. &>section{
  60. transition-delay: 0s;
  61. height:12em;
  62. padding:1em 1em;
  63. box-shadow: 0 0 10px #ccc;
  64. }
  65. }
  66. }
  67. #block-languageswitcher{
  68. h2{
  69. margin: 0.1em 0 0 0;
  70. font-size: 0.756em;
  71. font-weight: 400;
  72. padding:0.1em 0.4em 0.2em;
  73. border-radius: 3px;
  74. background-color: #444;
  75. color: #fff;
  76. display: inline-block;
  77. vertical-align: top;
  78. }
  79. &>ul.links{
  80. // background-color: #fff;
  81. overflow: hidden;
  82. width:5em;
  83. height:1px;
  84. padding:0.01em 0;
  85. margin:0;
  86. box-sizing:content-box;
  87. transition: all 0.4s ease-in-out;
  88. // outline: 1px solid blue;
  89. // transition-delay: 2s;
  90. }
  91. &:hover{
  92. &>ul.links{
  93. transition-delay: 0s;
  94. height:2em;
  95. padding:0.3em 0;
  96. // box-shadow: 0 0 10px #ccc;
  97. }
  98. }
  99. li{
  100. list-style: none;
  101. padding:0;
  102. &.is-active{
  103. display:none;
  104. }
  105. a{
  106. margin: 0;
  107. font-size: 0.756em;
  108. font-weight: 400;
  109. padding:0.2em 0.4em;
  110. border-radius: 3px;
  111. background-color: #444;
  112. color: #fff;
  113. }
  114. }
  115. }
  116. }
  117. aside.messages{
  118. padding: 0;
  119. }
  120. // content top
  121. #materio-sapi-search-form{
  122. .form-item, input.button{
  123. display: inline-block;
  124. }
  125. }
  126. // front
  127. article.node--type-frontpage{
  128. .node__content{
  129. .field--name-field-what-is-materio,
  130. .field--name-field-a-database,
  131. .field--name-field-showrooms,
  132. .field--name-field-blabla,
  133. .field--name-field-pricing{
  134. &:not(:nth-child(1)){
  135. margin-top: 1em;
  136. }
  137. .field__label{
  138. font-size: 2.2em;
  139. font-weight: bold;
  140. }
  141. }
  142. .field--name-computed-materials-reference,
  143. .field--name-computed-showrooms-reference,
  144. .field--name-computed-articles-reference{
  145. .field__item{
  146. display: inline-block;
  147. vertical-align: top;
  148. max-width:250px;
  149. }
  150. }
  151. }
  152. }