_shortcodes.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. @media screen and (max-width: $sm-breakpoint) {
  23. flex-direction: column;
  24. align-items: flex-start;
  25. }
  26. margin-top: -16px;
  27. margin-left: 8px;
  28. font-size: $font-size-12;
  29. .kind-label {
  30. font-size: $font-size-12;
  31. background-color: #eaf9f5;
  32. color: #38979f;
  33. border-radius: 4px;
  34. padding: 0 6px;
  35. margin-right: 12px;
  36. }
  37. .type, .default {
  38. margin-right: 12px;
  39. a:link, a:visited {
  40. color: darken($brand-color, 20%);
  41. }
  42. }
  43. .type {
  44. code {
  45. }
  46. }
  47. .label{
  48. display: inline-block;
  49. color: $gray-600;
  50. }
  51. }
  52. /**
  53. Member description for generated docs
  54. */
  55. .member-description {
  56. margin-top: 3px;
  57. margin-left: 8px;
  58. margin-bottom: 32px;
  59. }
  60. /**
  61. Info on the generated document
  62. */
  63. .generation-info {
  64. font-size: $font-size-12;
  65. margin-top: -18px;
  66. border-top: 1px dashed $gray-400;
  67. .label {
  68. color: $gray-600;
  69. }
  70. .file {
  71. margin-left: 12px;
  72. }
  73. }
  74. /**
  75. GraphQL field list
  76. */
  77. .gql-fields {
  78. @include code-block;
  79. font-family: 'Oxygen Mono', monospace;
  80. &::before {
  81. content: 'sdl';
  82. @include code-block-lang;
  83. }
  84. ul {
  85. padding: 0;
  86. margin: 0;
  87. list-style-type: none;
  88. font-family: 'Oxygen Mono', monospace;
  89. }
  90. em {
  91. color: #776e71;
  92. }
  93. }
  94. /**
  95. GraphQL enum values
  96. */
  97. .gql-enum-values {
  98. @include code-block;
  99. &::before {
  100. content: 'sdl';
  101. @include code-block-lang;
  102. }
  103. max-height: 80vh;
  104. overflow-y: auto;
  105. ul {
  106. padding: 0;
  107. margin: 0;
  108. list-style-type: none;
  109. font-family: 'Oxygen Mono', monospace;
  110. }
  111. em {
  112. color: #776e71;
  113. }
  114. }
  115. /**
  116. Tabs
  117. */
  118. .tab-container {
  119. border-left: 2px solid $gray-200;
  120. padding-left: 6px;
  121. margin-left: -8px;
  122. .tab-controls {
  123. button.tab-control {
  124. color: $gray-600;
  125. border: none;
  126. padding: 3px 6px;
  127. margin: 0 3px;
  128. border-bottom: 2px solid transparent;
  129. background: none;
  130. &.active {
  131. border-bottom-color: $brand-color;
  132. color: $gray-700;
  133. }
  134. }
  135. }
  136. .tab {
  137. display: none;
  138. &.active {
  139. display: block;
  140. }
  141. }
  142. }