education.scss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. .education-section {
  2. @include section-title-adjustment();
  3. .card {
  4. &:hover,
  5. &:focus {
  6. border-left: 2px solid get-light-color('accent-color');
  7. }
  8. }
  9. .education-info-table {
  10. width: 100%;
  11. border: none;
  12. background: none;
  13. .icon {
  14. width: 2rem;
  15. padding-left: 0;
  16. padding-right: 0;
  17. position: relative;
  18. .hline {
  19. position: absolute;
  20. left: 1rem;
  21. top: 0;
  22. background-color: get-light-color('accent-color');
  23. height: 100%;
  24. width: 2px;
  25. }
  26. .icon-holder {
  27. background-color: get-light-color('accent-color');
  28. border-radius: 50%;
  29. height: 2rem;
  30. width: 2rem;
  31. padding: 0.2rem;
  32. text-align: center;
  33. color: get-light-color('text-over-accent-color');
  34. position: relative;
  35. }
  36. }
  37. tr,
  38. th,
  39. td {
  40. border: none !important;
  41. padding: 0;
  42. background: none !important;
  43. }
  44. tr {
  45. &:hover {
  46. background: none !important;
  47. }
  48. &:first-child {
  49. .hline {
  50. height: 65%;
  51. top: auto;
  52. }
  53. }
  54. &:last-child {
  55. .hline {
  56. height: 50%;
  57. }
  58. }
  59. .line {
  60. width: 5%;
  61. padding-left: 0;
  62. padding-right: 0;
  63. div {
  64. height: 2px;
  65. margin-right: -1px;
  66. background-color: get-light-color('accent-color');
  67. }
  68. }
  69. .details {
  70. .degree-info {
  71. padding: 1rem;
  72. margin-top: 0.5rem;
  73. margin-bottom: 0.5rem;
  74. border-left: 2px solid get-light-color('accent-color');
  75. border-top: 1px solid get-light-color('bg-primary');
  76. border-bottom: 1px solid get-light-color('bg-primary');
  77. border-right: 1px solid get-light-color('bg-primary');
  78. border-radius: 5px;
  79. h5 {
  80. margin-bottom: 0.3rem;
  81. }
  82. .timeframe {
  83. color: get-light-color('muted-text-color');
  84. text-align: right;
  85. }
  86. .taken-courses {
  87. table {
  88. margin-left: 1rem;
  89. width: 100%;
  90. @include transition();
  91. background: none;
  92. border: none;
  93. tr,
  94. td,
  95. th {
  96. background: none;
  97. border: none;
  98. color: get-light-color('text-color');
  99. }
  100. tr {
  101. height: auto !important;
  102. }
  103. th {
  104. .course-name-header {
  105. width: 50%;
  106. }
  107. }
  108. }
  109. .hidden-course {
  110. display: none;
  111. @include transition();
  112. }
  113. ul {
  114. margin-bottom: 0;
  115. }
  116. }
  117. }
  118. }
  119. }
  120. }
  121. .hidden {
  122. display: none;
  123. }
  124. @include media('<=large') {
  125. .container {
  126. padding-left: 0;
  127. }
  128. }
  129. @include media('<=small') {
  130. padding-left: 0.5rem;
  131. padding-right: 0.5rem;
  132. .container {
  133. padding-right: 0;
  134. }
  135. .icon {
  136. display: none;
  137. }
  138. .line {
  139. display: none;
  140. }
  141. .timeframe {
  142. text-align: left;
  143. }
  144. }
  145. }
  146. .education-alt .degree-info {
  147. border-right: 2px solid get-light-color('accent-color');
  148. }
  149. html[data-theme='dark'] {
  150. .education-section {
  151. .card {
  152. &:hover,
  153. &:focus {
  154. border-left: 2px solid get-dark-color('accent-color');
  155. }
  156. }
  157. .education-info-table {
  158. .icon {
  159. .hline {
  160. background-color: get-dark-color('accent-color');
  161. }
  162. .icon-holder {
  163. background-color: get-dark-color('accent-color');
  164. color: get-dark-color('text-over-accent-color');
  165. }
  166. }
  167. tr {
  168. .line {
  169. div {
  170. background-color: get-dark-color('accent-color');
  171. }
  172. }
  173. .details {
  174. .degree-info {
  175. border-left: 2px solid get-dark-color('accent-color');
  176. border-top: 1px solid get-dark-color('bg-primary');
  177. border-bottom: 1px solid get-dark-color('bg-primary');
  178. border-right: 1px solid get-dark-color('bg-primary');
  179. .timeframe {
  180. color: get-dark-color('muted-text-color');
  181. }
  182. .taken-courses {
  183. table {
  184. tr,
  185. td,
  186. th {
  187. color: get-dark-color('text-color');
  188. }
  189. }
  190. }
  191. &:hover{
  192. border: 1px solid rgba(get-dark-color('accent-color'),0.2);
  193. border-left: 2px solid get-dark-color('accent-color');
  194. }
  195. }
  196. }
  197. }
  198. }
  199. }
  200. .education-alt .degree-info {
  201. border-right: 2px solid get-dark-color('accent-color');
  202. }
  203. }