mostly filebased Content Presentation System
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

_freaCMSfeatures.scss 2.5KB

il y a 4 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. header {
  2. img {
  3. max-width: 100%;
  4. display: block;
  5. }
  6. }
  7. // content elements:
  8. // box
  9. a.content_element_box {
  10. .hover {
  11. display: none;
  12. }
  13. &:hover {
  14. .hover {
  15. display: inline;
  16. }
  17. .standard {
  18. display: none;
  19. }
  20. }
  21. div.content_element_box {
  22. display: inline-block;
  23. position: relative;
  24. height: 200px;
  25. margin:1em;
  26. .image { height:100%; }
  27. img {
  28. height: 100%;
  29. width: auto;
  30. }
  31. .caption {
  32. position: absolute;
  33. width: 100%;
  34. bottom:0;
  35. right:0;
  36. background: rgba(255,255,255,0.8);
  37. }
  38. }
  39. }
  40. .content_elment_box_body {
  41. display: none;
  42. }
  43. // devided
  44. .content_element_devided {
  45. display: grid;
  46. grid-template-columns:50% 50%;
  47. }
  48. // page
  49. .content_element_page {
  50. &:after {
  51. content: "";
  52. display: block;
  53. clear: both;
  54. }
  55. }
  56. // image
  57. .content_element_image {
  58. width: 60%;
  59. &.left {
  60. float: left;
  61. }
  62. &.right {
  63. float: right;
  64. }
  65. &.full {
  66. width:100%;
  67. }
  68. img {
  69. width: 100%;
  70. }
  71. }
  72. // lightbox -----------------------
  73. .featherlight .featherlight-content {
  74. background: none;
  75. overflow: visible;
  76. .featherlight-close-icon {
  77. color:$white;
  78. background: none;
  79. top: -10px;
  80. right: -10px;
  81. font-size: 1.5em;
  82. }
  83. @media #{$view_mobile} {
  84. iframe { width:100%; height:100%;}
  85. }
  86. }
  87. //--------------------------lightbox
  88. // mobile navigation--------------
  89. #main-nav {
  90. @media #{$view-mobile} {
  91. display: none;
  92. }
  93. }
  94. #mobile-nav {
  95. display: none;
  96. @media #{$view-mobile} {
  97. display: block;
  98. a.menu-toggle {
  99. display: block;
  100. }
  101. }
  102. .the_list {
  103. display: none;
  104. }
  105. &.open .the_list {
  106. display: block;
  107. position: fixed;
  108. top:0;
  109. left:0;
  110. z-index:99;
  111. background: rgba(255,255,255,0.9);
  112. height:100%;
  113. width: 100%;
  114. overflow: scroll;
  115. }
  116. a.menu-toggle {
  117. position: fixed;
  118. top:0;
  119. right:0;
  120. width:50px;
  121. height:50px;
  122. z-index:100;
  123. cursor: pointer;
  124. background: rgba(255,255,255,0.9);
  125. background-image: url('menu-icon.png');
  126. background-position: top;
  127. background-size: 100%;
  128. }
  129. &.open a.menu-toggle {
  130. background-position: bottom;
  131. }
  132. }
  133. // --------------mobile navigation