index.less 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. @import '../../app.less';
  2. .g-special-radio-wrapper {
  3. float: left;
  4. min-width: 60px;
  5. overflow: hidden;
  6. .g-special-radio {
  7. display: block;
  8. text-align: center;
  9. line-height: 20px;
  10. padding: 14px 10px;
  11. background: #ECEDEE;
  12. color: #686872;
  13. border-radius: 6px;
  14. font-size: 18px;
  15. position: relative;
  16. overflow: hidden;
  17. cursor: pointer;
  18. i {
  19. display: none;
  20. position: absolute;
  21. bottom: 0;
  22. right: 0;
  23. color: #fff;
  24. z-index: 1;
  25. font-size: 15px;
  26. transform: scale(0.8);
  27. }
  28. }
  29. }
  30. .g-special-radio-wrapper.checked {
  31. .g-special-radio {
  32. background: #E7F1FD;
  33. color: #4299FF;
  34. i {
  35. display: block;
  36. }
  37. }
  38. .g-special-radio::after {
  39. content: '';
  40. display: inline-block;
  41. position: absolute;
  42. bottom: 0;
  43. right: 0;
  44. border: 13px solid;
  45. border-color: transparent #4299FF #4299FF transparent;
  46. }
  47. }
  48. .g-special-radio-wrapper.theme {
  49. .g-special-radio {
  50. border: 1px solid #ECEDEE;
  51. }
  52. }
  53. .g-special-radio-wrapper.checked.theme {
  54. .g-special-radio {
  55. background: #40A8E2;
  56. color: #fff;
  57. border: 1px solid #40A8E2;
  58. i {
  59. color: #40A8E2;
  60. }
  61. }
  62. .g-special-radio::after {
  63. border-color: transparent #fff #fff transparent;
  64. }
  65. }
  66. .g-special-radio-group {
  67. overflow: hidden;
  68. margin: 0 -7.5px;
  69. .g-special-radio-wrapper {
  70. margin: 0 7.5px;
  71. margin-bottom: 30px;
  72. }
  73. }
  74. .g-radio-wrapper {
  75. display: inline-block;
  76. .g-radio {
  77. display: inline-block;
  78. text-align: center;
  79. line-height: 28px;
  80. background: #ECEDEE;
  81. color: #686872;
  82. padding: 0 18px;
  83. border-radius: 14px;
  84. font-size: 12px;
  85. }
  86. }
  87. .g-radio-wrapper.checked {
  88. .g-radio {
  89. background: #E7F5FD;
  90. color: #40A8E2;
  91. }
  92. }
  93. .g-radio-group {
  94. margin: 0 -7.5px;
  95. .g-radio-wrapper {
  96. margin: 0 7.5px;
  97. }
  98. }