app.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /* THEME SPECIFIC STYLES */
  2. .contents {
  3. color: mc('grey', '800');
  4. h1 {
  5. padding-left: 24px;
  6. color: mc('blue', '800');
  7. margin-top: 1rem;
  8. position: relative;
  9. &::after {
  10. content: '';
  11. position: absolute;
  12. bottom: 0;
  13. left: 0;
  14. width: 100%;
  15. height: 2px;
  16. background: linear-gradient(to right, mc('theme', 'primary'), rgba(mc('theme', 'primary'), 0));
  17. }
  18. & + h2, & + h3 {
  19. margin-top: 8px;
  20. }
  21. }
  22. h2 {
  23. margin-left: 24px;
  24. padding: 8px 0 0 0;
  25. color: mc('grey', '800');
  26. position: relative;
  27. &::after {
  28. content: '';
  29. position: absolute;
  30. bottom: 0;
  31. left: 0;
  32. width: 100%;
  33. height: 1px;
  34. background: linear-gradient(to right, mc('grey', '700'), rgba(mc('grey', '700'), 0));
  35. }
  36. & + h3 {
  37. margin-top: 8px;
  38. }
  39. }
  40. h3 {
  41. margin-left: 24px;
  42. padding: 8px 0 0 0;
  43. color: mc('grey', '700');
  44. position: relative;
  45. &::after {
  46. content: '';
  47. position: absolute;
  48. bottom: 0;
  49. left: 0;
  50. width: 100%;
  51. height: 1px;
  52. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0));
  53. }
  54. }
  55. p {
  56. padding: 1rem 24px 0 24px;
  57. margin: 0;
  58. text-align: justify;
  59. }
  60. code {
  61. background-color: transparent;
  62. font-family: 'Source Code Pro', monospace;
  63. font-weight: normal;
  64. font-size: 1rem;
  65. &::before, &::after {
  66. display: none;
  67. }
  68. }
  69. .prismjs{
  70. border: none;
  71. border-radius: 5px;
  72. box-shadow: initial;
  73. background-color: mc('grey', '900');
  74. padding: 1rem 1rem 1rem 3rem;
  75. margin: 1rem 24px;
  76. > code {
  77. box-shadow: initial;
  78. display: block;
  79. font-size: .85rem;
  80. font-family: 'Source Code Pro', monospace;
  81. &:after, &:before {
  82. content: initial;
  83. letter-spacing: initial;
  84. }
  85. }
  86. }
  87. }