mostly filebased Content Presentation System
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

149 satır
2.5KB

  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