_custom.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. @charset "UTF-8";
  2. // Your custom SCSS should be written here...
  3. //Fluidbox fixes
  4. .lightbox-active {
  5. #body {
  6. overflow: visible;
  7. .padding {
  8. overflow: visible;
  9. }
  10. }
  11. }
  12. //Github
  13. #github-contrib {
  14. i {
  15. vertical-align: middle;
  16. }
  17. }
  18. //Featherlight fixes
  19. .featherlight img {
  20. margin: 0 !important;
  21. }
  22. //Lifecycle
  23. .lifecycle {
  24. #body-inner {
  25. ul {
  26. list-style: none;
  27. margin: 0;
  28. padding: 2rem 0 0;
  29. position: relative;
  30. }
  31. ol {
  32. margin: 1rem 0 1rem 0;
  33. padding: 2rem;
  34. position: relative;
  35. li {margin-left: 1rem;}
  36. strong {
  37. text-decoration: underline;
  38. }
  39. ol {
  40. margin-left: -1rem;
  41. }
  42. }
  43. h3[class*='level'] {
  44. font-size: 20px;
  45. position: absolute;
  46. margin: 0;
  47. padding: 4px 10px;
  48. right: 0;
  49. z-index: 1000;
  50. color: #fff;
  51. background: $turquoise;
  52. }
  53. ol h3 {
  54. margin-top: 1rem !important;
  55. right: 2rem !important;
  56. }
  57. .level-1 + ol {
  58. background: lighten($turquoise,56%);
  59. border: 4px solid $turquoise;
  60. color: $green_sea;
  61. h3 {
  62. background: $emerald;
  63. }
  64. }
  65. .level-2 + ol {
  66. background: lighten($emerald,49%);
  67. border: 4px solid $emerald;
  68. color: $nephritis;
  69. h3 {
  70. background: $peter_river;
  71. }
  72. }
  73. .level-3 + ol {
  74. background: lighten($peter_river,44%);
  75. border: 4px solid $peter_river;
  76. color: $belize_hole;
  77. h3 {
  78. background: $wet_asphalt;
  79. }
  80. }
  81. .level-4 + ol{
  82. background: lighten($wet_asphalt,63%);
  83. border: 4px solid $wet_asphalt;
  84. color: $midnight_blue;
  85. h3 {
  86. background: $wet_asphalt;
  87. }
  88. }
  89. }
  90. }
  91. #top-bar {
  92. background: $navbar-bg;
  93. border-radius: 2px;
  94. margin: 0rem -1rem 2rem;
  95. padding: 0 1rem;
  96. height: 0;
  97. min-height: 3rem;
  98. }
  99. // Github link
  100. #top-github-link {
  101. @extend %vertical-align;
  102. position: relative;
  103. z-index: 1;
  104. float: right;
  105. display: block;
  106. }
  107. // Breadcrumbs
  108. #body #breadcrumbs {
  109. @extend %vertical-align;
  110. height: auto;
  111. display: block;
  112. margin-bottom: 0;
  113. padding-left: 0;
  114. line-height: 1.4;
  115. span {
  116. padding: 0 0.1rem;
  117. }
  118. }
  119. // Media Query stuff
  120. @include breakpoint(desktop-only) {
  121. #sidebar {
  122. width: $sidebar-width-smaller;
  123. }
  124. #body {
  125. margin-left: $sidebar-width-smaller;
  126. }
  127. }
  128. @include breakpoint(mobile-only) {
  129. #sidebar {
  130. width: $sidebar-width-smaller;
  131. left: - $sidebar-width-smaller;
  132. }
  133. #body {
  134. margin-left: 0;
  135. width: 100%;
  136. }
  137. .sidebar-hidden {
  138. overflow: hidden;
  139. #sidebar {
  140. left: 0;
  141. }
  142. #body {
  143. margin-left: $sidebar-width-smaller;
  144. overflow: hidden;
  145. }
  146. #overlay {
  147. position: absolute;
  148. left:0;
  149. right: 0;
  150. top: 0;
  151. bottom: 0;
  152. z-index:10;
  153. background: rgba(255,255,255,.5);
  154. cursor: pointer;
  155. }
  156. }
  157. }
  158. // clipboard
  159. .copy-to-clipboard {
  160. background-image: url(../images/clippy.svg);
  161. background-position: 50% 50%;
  162. background-size: 16px 16px;
  163. background-repeat: no-repeat;
  164. width: 27px;
  165. height: $core-font-size + (.2rem * 2);
  166. top: -1px;
  167. display: inline-block;
  168. vertical-align: middle;
  169. position: relative;
  170. color: darken($core-text,10%);
  171. background-color: $code-bg;
  172. margin-left: -.2rem;
  173. cursor: pointer;
  174. border-radius: 0 2px 2px 0;
  175. &:hover {
  176. background-color: darken($code-bg, 5%);
  177. }
  178. pre & {
  179. position: absolute;
  180. right: 4px;
  181. top: 4px;
  182. background-color: #eee;
  183. border-color: #ddd;
  184. border-radius: 2px;
  185. &:hover {
  186. background-color: #d9d9d9;
  187. }
  188. }
  189. }
  190. // Utils
  191. .parent-element {
  192. -webkit-transform-style: preserve-3d;
  193. -moz-transform-style: preserve-3d;
  194. transform-style: preserve-3d;
  195. }