admin.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. @import "variables";
  2. .admin-toolbox {
  3. position: absolute;
  4. height: 40px;
  5. width: 40px;
  6. right: 10px;
  7. bottom: 10px;
  8. > input[type="checkbox"] {
  9. display: none;
  10. + .toolbox {
  11. opacity: 0;
  12. position: absolute;
  13. bottom: 0;
  14. min-width: 300px;
  15. transform: translateX(100%);
  16. background-color:$color-grey;
  17. border-radius: $border-radius;
  18. box-shadow: 2px 2px 4px #182410;
  19. transition: transform 250ms ease-in-out, opacity 250ms ease-in-out;
  20. .tool-group {
  21. display: flex;
  22. margin: 15px;
  23. }
  24. .tool-button {
  25. font-size: 1rem;
  26. padding: 5px;
  27. margin: 5px;
  28. color: $color-white;
  29. background-color: $color1;
  30. border-radius: 4px;
  31. &:hover {
  32. cursor: pointer;
  33. background-color: $color2;
  34. }
  35. }
  36. h4 {
  37. color: $color-black;
  38. margin: 20px 20px -15px 20px;
  39. }
  40. }
  41. &:checked {
  42. + .toolbox {
  43. opacity: 1;
  44. transform: translateX(calc(-100% - 10px));
  45. }
  46. }
  47. }
  48. > .toggle-button {
  49. position: absolute;
  50. left: 0;
  51. top: 0;
  52. font-size: 1.6rem;
  53. width: 100%;
  54. height: 100%;
  55. display: flex;
  56. justify-content: center;
  57. align-items: center;
  58. border-radius: 5px;
  59. color: $color-green-50;
  60. background-color: $color-black;
  61. &:hover {
  62. background-color: $color1;
  63. cursor: pointer;
  64. }
  65. }
  66. }
  67. .material-link-list {
  68. .material-link {
  69. display: grid;
  70. grid-template-columns: 4fr 2fr 1fr;
  71. padding: 5px;
  72. grid-gap: 15px;
  73. &:nth-child(odd) {
  74. background-color: $color-purple-100;
  75. }
  76. &:hover {
  77. cursor: pointer;
  78. background-color: $color-purple-800;
  79. color: $color-purple-50;
  80. }
  81. }
  82. }
  83. main {
  84. article {
  85. &.main-article {
  86. position: relative;
  87. .fas {
  88. position: absolute;
  89. font-size: 1.4rem;
  90. padding: 5px;
  91. width: 32px;
  92. height: 32px;
  93. display: flex;
  94. justify-content: center;
  95. align-items: center;
  96. border-radius: $border-radius;
  97. margin: 5px;
  98. top: 5px;
  99. right: 5px;
  100. &:hover {
  101. background-color: rgba(130, 182, 130, 0.603);
  102. cursor: pointer;
  103. color: green;
  104. }
  105. }
  106. .fa-pencil-alt {
  107. left: 5px;
  108. right: unset;
  109. }
  110. }
  111. }
  112. }