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.

142 lines
2.5KB

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