_shortcodes.scss 2.6 KB

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