main.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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: top;
  26. &:first-child{ margin-left: 1em;}
  27. &:last-child{ margin-right: 1em;}
  28. }
  29. }
  30. aside#menus{
  31. float:right;
  32. >ul{
  33. display: inline-block;
  34. }
  35. ul#languages{
  36. li{
  37. list-style: none;
  38. line-height: 0.9;
  39. a{
  40. text-decoration: none;
  41. color: inherit;
  42. }
  43. }
  44. }
  45. }
  46. // #app{
  47. // position: relative;
  48. // text-align: center;
  49. // margin: 3em auto;
  50. // }
  51. main#content{
  52. margin: 3em auto;
  53. width: 450px;
  54. &>*{
  55. width: 450px;
  56. }
  57. }
  58. h1.part{
  59. font-size: 1.6em;
  60. width:450px;
  61. margin: 1em 0;
  62. }
  63. section.enonce{
  64. width:450px;
  65. margin: 1em 0;
  66. overflow-x: visible;
  67. @include base_font;
  68. // max-height:14px;
  69. // overflow: hidden;
  70. // transition: max-height 0.5s ease-in-out;
  71. // &.active{
  72. // max-height:1000px;
  73. // }
  74. h2{
  75. font-size: 1em;
  76. font-weight: 300;
  77. margin: 0;
  78. cursor:pointer;
  79. }
  80. h3{
  81. font-size: 0.9em;
  82. font-weight: 300;
  83. margin: 0;
  84. cursor:pointer;
  85. }
  86. div.text{
  87. font-size: 1.3em;
  88. div.paragraph{
  89. margin-bottom: 1em;
  90. div.opened-link{
  91. display:inline;
  92. }
  93. a.link, span.link.text{
  94. font-weight: 600;
  95. text-decoration: none;
  96. color: inherit;
  97. }
  98. span.link.text:after{
  99. content:':'
  100. }
  101. section.enonce, section.item{
  102. padding-left:2em;
  103. border-left: 1px solid #999;
  104. }
  105. }
  106. }
  107. }
  108. footer{
  109. position: fixed;
  110. bottom: 0;
  111. >*{margin-left: 1em;}
  112. }