main.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. // @Author: Bachir Soussi Chiadmi <bach>
  2. // @Date: 16-04-2017
  3. // @Email: bachir@figureslibres.io
  4. // @Last modified by: bach
  5. // @Last modified time: 18-04-2017
  6. // @License: GPL-V3
  7. $fs:16px;
  8. @mixin base_font{
  9. font-family: 'amiri', sans-serif;
  10. font-size: $fs;
  11. font-kerning: auto;
  12. line-height: 1.4;
  13. }
  14. html, body{
  15. @include base_font;
  16. position: relative;
  17. margin:0;
  18. padding:0;
  19. }
  20. header{
  21. position: fixed;
  22. width:100%; top:0; z-index: 5;
  23. >*{
  24. display: inline-block;
  25. vertical-align: bottom;
  26. &:first-child{ margin-left: 1em;}
  27. &:last-child{ margin-right: 1em;}
  28. }
  29. }
  30. nav#menus{
  31. float:right;
  32. >ul{
  33. display: inline-block;
  34. }
  35. ul{
  36. margin:0 0.5em;
  37. li{
  38. list-style: none;
  39. line-height: 0.9;
  40. display: inline-block;
  41. vertical-align: middle;
  42. margin: 0 0.2em;
  43. a{
  44. text-decoration: none;
  45. color: inherit;
  46. }
  47. }
  48. }
  49. // ul#languages{
  50. // li{
  51. // list-style: none;
  52. // line-height: 0.9;
  53. // a{
  54. // text-decoration: none;
  55. // color: inherit;
  56. // }
  57. // }
  58. // }
  59. }
  60. // #app{
  61. // position: relative;
  62. // text-align: center;
  63. // margin: 3em auto;
  64. // }
  65. main#content{
  66. margin: 3em auto;
  67. width: 450px;
  68. &>*{
  69. width: 450px;
  70. }
  71. }
  72. h1.part{
  73. font-size: 1.6em;
  74. width:450px;
  75. margin: 1em 0;
  76. }
  77. // ______
  78. // /_ __/_______ ___
  79. // / / / ___/ _ \/ _ \
  80. // / / / / / __/ __/
  81. // /_/ /_/ \___/\___/
  82. section.enonce{
  83. width:450px;
  84. margin: 1em 0;
  85. overflow-x: visible;
  86. @include base_font;
  87. // max-height:14px;
  88. // overflow: hidden;
  89. // transition: max-height 0.5s ease-in-out;
  90. // &.active{
  91. // max-height:1000px;
  92. // }
  93. h2{
  94. font-size: 1em;
  95. font-weight: 300;
  96. margin: 0;
  97. cursor:pointer;
  98. }
  99. h3{
  100. font-size: 0.9em;
  101. font-weight: 300;
  102. margin: 0;
  103. cursor:pointer;
  104. }
  105. div.text{
  106. font-size: 1.3em;
  107. div.paragraph{
  108. margin-bottom: 1em;
  109. div.opened-link{
  110. display:inline;
  111. }
  112. a.link, span.link.text{
  113. font-weight: 600;
  114. text-decoration: none;
  115. color: inherit;
  116. }
  117. span.link.text:after{
  118. content:':'
  119. }
  120. section.enonce, section.item{
  121. padding-left:2em;
  122. border-left: 1px solid #999;
  123. }
  124. }
  125. }
  126. }
  127. // ____ __
  128. // / __ \____ / /______
  129. // / / / / __ \/ __/ ___/
  130. // / /_/ / /_/ / /_(__ )
  131. // /_____/\____/\__/____/
  132. .dot{
  133. cursor: pointer;
  134. position: relative;
  135. transform: translate3d(0,0,0);
  136. transition: transform 0.2s ease-in-out;
  137. span.id{
  138. display: inline-block;
  139. position: absolute;
  140. left:-3.5em;
  141. opacity:0;
  142. // transform: translate3d(0, 0, 0);
  143. transition: transform 0.2s ease-in-out,opacity 0.4s ease-in-out;
  144. }
  145. span.bullet{
  146. }
  147. p.summary{
  148. display: inline-block;
  149. margin: 0 0 0 1em;
  150. opacity: 0;
  151. transition: opacity 0.4s ease-in-out;
  152. }
  153. &:hover, &.opened{
  154. transform: translate3d(0.5em, 0, 0);
  155. transition: transform 0.1s ease-in-out;
  156. p.summary{
  157. opacity: 1;
  158. transition: opacity 0.4s ease-in-out;
  159. }
  160. span.id{
  161. opacity: 1;
  162. transform: translate3d(-0.5em, 0, 0);
  163. transition: transform 0.1s ease-in-out,opacity 0.4s ease-in-out;
  164. }
  165. }
  166. }
  167. footer{
  168. position: fixed;
  169. bottom: 0;
  170. >*{margin-left: 1em;}
  171. }