_pages.scss 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. .pages-list {
  2. list-style: none;
  3. margin: 0;
  4. padding: 0;
  5. ul {
  6. list-style: none;
  7. margin: 0;
  8. padding: 0;
  9. }
  10. li {
  11. margin: 0;
  12. padding: 0;
  13. }
  14. .row {
  15. @include transition(all 0.2s ease);
  16. line-height: 2.5rem;
  17. padding-right: 3rem;
  18. @include breakpoint(mobile-only) {
  19. padding-right: 1rem;
  20. }
  21. [data-hint]:after {
  22. line-height: 1 !important;
  23. width: auto !important;
  24. white-space: nowrap !important;
  25. }
  26. p.page-route {
  27. display: block;
  28. margin: 0;
  29. line-height: 1;
  30. font-size: 0.9rem;
  31. word-break: break-all;
  32. .spacer {
  33. display: inline-block;
  34. margin: 0 0.3rem;
  35. }
  36. }
  37. // fix for hint alignment
  38. .hint--bottom:before, .hint--bottom:after {
  39. left: 4px;
  40. }
  41. .hint:after, [data-hint]:after {
  42. border-radius: 2px;
  43. }
  44. .badge.lang {
  45. margin-left: 8px;
  46. }
  47. }
  48. .page-home {
  49. font-size: 1.4rem;
  50. margin-left: 10px;
  51. vertical-align: middle;
  52. }
  53. .page-info {
  54. font-size: 1.1rem;
  55. margin-left: 10px;
  56. vertical-align: middle;
  57. }
  58. .page-edit {
  59. text-overflow: ellipsis;
  60. display: inline-block;
  61. max-width: 100%;
  62. white-space: nowrap;
  63. overflow-x: hidden;
  64. }
  65. .page-item__row {
  66. display: flex;
  67. }
  68. .page-item__toggle {
  69. width: 25px;
  70. line-height: 1;
  71. padding-top: 7px;
  72. }
  73. .page-item__content {
  74. padding: 5px 0;
  75. width: calc(100% - 50px);
  76. }
  77. .page-item__content-name {
  78. line-height: 1;
  79. }
  80. .page-item__content-hint {
  81. line-height: 1.3;
  82. vertical-align: middle;
  83. max-width: 100%;
  84. }
  85. .page-item__tools {
  86. width: 90px;
  87. text-align: right;
  88. font-size: 1.4rem;
  89. .page-view {
  90. margin-right: 4px;
  91. }
  92. }
  93. .page-icon {
  94. color: #0082BA;
  95. font-weight: 700;
  96. &.children-open:before {
  97. content: '\f056';
  98. }
  99. &.children-closed:before{
  100. content: '\f055';
  101. }
  102. &.not-routable {
  103. color: #CE431D;
  104. }
  105. &.not-visible {
  106. color: #999;
  107. }
  108. &.modular {
  109. color: #9055AF;
  110. }
  111. }
  112. #pages-legend {
  113. margin-top: 1.5rem;
  114. text-align: center;
  115. h2, ul, li {
  116. display: inline-block;
  117. }
  118. li {
  119. margin-right: 0.75rem;
  120. }
  121. }
  122. }
  123. #page-filtering {
  124. margin: 0 $padding-default 1rem;
  125. @include clearfix;
  126. @include breakpoint(mobile-only) {
  127. margin: -1rem 1rem 1rem;
  128. }
  129. .page-filters {
  130. width: 60%;
  131. float: left;
  132. @include breakpoint(mobile-only) {
  133. width: 100%;
  134. }
  135. }
  136. .page-search {
  137. position: relative;
  138. width: 40%;
  139. float: left;
  140. padding-left: 2rem;
  141. text-indent: 2.5rem;
  142. &:after {
  143. position: absolute;
  144. right: 15px;
  145. top: 10px;
  146. content: '\f002';
  147. font-family: 'FontAwesome';
  148. }
  149. @include breakpoint(mobile-only) {
  150. width: 100%;
  151. padding-top: 1rem;
  152. padding-left: 0rem;
  153. &:after {
  154. top: 1.5rem;
  155. }
  156. }
  157. }
  158. .page-shortcuts {
  159. @include clearfix;
  160. clear: both;
  161. padding-top:5px;
  162. }
  163. .selectize-control.single.plugin-remove_button .selectize-input,
  164. .selectize-control.multi .selectize-input {
  165. padding: ($leading-margin / 4) ($leading-margin / 4);
  166. &.has-items {
  167. padding-top: 6px;
  168. padding-bottom: 4px;
  169. }
  170. input {
  171. font-size: $core-font-size;
  172. line-height: $core-line-height;
  173. }
  174. .item, .item.active {
  175. color: #777;
  176. background: #eee;
  177. padding: 2px 10px;
  178. &[data-value='Routable'] {
  179. background: #CE431D;
  180. color: $white;
  181. }
  182. &[data-value='NonRoutable'] {
  183. color: #CE431D;
  184. }
  185. &[data-value='Visible'] {
  186. background: #0082BA;
  187. color: $white;
  188. }
  189. &[data-value='NonVisible'] {
  190. color: #0082BA;
  191. }
  192. &[data-value='Modular'] {
  193. background: #9055AF;
  194. color: $white;
  195. }
  196. &[data-value='NonModular'] {
  197. color: #9055AF;
  198. }
  199. &[data-value='Published'] {
  200. background: #0093B8;
  201. color: $white;
  202. }
  203. &[data-value='NonPublished'] {
  204. color: #0093B8;
  205. }
  206. }
  207. }
  208. }
  209. .admin-form-wrapper {
  210. position: relative;
  211. }
  212. #admin-topbar {
  213. position: absolute;
  214. right: 5px;
  215. height: 50px;
  216. @include breakpoint(mobile-only) {
  217. position: relative;
  218. width: 100%;
  219. right: 0;
  220. padding: 0 .5rem;
  221. margin: -2rem 0 2rem 0;
  222. }
  223. #admin-mode-toggle, #admin-lang-toggle {
  224. @extend %vertical-align;
  225. height: 38px;
  226. display: inline-block;
  227. vertical-align: inherit;
  228. @include breakpoint(mobile-only) {
  229. float: right;
  230. }
  231. }
  232. #admin-lang-toggle {
  233. z-index: 3;
  234. float: left;
  235. margin-right: 5px;
  236. button {
  237. padding: 0.3rem 0.5rem;
  238. height: 100%;
  239. }
  240. .dropdown-menu {
  241. button {
  242. width: 100%;
  243. }
  244. }
  245. }
  246. .switch-grav {
  247. border: 0;
  248. line-height: 38px;
  249. }
  250. .switch-toggle {
  251. @include breakpoint(mobile-only) {
  252. width: 100%;
  253. }
  254. }
  255. }
  256. @for $i from 0 to 10 {
  257. .depth-#{$i} .row {
  258. padding-left: 3rem * ($i + 1);
  259. }
  260. @include breakpoint(mobile-only) {
  261. .depth-#{$i} .row {
  262. padding-left: 1rem * ($i + 1);
  263. }
  264. }
  265. }
  266. .selectize-route-option {
  267. display: flex;
  268. > :first-child {
  269. flex: 0 0 auto;
  270. width: auto;
  271. margin-right: 10px;
  272. }
  273. > :last-child {
  274. flex: 1 1 auto;
  275. > * {
  276. display: block;
  277. }
  278. }
  279. }
  280. .hidden {
  281. display: none!important;
  282. }
  283. .switch-toggle input[type="radio"] {
  284. display: none!important;
  285. }