_section.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. #start{
  2. margin-top: 40px;
  3. //home
  4. .item{
  5. display: -webkit-box;
  6. display: -ms-flexbox;
  7. display: flex;
  8. -ms-flex-wrap: wrap;
  9. flex-wrap: wrap;
  10. -ms-flex-pack: distribute;
  11. .card{
  12. position: relative;
  13. width: calc((100% / 3) - 3.5px);
  14. overflow-y: hidden;
  15. padding-bottom: 5px;
  16. &:nth-child(3n+2){
  17. margin: 0 5px;
  18. }
  19. .card-image{
  20. filter: grayscale(100%);
  21. -webkit-filter: grayscale(100%);
  22. -moz-filter: grayscale(100%);
  23. -ms-filter: grayscale(100%);
  24. -o-filter: grayscale(100%);
  25. -webkit-transition: all 1s ease;
  26. transition: all 1s ease;
  27. }
  28. .card-subtitle{
  29. a{
  30. padding: 0px 7px;
  31. background-color: rgba(0, 255, 0,0.5);
  32. }
  33. }
  34. .card-image:hover{
  35. filter: grayscale(0%);
  36. -webkit-filter: grayscale(0%);
  37. -moz-filter: grayscale(0%);
  38. -ms-filter: grayscale(0%);
  39. -o-filter: grayscale(0%);
  40. -webkit-transition: all 1s ease;
  41. transition: all 1s ease;
  42. // -webkit-transition: all 0.6s;
  43. // transition: all 0.6s;
  44. // background-color: rgb(0, 255, 0);
  45. img{
  46. -webkit-transition: all .6s;
  47. transition: all .6s;
  48. mix-blend-mode: multiply;
  49. opacity: .95;
  50. }
  51. & ~ .card-title{
  52. top: 50%;
  53. left: 50%;
  54. opacity: 1;
  55. -webkit-transition: all 1s;
  56. transition: all 1s;
  57. }
  58. }
  59. .card-title{
  60. pointer-events: none;
  61. position: absolute;
  62. left: 50%;
  63. top: 50%;
  64. opacity: 0;
  65. -webkit-transition: all 1s;
  66. transition: all 1s;
  67. -webkit-transform: translate(-50% , -50%);
  68. transform: translate(-50% , -50%);
  69. text-align: center;
  70. }
  71. }
  72. }
  73. //pageprojet
  74. .content-item{
  75. .e-content{
  76. display: -webkit-box;
  77. display: -ms-flexbox;
  78. display: flex;
  79. height: 100%;
  80. }
  81. .media{
  82. width: calc((100% / 3) * 2);
  83. img:not(:last-child){
  84. margin-bottom: 5px;
  85. }
  86. }
  87. .content{
  88. width: calc(100% / 3);
  89. min-width: 400px;
  90. height: calc(100vh - 40px);
  91. .txt{
  92. position: fixed;
  93. right: 0;
  94. width: calc(100% / 3);
  95. min-width: 400px;
  96. height: calc(100% - 90px);
  97. padding: 20px 30px 0px 30px;
  98. overflow-x: auto;
  99. &::-webkit-scrollbar {
  100. width: 12px;
  101. }
  102. /* Track */
  103. &::-webkit-scrollbar-track {
  104. -webkit-box-shadow: inset 0 0 6px white;
  105. border-radius: 10px;
  106. }
  107. /* Handle */
  108. &::-webkit-scrollbar-thumb {
  109. border-radius: 10px;
  110. background: white;
  111. -webkit-box-shadow: inset 0 0 0px white;
  112. }
  113. h3{
  114. margin: 0px 0 10px 0;
  115. }
  116. }
  117. .taxonomy{
  118. width: calc(100% / 3);
  119. min-width: 400px;
  120. height: auto;
  121. background: white;
  122. position:fixed;
  123. bottom: 0;
  124. border-top: 2px solid black;
  125. .tags{
  126. display: -webkit-box;
  127. display: -ms-flexbox;
  128. display: flex;
  129. -ms-flex-wrap: wrap;
  130. flex-wrap: wrap;
  131. margin: auto 0;
  132. padding-bottom: 10px;
  133. a{
  134. margin: 10px 10px 0 10px;
  135. &:first-child{
  136. margin-left: 30px!important;
  137. }
  138. }
  139. }
  140. }
  141. }
  142. }
  143. //page news
  144. .news{
  145. width: calc(100% / 5 );
  146. min-width: 340px;
  147. height: auto;
  148. padding: 20px;
  149. h3{
  150. pointer-events: none;
  151. margin-bottom: 10px;
  152. }
  153. }
  154. .about{
  155. width: calc(100% / 3 );
  156. min-width: 400px;
  157. height: auto;
  158. padding: 20px;
  159. h3{
  160. pointer-events: none;
  161. margin-bottom: 10px;
  162. }
  163. }
  164. }