checkBoxWindow.scss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. $header-color: #d4d5d7;
  2. $main-title-color: #3b3b3b;
  3. $main-text-color: #101010;
  4. $main-color: #789084;
  5. $hover-color: #b1e8ca;
  6. $opacity-color: rgba(17,17,17,0.8);
  7. .check-container {
  8. position: absolute;
  9. right: 15px;
  10. left: 15px;
  11. top: 55px;
  12. display: flex;
  13. flex-wrap: wrap;
  14. justify-content: space-evenly;
  15. background-color: $opacity-color;
  16. margin: 5% auto;
  17. width: 85%;
  18. font-size: 0.8em;
  19. z-index: 2;
  20. }
  21. .check-speciality {
  22. display: flex;
  23. flex-direction: column;
  24. flex-wrap: nowrap;
  25. text-align: start;
  26. width: 30%;
  27. margin: 10px;
  28. padding: 5px 10px;
  29. border: 1px solid $main-color;
  30. .check-elem {
  31. margin: 5px 0;
  32. }
  33. }
  34. input[type = "checkbox"] {
  35. display: none;
  36. }
  37. .check {
  38. padding-left: 20px;
  39. }
  40. .check::before {
  41. content: "";
  42. display: inline-block;
  43. width: 20px;
  44. height: 20px;
  45. background-color: $opacity-color;
  46. border: 1px solid $main-color;
  47. border-radius: 3px;
  48. vertical-align: middle;
  49. margin-left: -10px;
  50. margin-right: 10px;
  51. }
  52. input[type = "checkbox"]:checked + .check::before {
  53. content: "";
  54. color: $main-color;
  55. text-align: center;
  56. font-size: 16px;
  57. background-color: $hover-color;
  58. // background-image: url(../assets/images/checked.png);
  59. font-weight: bold;
  60. vertical-align: top;
  61. }
  62. .wrap-check-off {
  63. position: fixed;
  64. top: 0;
  65. left: 0;
  66. width: 100%;
  67. height: 100%;
  68. background-color: $opacity-color;
  69. opacity: 0.5;
  70. }