_answers.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. .answer-item {
  2. @include spacing(b 2);
  3. &__title {
  4. @include font-size(h5);
  5. @include spacing(b .75);
  6. }
  7. &__value {
  8. @include font-size(small);
  9. text-transform: uppercase;
  10. }
  11. }
  12. .question__options__item {
  13. .question__fakenews & {
  14. @include spacing;
  15. .checkbox-label {
  16. font-weight: 500;
  17. }
  18. }
  19. &--marked {
  20. @include color(error);
  21. .checkbox-label::before {
  22. @include border-color(error);
  23. border-width: 1px;
  24. border-style: solid;
  25. }
  26. .checkbox-label::after {
  27. @include absolute(t 0, l 0);
  28. @include font-size(h3);
  29. line-height: 1;
  30. content: '\2715';
  31. display: block;
  32. width: 20px;
  33. height: 20px;
  34. text-align: center;
  35. }
  36. }
  37. &--correct {
  38. @include color(correct);
  39. .checkbox-label::before {
  40. @include border-color(correct);
  41. border-width: 1px;
  42. border-style: solid;
  43. }
  44. }
  45. &--checked {
  46. .checkbox-label::before {
  47. @include border-color(correct);
  48. border-width: 1px;
  49. border-style: solid;
  50. }
  51. .checkbox-label::after {
  52. @include absolute(t 0, l 0);
  53. @include font-size(h3);
  54. @include color(correct);
  55. line-height: 1;
  56. content: '\2715';
  57. display: block;
  58. width: 20px;
  59. height: 20px;
  60. text-align: center;
  61. }
  62. }
  63. &--selected {
  64. .checkbox-label::after {
  65. @include absolute(t 0, l 0);
  66. @include font-size(h3);
  67. @include color(default);
  68. line-height: 1;
  69. content: '\2715';
  70. display: block;
  71. width: 20px;
  72. height: 20px;
  73. text-align: center;
  74. }
  75. }
  76. &--incorrect {
  77. @include color(error);
  78. }
  79. }
  80. // mod2
  81. .question__answer__item {
  82. @include spacing(t 1);
  83. text-align: center;
  84. &--correct {
  85. @include color(correct);
  86. }
  87. &--incorrect {
  88. @include color(error);
  89. }
  90. span {
  91. @include font-size(h5);
  92. }
  93. }
  94. .checkbox-feedback {
  95. @include color(default);
  96. @include spacing-inner(l 1.3);
  97. }