_shortcodes.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. }
  54. /**
  55. GraphQL field list
  56. */
  57. .gql-fields {
  58. @include code-block;
  59. font-family: 'Oxygen Mono', monospace;
  60. &::before {
  61. content: 'sdl';
  62. @include code-block-lang;
  63. }
  64. ul {
  65. padding: 0;
  66. margin: 0;
  67. list-style-type: none;
  68. font-family: 'Oxygen Mono', monospace;
  69. }
  70. em {
  71. color: #776e71;
  72. }
  73. }
  74. /**
  75. GraphQL enum values
  76. */
  77. .gql-enum-values {
  78. @include code-block;
  79. &::before {
  80. content: 'sdl';
  81. @include code-block-lang;
  82. }
  83. max-height: 80vh;
  84. overflow-y: auto;
  85. ul {
  86. padding: 0;
  87. margin: 0;
  88. list-style-type: none;
  89. font-family: 'Oxygen Mono', monospace;
  90. }
  91. em {
  92. color: #776e71;
  93. }
  94. }
  95. /**
  96. Tabs
  97. */
  98. .tab-container {
  99. border-left: 2px solid $gray-200;
  100. padding-left: 6px;
  101. margin-left: -8px;
  102. .tab-controls {
  103. button.tab-control {
  104. color: $gray-600;
  105. border: none;
  106. padding: 3px 6px;
  107. margin: 0 3px;
  108. border-bottom: 2px solid transparent;
  109. background: none;
  110. &.active {
  111. border-bottom-color: $brand-color;
  112. color: $gray-700;
  113. }
  114. }
  115. }
  116. .tab {
  117. display: none;
  118. &.active {
  119. display: block;
  120. }
  121. }
  122. }