main.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. section.enonce{
  78. width:450px;
  79. margin: 1em 0;
  80. overflow-x: visible;
  81. @include base_font;
  82. // max-height:14px;
  83. // overflow: hidden;
  84. // transition: max-height 0.5s ease-in-out;
  85. // &.active{
  86. // max-height:1000px;
  87. // }
  88. h2{
  89. font-size: 1em;
  90. font-weight: 300;
  91. margin: 0;
  92. cursor:pointer;
  93. }
  94. h3{
  95. font-size: 0.9em;
  96. font-weight: 300;
  97. margin: 0;
  98. cursor:pointer;
  99. }
  100. div.text{
  101. font-size: 1.3em;
  102. div.paragraph{
  103. margin-bottom: 1em;
  104. div.opened-link{
  105. display:inline;
  106. }
  107. a.link, span.link.text{
  108. font-weight: 600;
  109. text-decoration: none;
  110. color: inherit;
  111. }
  112. span.link.text:after{
  113. content:':'
  114. }
  115. section.enonce, section.item{
  116. padding-left:2em;
  117. border-left: 1px solid #999;
  118. }
  119. }
  120. }
  121. }
  122. footer{
  123. position: fixed;
  124. bottom: 0;
  125. >*{margin-left: 1em;}
  126. }