| 1 |
// Define breakpoints |
| 2 |
$breakpoint-xs: 0; |
| 3 |
$breakpoint-sm: 576px; |
| 4 |
$breakpoint-md: 768px; |
| 5 |
$breakpoint-lg: 992px; |
| 6 |
$breakpoint-xl: 1200px; |
| 7 |
|
| 8 |
@media (max-width: $breakpoint-md) { |
| 9 |
.betterdocs-admin { |
| 10 |
.betterdocs-settings-wrapper { |
| 11 |
.betterdocs-quick-builder-wrapper { |
| 12 |
.wprf-tabs-wrapper { |
| 13 |
flex-direction: column; |
| 14 |
.wprf-tab-menu-wrapper { |
| 15 |
flex-basis: 100%; |
| 16 |
max-width: 100%; |
| 17 |
margin-bottom: 10px; |
| 18 |
border-radius: 0; |
| 19 |
border-right: none; |
| 20 |
.wprf-tab-nav { |
| 21 |
flex-direction: row !important; |
| 22 |
gap: 5px !important; |
| 23 |
flex-wrap: wrap; |
| 24 |
.wprf-tab-nav-item { |
| 25 |
flex-basis: 32% !important; |
| 26 |
max-width: 32% !important; |
| 27 |
} |
| 28 |
} |
| 29 |
} |
| 30 |
.wprf-tab-content-wrapper { |
| 31 |
flex-basis: 100%; |
| 32 |
max-width: 100%; |
| 33 |
.wprf-tab-flex { |
| 34 |
.wprf-tab-contents { |
| 35 |
.wprf-tab-content { |
| 36 |
> .wprf-control-section { |
| 37 |
.wprf-section-fields { |
| 38 |
.betterdocs-settings-customizer-link { |
| 39 |
flex-wrap: wrap; |
| 40 |
flex-direction: row-reverse; |
| 41 |
padding: 0 40px 20px !important; |
| 42 |
.betterdocs-card-content, |
| 43 |
.betterdocs-card-icon { |
| 44 |
flex-basis: 100% !important; |
| 45 |
max-width: 100% !important; |
| 46 |
} |
| 47 |
} |
| 48 |
.wprf-code-viewer { |
| 49 |
.wprf-code-viewer-body { |
| 50 |
pre { |
| 51 |
width: 500px; |
| 52 |
white-space: pre-wrap; |
| 53 |
word-wrap: break-word; |
| 54 |
overflow-wrap: break-word; |
| 55 |
box-sizing: border-box; |
| 56 |
} |
| 57 |
} |
| 58 |
} |
| 59 |
} |
| 60 |
} |
| 61 |
} |
| 62 |
} |
| 63 |
} |
| 64 |
} |
| 65 |
} |
| 66 |
} |
| 67 |
} |
| 68 |
} |
| 69 |
.betterdocs-dashboard-container { |
| 70 |
.betterdocs-row { |
| 71 |
.betterdocs-col.betterdocs-col-md-4 { |
| 72 |
width: 50%; |
| 73 |
} |
| 74 |
|
| 75 |
// From tablet down, stack the FAQ Builder header columns full-width |
| 76 |
// (the 40/60 split squeezes the right-side toolbar into the tabs). |
| 77 |
.betterdocs-col.betterdocs-header-left, |
| 78 |
.betterdocs-col.betterdocs-header-right { |
| 79 |
width: 100%; |
| 80 |
} |
| 81 |
|
| 82 |
.betterdocs-col.betterdocs-header-left { |
| 83 |
margin-bottom: 16px; |
| 84 |
} |
| 85 |
|
| 86 |
// Let the toolbar (search, order, Classic UI, theme toggle) wrap to a |
| 87 |
// second line and align from the left instead of crowding the right. |
| 88 |
.betterdocs-col.betterdocs-header-right.betterdocs-d-flex { |
| 89 |
flex-wrap: wrap; |
| 90 |
justify-content: flex-start; |
| 91 |
row-gap: 10px; |
| 92 |
} |
| 93 |
} |
| 94 |
.betterdocs-dashboard-category-list-filter { |
| 95 |
.betterdocs-row { |
| 96 |
.betterdocs-col-md-3, |
| 97 |
.betterdocs-col-md-9 { |
| 98 |
width: 100%; |
| 99 |
} |
| 100 |
.betterdocs-col-md-3 { |
| 101 |
margin-bottom: 10px; |
| 102 |
} |
| 103 |
.betterdocs-dashboard-filter-wrap { |
| 104 |
.betterdocs-dashboard-filter-list { |
| 105 |
li { |
| 106 |
padding: 0 2px; |
| 107 |
&.order { |
| 108 |
max-width: 15%; |
| 109 |
min-width: 15%; |
| 110 |
} |
| 111 |
&.doc_category { |
| 112 |
max-width: 25%; |
| 113 |
min-width: 25%; |
| 114 |
} |
| 115 |
} |
| 116 |
} |
| 117 |
} |
| 118 |
} |
| 119 |
} |
| 120 |
.betterdocs-dashboard-item-list-wrap { |
| 121 |
width: 100%; |
| 122 |
overflow-x: auto; |
| 123 |
-webkit-overflow-scrolling: touch; |
| 124 |
padding: 1rem; |
| 125 |
.betterdocs-dashboard-list-table { |
| 126 |
width: 100%; |
| 127 |
border-collapse: collapse; |
| 128 |
} |
| 129 |
} |
| 130 |
} |
| 131 |
} |
| 132 |
|
| 133 |
@media (max-width: $breakpoint-sm) { |
| 134 |
.betterdocs-dashboard-logo { |
| 135 |
svg { |
| 136 |
width: 180px; |
| 137 |
} |
| 138 |
} |
| 139 |
.betterdocs-dashboard-container { |
| 140 |
.betterdocs-row { |
| 141 |
.betterdocs-col.betterdocs-col-md-4, |
| 142 |
.betterdocs-col.betterdocs-header-left, |
| 143 |
.betterdocs-col.betterdocs-header-right { |
| 144 |
width: 100%; |
| 145 |
} |
| 146 |
.betterdocs-col.betterdocs-header-left { |
| 147 |
margin-bottom: 16px; |
| 148 |
justify-content: space-between; |
| 149 |
} |
| 150 |
.betterdocs-col.betterdocs-header-right { |
| 151 |
&.betterdocs-d-flex { |
| 152 |
flex-wrap: wrap; |
| 153 |
justify-content: flex-start; |
| 154 |
row-gap: 10px; |
| 155 |
} |
| 156 |
} |
| 157 |
} |
| 158 |
.betterdocs-dashboard-category-list-filter { |
| 159 |
.betterdocs-row { |
| 160 |
.betterdocs-dashboard-filter-wrap { |
| 161 |
.betterdocs-dashboard-filter-list { |
| 162 |
flex-wrap: wrap; |
| 163 |
li { |
| 164 |
max-width: 50% !important; |
| 165 |
min-width: 50% !important; |
| 166 |
} |
| 167 |
} |
| 168 |
} |
| 169 |
} |
| 170 |
} |
| 171 |
.betterdocs-dashboard-item-list-wrap { |
| 172 |
.doc-list-pagination { |
| 173 |
flex-wrap: wrap; |
| 174 |
.doc-list-count { |
| 175 |
flex-basis: 100%; |
| 176 |
width: 100%; |
| 177 |
margin-bottom: 10px; |
| 178 |
} |
| 179 |
.doc-list-pagination-wrap { |
| 180 |
flex-basis: 100%; |
| 181 |
width: 100%; |
| 182 |
} |
| 183 |
} |
| 184 |
} |
| 185 |
} |
| 186 |
} |
| 187 |
|