achievements.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. .achievements-section {
  2. @include section-title-adjustment();
  3. .container {
  4. padding-top: 0.5rem;
  5. }
  6. #gallery {
  7. .achievement-entry {
  8. margin-top: 5px;
  9. margin-bottom: 5px;
  10. margin-left: 7px;
  11. margin-right: 7px;
  12. z-index: 1;
  13. background-color: get-light-color('bg-secondary');
  14. background-size: cover;
  15. background-repeat: no-repeat;
  16. background-position: center;
  17. position: relative;
  18. overflow: hidden;
  19. @include transition();
  20. .title {
  21. color: get-light-color('inverse-text-color');
  22. background-color: rgba(get-light-color('bg-primary-inverse'), 0.7);
  23. opacity: 0;
  24. padding: 5px;
  25. position: absolute;
  26. bottom: 0px;
  27. width: 100%;
  28. margin-bottom: 0px;
  29. bottom: -5px;
  30. }
  31. &:hover {
  32. cursor: pointer;
  33. transform: scale(1.1);
  34. @include transition();
  35. z-index: 20000;
  36. .svg-inline--fa {
  37. opacity: 1;
  38. font-size: 1rem;
  39. @include transition();
  40. }
  41. .title {
  42. opacity: 1;
  43. bottom: 0px;
  44. @include transition();
  45. }
  46. }
  47. }
  48. .achievement-details {
  49. cursor: pointer;
  50. z-index: 1;
  51. height: 75vh !important;
  52. opacity: 1 !important;
  53. transition: none !important;
  54. transform: none !important;
  55. .img-type-1 .svg-inline--fa,
  56. .img-type-2 .svg-inline--fa {
  57. margin-top: 0px !important;
  58. transition: none !important;
  59. float: right;
  60. }
  61. }
  62. .img-type-1 {
  63. height: 300px;
  64. .svg-inline--fa {
  65. margin-top: 135px;
  66. }
  67. }
  68. .img-type-2 {
  69. height: 146px;
  70. margin-bottom: 8px;
  71. .svg-inline--fa {
  72. margin-top: 50px;
  73. }
  74. }
  75. .svg-inline--fa {
  76. color: get-light-color('muted-text-color');
  77. background-color: rgba(get-light-color('bg-primary-inverse'), 0.7);
  78. padding: 10px;
  79. font-size: 0rem;
  80. opacity: 0;
  81. }
  82. .caption {
  83. background-color: rgba(get-light-color('bg-primary-inverse'), 0.7);
  84. bottom: 1rem;
  85. left: 1rem;
  86. color: get-light-color('inverse-text-color');
  87. padding: 15px;
  88. position: absolute;
  89. @include transition();
  90. h4 {
  91. color: get-light-color('inverse-text-color');
  92. }
  93. p {
  94. font-size: 16px;
  95. font-weight: 300;
  96. color: get-light-color('inverse-text-color');
  97. }
  98. }
  99. @include media('<=medium') {
  100. .container {
  101. max-width: 100%;
  102. }
  103. .col-md-6 {
  104. flex: 50%;
  105. width: 50%;
  106. }
  107. }
  108. @include media('<=small') {
  109. #gallery .achievement-entry:hover {
  110. transform: scale(1.05);
  111. }
  112. }
  113. }
  114. }
  115. html[data-theme='dark'] {
  116. .achievements-section {
  117. #gallery {
  118. .achievement-entry {
  119. background-color: get-dark-color('bg-secondary');
  120. .title {
  121. color: get-dark-color('inverse-text-color');
  122. background-color: rgba(get-dark-color('bg-primary-inverse'), 0.7);
  123. }
  124. }
  125. .svg-inline--fa {
  126. color: get-dark-color('muted-text-color');
  127. background-color: rgba(get-dark-color('bg-primary-inverse'), 0.7);
  128. }
  129. .caption {
  130. background-color: rgba(get-dark-color('bg-primary-inverse'), 0.7);
  131. color: get-dark-color('inverse-text-color');
  132. h4 {
  133. color: get-dark-color('inverse-text-color');
  134. }
  135. p {
  136. color: get-dark-color('inverse-text-color');
  137. }
  138. }
  139. }
  140. }
  141. }