main.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. // This is the intro text on the home page
  2. %title-text-shared {
  3. text-align: center;
  4. font-size: xxx-large;
  5. margin:0;
  6. font:28px normal;
  7. }
  8. #title-text {
  9. @extend %title-text-shared;
  10. }
  11. // this gives the main page some margin on the left and right.
  12. // I may not be using this at all...
  13. .padding-left-and-right {
  14. padding:0 1em;
  15. }
  16. %blue-button-shared {
  17. background-color: rgba(36, 44, 108, 1);
  18. border: solid transparent 0px;
  19. color:white;
  20. padding: 1em;
  21. cursor: pointer;
  22. box-shadow:5px 5px 10px #000000;
  23. }
  24. .blue-button {
  25. @extend %blue-button-shared;
  26. }
  27. .blue-button a {
  28. color:white;
  29. text-decoration:none;
  30. }
  31. @keyframes button-hover {
  32. from {
  33. box-shadow:5px 5px 10px #000000;
  34. }
  35. to {
  36. box-shadow:10px 10px 10px #000000, 2px 3px 5px rgba(36, 44, 108, 0.3) inset;
  37. }
  38. }
  39. .blue-button:hover {
  40. @extend %blue-button-shared;
  41. animation-name:button-hover;
  42. animation-duration:1s;
  43. animation-fill-mode: forwards;
  44. }
  45. .background-grey {
  46. background-color:grey;
  47. }
  48. .background-white {
  49. background-color:white
  50. }
  51. // this is needed for the articles in the classes section of the front page
  52. img {
  53. max-width:100%;
  54. }
  55. .img-center {
  56. display:block;
  57. margin:auto;
  58. }
  59. .parallax {
  60. /* Create the parallax scrolling effect */
  61. background-attachment: fixed;
  62. background-position: center;
  63. background-repeat: no-repeat;
  64. background-size: cover;
  65. }
  66. .text-white {
  67. color:white;
  68. }
  69. // this is for the laptop view
  70. @media (min-width:800px){
  71. #title-text {
  72. @extend %title-text-shared;
  73. max-width:50%;
  74. padding-left: 25%;
  75. }
  76. }
  77. // for the mobile view
  78. @media (max-width:800px) {
  79. #title-text {
  80. @extend %title-text-shared;
  81. max-width:50%;
  82. padding-left: 25%;
  83. font:35px normal;
  84. }
  85. h1,h2,h3,h4,h5,h6,h7 {
  86. text-align:center;
  87. }
  88. .hidden-mobile {
  89. display:none;
  90. }
  91. .flex {
  92. flex-direction:column;
  93. align-items:center;
  94. }
  95. }