_codetab.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. .codetab {
  2. position: relative;
  3. &__links {
  4. position: absolute;
  5. top: 2px;
  6. left: 0;
  7. height: 26px;
  8. z-index: z('clipboard');
  9. border-top-left-radius: 0.25rem;
  10. @include flexbox();
  11. @include align-items(center);
  12. @include justify-content(flex-start);
  13. @include themify($codeblock) {
  14. background-color: themed('content-pre-header-background-color');
  15. }
  16. }
  17. &__link {
  18. height: 26px;
  19. border: none;
  20. outline: none;
  21. cursor: pointer;
  22. font-size: 13.8px;
  23. font-family: $title-font;
  24. text-transform: capitalize;
  25. padding: 0.25rem 0.5rem;
  26. &:first-child {
  27. border-top-left-radius: 0.25rem;
  28. }
  29. @include transition(all, 0.2s, ease-in);
  30. @include themify($themes) {
  31. color: themed('title-color');
  32. border-top: 1px solid transparent;
  33. &.active {
  34. border-top: 1px solid themed('title-color');
  35. }
  36. }
  37. @include themify($codeblock) {
  38. background-color: themed('content-pre-header-background-color');
  39. &.active {
  40. background-color: themed('content-pre-background-color');
  41. }
  42. @include on-event {
  43. background-color: themed('content-pre-background-color');
  44. }
  45. }
  46. }
  47. &__content {
  48. display: none;
  49. }
  50. }