education.scss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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. .custom-section {
  118. .custom-content {
  119. padding-bottom: 0.5em;
  120. }
  121. }
  122. }
  123. }
  124. }
  125. }
  126. .hidden {
  127. display: none;
  128. }
  129. @include media('<=large') {
  130. .container {
  131. padding-left: 0;
  132. }
  133. }
  134. @include media('<=small') {
  135. padding-left: 0.5rem;
  136. padding-right: 0.5rem;
  137. .container {
  138. padding-right: 0;
  139. }
  140. .icon {
  141. display: none;
  142. }
  143. .line {
  144. display: none;
  145. }
  146. .timeframe {
  147. text-align: left;
  148. }
  149. }
  150. }
  151. .education-alt .degree-info {
  152. border-right: 2px solid get-light-color('accent-color');
  153. }
  154. html[data-theme='dark'] {
  155. .education-section {
  156. .card {
  157. &:hover,
  158. &:focus {
  159. border-left: 2px solid get-dark-color('accent-color');
  160. }
  161. }
  162. .education-info-table {
  163. .icon {
  164. .hline {
  165. background-color: get-dark-color('accent-color');
  166. }
  167. .icon-holder {
  168. background-color: get-dark-color('accent-color');
  169. color: get-dark-color('text-over-accent-color');
  170. }
  171. }
  172. tr {
  173. .line {
  174. div {
  175. background-color: get-dark-color('accent-color');
  176. }
  177. }
  178. .details {
  179. .degree-info {
  180. border-left: 2px solid get-dark-color('accent-color');
  181. border-top: 1px solid get-dark-color('bg-primary');
  182. border-bottom: 1px solid get-dark-color('bg-primary');
  183. border-right: 1px solid get-dark-color('bg-primary');
  184. .timeframe {
  185. color: get-dark-color('muted-text-color');
  186. }
  187. .taken-courses {
  188. table {
  189. tr,
  190. td,
  191. th {
  192. color: get-dark-color('text-color');
  193. }
  194. }
  195. }
  196. &:hover{
  197. border: 1px solid rgba(get-dark-color('accent-color'),0.2);
  198. border-left: 2px solid get-dark-color('accent-color');
  199. }
  200. }
  201. .custom-section {
  202. .custom-content {
  203. color: get-dark-color('text-color');
  204. }
  205. }
  206. }
  207. }
  208. }
  209. }
  210. .education-alt .degree-info {
  211. border-right: 2px solid get-dark-color('accent-color');
  212. }
  213. }