basic.scss 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // this is the css that is shared on many pages
  2. .text-center {
  3. text-align:center;
  4. }
  5. %border-shadow {
  6. box-shadow:5px 5px 10px #000000;
  7. }
  8. // most of the section > article uses this on the home page
  9. .display-text {
  10. max-width: 70%;
  11. margin:0 0 0 15%;
  12. line-height: 1.875em;
  13. h1,h2,h3,h4,h5,h6,h7 {
  14. text-align:center;
  15. }
  16. }
  17. %article-shared {
  18. background-color:white;
  19. margin:2em;
  20. padding:1em;
  21. max-width:37%;
  22. @extend %border-shadow;
  23. }
  24. // most of the sections on the home page use this
  25. .padding-above-and-below {
  26. padding:5em 0;
  27. .flex-no-wrap {
  28. display: -webkit-flex;
  29. display:flex;
  30. justify-content:center;
  31. flex-direction:row;
  32. }
  33. .flex {
  34. display: -webkit-flex;
  35. display:flex;
  36. justify-content:center;
  37. flex-flow:row wrap;
  38. }
  39. .narrow-article {
  40. @extend %article-shared;
  41. p {
  42. line-height:1.875em;
  43. }
  44. }
  45. }
  46. // for the mobile view
  47. @media (max-width:800px) {
  48. .display-text {
  49. max-width: 100%;
  50. margin: 1em;
  51. line-height: 1.875em;
  52. }
  53. .narrow-article {
  54. max-width:75% !important;
  55. }
  56. .padding-above-and-below {
  57. padding:5em 0;
  58. .flex-no-wrap {
  59. display: -webkit-flex;
  60. display:flex;
  61. justify-content:center;
  62. flex-direction:column;
  63. img {
  64. align-self:center;
  65. }
  66. }
  67. }
  68. }
  69. // for the desktop view
  70. @media (min-width:1500px) {
  71. .narrow-article {
  72. max-width:25% !important;
  73. padding:1em !important;
  74. margin:2em !important;
  75. background-color:white !important;
  76. }
  77. }