_tog.less 751 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. .tog{
  2. position:fixed;
  3. top: @header-height + @gap * 2;
  4. right: ~"calc((100% - @{container-width})/2)";
  5. transition: all .24s ease-out;
  6. @media(max-width: @container-width){
  7. right: 0;
  8. }
  9. @media(max-width: @on-phone){
  10. right: -@side-width;
  11. &.active{
  12. transform: translateX(-@side-width);
  13. }
  14. }
  15. width: @side-width + 6px;
  16. z-index:3;
  17. &:extend(.z-depth-2);
  18. padding: @gap;
  19. border-left: 6px solid @secondary-color;
  20. background: @white;
  21. a {
  22. display: inline-block;
  23. &:hover,&:active,&.active{
  24. color: @accent-color;
  25. }
  26. }
  27. ol{
  28. &.toc-child{
  29. padding-left: @gap;
  30. }
  31. li{
  32. list-style:none;
  33. width: auto;
  34. &:extend(.txt-ellipsis);
  35. }
  36. }
  37. &:empty{
  38. display:none;
  39. }
  40. }