pywebio.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. @import url(https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@32/Vazirmatn-font-face.css);
  2. /* Tabs */
  3. .ui.menu {
  4. font-family: Helvetica;
  5. min-height: 0;
  6. }
  7. .ui.tabular.menu .item {
  8. padding: 9px 1em;
  9. }
  10. .ui.menu .item {
  11. padding: 0;
  12. }
  13. .sphinx-tabs {
  14. margin-bottom: 1em;
  15. }
  16. /* Table cell */
  17. td .line-block {
  18. margin-bottom: 0 !important;
  19. }
  20. .rst-content img {
  21. box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, .35);
  22. -moz-box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, .35);
  23. -webkit-box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, .35);
  24. }
  25. #hello-world img {
  26. box-shadow: none;
  27. -moz-box-shadow: none;
  28. -webkit-box-shadow: none;
  29. }
  30. .demo-cb .highlight {
  31. position: relative;
  32. }
  33. .demo-cb .viewcode-back {
  34. position: absolute;
  35. right: 10px;
  36. top: 4px;
  37. padding-left: 0px;
  38. background-color: #f8f8f8;
  39. }
  40. details {
  41. margin-bottom: 24px;
  42. }
  43. /* Adjust ``.. contents::`` style */
  44. .contents li > p {
  45. margin-bottom: 0px !important;
  46. }
  47. .contents ul {
  48. margin-bottom: 8px !important;
  49. }
  50. /* RTL language support */
  51. html[lang="fa"] :is(.wy-menu-vertical a, .document, footer, .wy-side-nav-search input[type=text], .caption, .wy-breadcrumbs :nth-child(2)) {
  52. direction: rtl;
  53. font-family: Vazirmatn, sans-serif;
  54. }
  55. html[lang="fa"] :is(.rst-footer-buttons, .highlight) {
  56. direction: initial;
  57. }
  58. html[lang="fa"] :is(.rst-content .section ol.arabic li, .rst-content .section ol li, .rst-content .toctree-wrapper ol.arabic li, .rst-content .toctree-wrapper ol li, .rst-content section ol.arabic li, .rst-content section ol li, .wy-plain-list-decimal li, article ol li, .rst-content .section ul li, .rst-content .toctree-wrapper ul li, .rst-content section ul li, .wy-plain-list-disc li, article ul li, .rst-content blockquote) {
  59. margin-left: 0;
  60. margin-right: 24px;
  61. }
  62. html[lang="fa"] .rst-content .admonition-title:before {
  63. margin-right: 0;
  64. margin-left: 4px;
  65. }
  66. html[lang="fa"] :is(.rst-content .code-block-caption .headerlink, .rst-content .eqno .headerlink, .rst-content .toctree-wrapper>p.caption .headerlink, .rst-content dl dt .headerlink, .rst-content h1 .headerlink, .rst-content h2 .headerlink, .rst-content h3 .headerlink, .rst-content h4 .headerlink, .rst-content h5 .headerlink, .rst-content h6 .headerlink, .rst-content p.caption .headerlink, .rst-content p .headerlink, .rst-content table>caption .headerlink) {
  67. margin-left: 0;
  68. margin-right: 0.5em;
  69. }
  70. html[lang="fa"] :is(h1, h2, h3, a, .btn) {
  71. font-family: Vazirmatn, sans-serif;
  72. }
  73. details {
  74. padding: 8px 12px;
  75. border: 1px solid #e1e4e5;
  76. }
  77. summary{
  78. cursor: pointer;
  79. }
  80. summary ~ * {
  81. margin-top: 10px;
  82. }