_shortcodes.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. @import "variables";
  2. @import "mixins";
  3. /**
  4. Alert
  5. */
  6. .alert {
  7. border: 1px solid;
  8. border-radius: 2px;
  9. padding: 0 18px;
  10. margin-bottom: 12px;
  11. &.primary { border-color: $color-default; background: transparentize($color-default, 0.9); }
  12. &.danger { border-color: $color-danger; background: transparentize($color-danger, 0.9); }
  13. &.warning { border-color: $color-warning; background: transparentize($color-warning, 0.9); }
  14. &.success { border-color: $color-success; background: transparentize($color-success, 0.9); }
  15. }
  16. /**
  17. Member info for generated docs
  18. */
  19. .member-info {
  20. display: flex;
  21. align-items: center;
  22. margin-top: -16px;
  23. font-size: 14px;
  24. .kind-label {
  25. font-size: $font-size-12;
  26. background-color: #eaf9f5;
  27. color: #38979f;
  28. border-radius: 4px;
  29. padding: 0 6px;
  30. margin-right: 12px;
  31. }
  32. .type, .default {
  33. margin-right: 12px;
  34. a:link, a:visited {
  35. color: darken($brand-color, 20%);
  36. }
  37. }
  38. .type {
  39. code {
  40. }
  41. }
  42. .label{
  43. display: inline-block;
  44. color: $gray-600;
  45. }
  46. }
  47. /**
  48. Info on the generated document
  49. */
  50. .generation-info {
  51. font-size: $font-size-12;
  52. border-bottom: 1px dashed $gray-400;
  53. .label {
  54. color: $gray-600;
  55. }
  56. .file {
  57. margin-left: 12px;
  58. }
  59. }
  60. /**
  61. GraphQL field list
  62. */
  63. .gql-fields {
  64. @include code-block;
  65. font-family: 'Oxygen Mono', monospace;
  66. &::before {
  67. content: 'sdl';
  68. @include code-block-lang;
  69. }
  70. ul {
  71. padding: 0;
  72. margin: 0;
  73. list-style-type: none;
  74. font-family: 'Oxygen Mono', monospace;
  75. }
  76. em {
  77. color: #776e71;
  78. }
  79. }
  80. /**
  81. GraphQL enum values
  82. */
  83. .gql-enum-values {
  84. @include code-block;
  85. &::before {
  86. content: 'sdl';
  87. @include code-block-lang;
  88. }
  89. max-height: 80vh;
  90. overflow-y: auto;
  91. ul {
  92. padding: 0;
  93. margin: 0;
  94. list-style-type: none;
  95. font-family: 'Oxygen Mono', monospace;
  96. }
  97. em {
  98. color: #776e71;
  99. }
  100. }
  101. /**
  102. Tabs
  103. */
  104. .tab-container {
  105. border-left: 2px solid $gray-200;
  106. padding-left: 6px;
  107. margin-left: -8px;
  108. .tab-controls {
  109. button.tab-control {
  110. color: $gray-600;
  111. border: none;
  112. padding: 3px 6px;
  113. margin: 0 3px;
  114. border-bottom: 2px solid transparent;
  115. background: none;
  116. &.active {
  117. border-bottom-color: $brand-color;
  118. color: $gray-700;
  119. }
  120. }
  121. }
  122. .tab {
  123. display: none;
  124. &.active {
  125. display: block;
  126. }
  127. }
  128. }