A flat-file CMS written in Python and Flask
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

style.scss 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /* global */
  2. * {
  3. box-sizing: border-box;
  4. margin: 0;
  5. padding: 0;
  6. }
  7. ul {
  8. list-style: none;
  9. }
  10. a {
  11. text-decoration: none;
  12. }
  13. .heading {
  14. border-bottom: 1px solid #000000;
  15. font-size: 24px;
  16. margin-bottom: 15px;
  17. }
  18. /* layout */
  19. .container {
  20. display: flex;
  21. }
  22. .main {
  23. display: flex;
  24. flex: 1;
  25. justify-content: center;
  26. padding: 20px;
  27. }
  28. .main__container {
  29. width: 768px;
  30. }
  31. /* sidebar */
  32. .sidebar {
  33. background: #496893;
  34. color: #ffffff;
  35. min-height: 100vh;
  36. padding: 20px 0;
  37. width: 150px;
  38. }
  39. .sidebar__title {
  40. color: #ffffff;
  41. font-size: 24px;
  42. }
  43. .sidebar__title,
  44. .nav__item {
  45. padding: 5px 10px;
  46. }
  47. .nav__item:hover {
  48. background: #ffffff;
  49. }
  50. .nav__item:hover a {
  51. color: #496893;
  52. }
  53. .nav__link {
  54. color: white;
  55. }
  56. .nav__link:hover {
  57. text-decoration: underline;
  58. }
  59. /* forms */
  60. .form__field {
  61. display: flex;
  62. flex-direction: column;
  63. margin: 5px 0;
  64. width: 100%;
  65. }
  66. .form__field,
  67. .form__label {
  68. margin-bottom: 5px;
  69. }
  70. .form__date-field,
  71. .form__textarea,
  72. .form__text-field {
  73. border: 1px solid #e8e8e8;
  74. font-family: serif;
  75. font-size: 16px;
  76. padding: 5px;
  77. }
  78. .form__textarea {
  79. resize: vertical;
  80. }
  81. .form__submit {
  82. border: 1px solid #e8e8e8;
  83. padding: 5px 10px;
  84. }
  85. /* post listing */
  86. .post-listing__item {
  87. position: relative;
  88. }
  89. .post-listing__item--changed:before {
  90. background-color: red;
  91. border-radius: 50%;
  92. content: '';
  93. display: block;
  94. height: 10px;
  95. left: -15px;
  96. position: absolute;
  97. top: 3px;
  98. width: 10px;
  99. }