No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_content.scss 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. .docs {
  2. background: #FFF;
  3. h6 {
  4. font-size: 1rem;
  5. font-weight: $font-weight-bold;
  6. }
  7. }
  8. .ct-content {
  9. order: 1;
  10. >h2[id],
  11. >h3[id],
  12. >h4[id] {
  13. pointer-events: none;
  14. >div,
  15. >a {
  16. pointer-events: auto;
  17. }
  18. &::before {
  19. display: block;
  20. height: 6rem;
  21. margin-top: -6rem;
  22. visibility: hidden;
  23. content: "";
  24. }
  25. }
  26. >table {
  27. width: 100%;
  28. max-width: 100%;
  29. margin-bottom: 1rem;
  30. @include media-breakpoint-down(md) {
  31. display: block;
  32. overflow-x: auto;
  33. -ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057
  34. &.table-bordered {
  35. border: 0;
  36. }
  37. } // Cells
  38. >thead,
  39. >tbody,
  40. >tfoot {
  41. >tr {
  42. >th,
  43. >td {
  44. padding: $table-cell-padding;
  45. vertical-align: top;
  46. border: 1px solid $table-border-color;
  47. >p:last-child {
  48. margin-bottom: 0;
  49. }
  50. }
  51. }
  52. } // Prevent breaking of code (e.g., Grunt tasks list)
  53. td:first-child>code {
  54. white-space: nowrap;
  55. }
  56. }
  57. }
  58. //
  59. // Docs sections
  60. //
  61. .ct-content {
  62. >h2:not(:first-child) {
  63. margin-top: 3rem;
  64. font-size: 1.5rem;
  65. font-weight: $font-weight-bold;
  66. }
  67. >h3 {
  68. margin-top: 2.5rem;
  69. font-size: 1.25rem;
  70. font-weight: $font-weight-bold;
  71. }
  72. >ul li,
  73. >ol li {
  74. margin-bottom: .25rem;
  75. }
  76. @include media-breakpoint-up(lg) {
  77. >ul,
  78. >ol,
  79. >p {
  80. max-width: 80%;
  81. }
  82. }
  83. }
  84. .ct-page-title {
  85. padding-left: 1.25rem;
  86. border-left: 2px solid $ct-primary;
  87. margin-bottom: 1.5rem;
  88. }
  89. .ct-title {
  90. margin-top: 1rem;
  91. margin-bottom: .5rem;
  92. font-weight: 300;
  93. @include media-breakpoint-up(sm) {
  94. font-size: 1.5rem;
  95. font-weight: $font-weight-bold;
  96. }
  97. }
  98. .ct-lead {
  99. color: rgb(59, 69, 78);
  100. font-weight: 500;
  101. @include media-breakpoint-up(sm) {
  102. max-width: 80%;
  103. margin-bottom: 1rem;
  104. font-size: .875rem;
  105. }
  106. }
  107. .ct-text-purple {
  108. color: $ct-primary;
  109. }
  110. .ct-text-purple-bright {
  111. color: $ct-primary-bright;
  112. }
  113. // Docs code example tabs
  114. .ct-tabs-example {
  115. .nav-link i {
  116. margin-right: 5px;
  117. }
  118. }
  119. // Color swatches
  120. .color-swatch {
  121. margin: 1rem 0;
  122. border-radius: .25rem;
  123. background-color: #F4F5F7;
  124. }
  125. .color-swatch:after {
  126. content: " ";
  127. display: table;
  128. clear: both;
  129. }
  130. .color-swatch-header {
  131. position: relative;
  132. height: 0;
  133. padding-bottom: 50%;
  134. border-radius: .25rem .25rem 0 0;
  135. border: 1px solid transparent;
  136. }
  137. .color-swatch-header.is-light {
  138. border-color: #C1C7D0;
  139. }
  140. .color-swatch-header .pass-fail {
  141. position: absolute;
  142. width: 100%;
  143. bottom: 0;
  144. }
  145. .color-swatch-header .pass-fail-item-wrap {
  146. position: relative;
  147. float: left;
  148. left: 50%;
  149. -webkit-transform: translateX(-50%);
  150. -ms-transform: translateX(-50%);
  151. transform: translateX(-50%);
  152. }
  153. .color-swatch-header .pass-fail-item-group {
  154. display: inline-block;
  155. padding: 0 5px;
  156. }
  157. .color-swatch-header .pass-fail-item {
  158. float: left;
  159. display: inline-block;
  160. text-align: center;
  161. padding: 2px;
  162. }
  163. .color-swatch-header .pass-fail-item.white .example {
  164. color: #fff;
  165. }
  166. .color-swatch-header .pass-fail-item.small .example {
  167. font-size: 10px;
  168. }
  169. .color-swatch-header .pass-fail-item .lozenge {
  170. font-size: 11px;
  171. text-transform: uppercase;
  172. font-weight: 600;
  173. background: #000;
  174. color: #fff;
  175. padding: 2px 4px;
  176. line-height: 10px;
  177. border-radius: 4px;
  178. letter-spacing: 0.05em;
  179. }
  180. .color-swatch-body {
  181. position: relative;
  182. left: 50%;
  183. float: left;
  184. padding: 10px 0;
  185. -webkit-transform: translateX(-50%);
  186. -ms-transform: translateX(-50%);
  187. transform: translateX(-50%);
  188. }
  189. .color-swatch-body .prop-item-wrap {
  190. float: left;
  191. padding: 0 15px;
  192. min-width: 65px;
  193. }
  194. .color-swatch-body .prop-item {
  195. padding: 15px 0;
  196. }
  197. .color-swatch-body .prop-item .label {
  198. font-size: 11px;
  199. color: #62748C;
  200. text-transform: uppercase;
  201. line-height: 16px;
  202. }
  203. .color-swatch-body .prop-item .value {
  204. font-size: 14px;
  205. }
  206. .table-colors {
  207. font-weight: 600;
  208. font-size: 16px;
  209. width: 100%;
  210. }
  211. .table-colors td,
  212. .table-colors:first-child td,
  213. .table-colors td:first-child,
  214. .table-colors:first-child td:first-child,
  215. .table-colors td:last-child,
  216. .table-colors:first-child td:last-child {
  217. background: $ct-primary-light;
  218. border-bottom: 1px solid rgba(0, 0, 0, .1);
  219. padding: 10px;
  220. }
  221. .table-colors tr:last-child td,
  222. .table-colors:first-child tr:last-child td {
  223. border-bottom: none;
  224. }
  225. .table-colors td:nth-child(1),
  226. .table-colors:first-child td:nth-child(1) {
  227. line-height: 40px;
  228. }
  229. .table-colors .swatch,
  230. .table-colors:first-child .swatch {
  231. float: left;
  232. height: 40px;
  233. width: 40px;
  234. margin-right: 20px;
  235. display: inline-block;
  236. border-radius: 4px;
  237. border: 1px solid transparent;
  238. }
  239. .table-colors .swatch.is-light,
  240. .table-colors:first-child .swatch.is-light {
  241. border-color: #C1C7D0;
  242. }
  243. .table-colors .lozenge,
  244. .table-colors:first-child .lozenge {
  245. float: left;
  246. margin: 5px 10px 0 0;
  247. font-size: 10px;
  248. display: inline-block;
  249. text-transform: uppercase;
  250. font-weight: 600;
  251. background: #97A0AF;
  252. color: #042A53;
  253. padding: 2px 4px;
  254. line-height: 10px;
  255. border-radius: 4px;
  256. letter-spacing: 0.05em;
  257. }