index.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. .nut-theme-dark {
  2. .nut-cell {
  3. background: $dark-background2;
  4. color: $dark-color;
  5. box-shadow: none;
  6. }
  7. }
  8. .nut-cell {
  9. position: relative;
  10. display: flex;
  11. width: 100%;
  12. line-height: $cell-line-height;
  13. padding: $cell-padding;
  14. background: $cell-background;
  15. border-radius: $cell-border-radius;
  16. box-shadow: 0px 1px 7px 0px rgba(237, 238, 241, 1);
  17. font-size: $cell-title-font;
  18. color: $cell-color;
  19. margin: 10px 0;
  20. box-sizing: border-box;
  21. &--center {
  22. align-items: center;
  23. }
  24. &--large {
  25. font-size: $cell-large-title-font;
  26. padding: $cell-large-padding;
  27. .nut-cell__title-desc {
  28. font-size: $cell-large-title-desc-font;
  29. }
  30. }
  31. &:last-child {
  32. &::after {
  33. border: 0 !important;
  34. }
  35. }
  36. &::after {
  37. position: absolute;
  38. box-sizing: border-box;
  39. content: ' ';
  40. pointer-events: none;
  41. right: $cell-after-right;
  42. bottom: 0;
  43. left: 16px;
  44. transform: scaleY(0.5);
  45. }
  46. &:active::before {
  47. opacity: 0.1;
  48. }
  49. &--clickable {
  50. cursor: pointer;
  51. &::before {
  52. position: absolute;
  53. top: 50%;
  54. left: 50%;
  55. width: 100%;
  56. height: 100%;
  57. background-color: $black;
  58. border: inherit;
  59. border-color: $black;
  60. border-radius: inherit;
  61. transform: translate(-50%, -50%);
  62. opacity: 0;
  63. content: ' ';
  64. }
  65. }
  66. &__icon {
  67. display: flex;
  68. flex-direction: row;
  69. margin-right: $cell-default-icon-margin;
  70. }
  71. &__title {
  72. display: flex;
  73. flex-direction: column;
  74. flex: 1;
  75. &-desc {
  76. font-size: $cell-title-desc-font;
  77. }
  78. }
  79. &__value {
  80. display: inline-block;
  81. text-align: right;
  82. flex: 1;
  83. font-size: $cell-desc-font;
  84. color: $cell-desc-color;
  85. &--alone {
  86. color: $cell-color;
  87. }
  88. }
  89. &__link {
  90. color: #979797;
  91. }
  92. }