_pages.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  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. .button {
  163. @include button-color(#aaa);
  164. }
  165. }
  166. .selectize-control.multi .selectize-input {
  167. padding: ($leading-margin / 4) ($leading-margin / 4);
  168. &.has-items {
  169. padding-top: 6px;
  170. padding-bottom: 4px;
  171. }
  172. input {
  173. font-size: $core-font-size;
  174. line-height: $core-line-height;
  175. }
  176. .item, .item.active {
  177. color: #777;
  178. background: #eee;
  179. padding: 2px 10px;
  180. &[data-value='Routable'] {
  181. background: #CE431D;
  182. color: $white;
  183. }
  184. &[data-value='NonRoutable'] {
  185. color: #CE431D;
  186. }
  187. &[data-value='Visible'] {
  188. background: #0082BA;
  189. color: $white;
  190. }
  191. &[data-value='NonVisible'] {
  192. color: #0082BA;
  193. }
  194. &[data-value='Modular'] {
  195. background: #9055AF;
  196. color: $white;
  197. }
  198. &[data-value='NonModular'] {
  199. color: #9055AF;
  200. }
  201. &[data-value='Published'] {
  202. background: #0093B8;
  203. color: $white;
  204. }
  205. &[data-value='NonPublished'] {
  206. color: #0093B8;
  207. }
  208. }
  209. }
  210. }
  211. .admin-form-wrapper {
  212. position: relative;
  213. }
  214. #admin-topbar {
  215. position: absolute;
  216. right: 5px;
  217. height: 50px;
  218. @include breakpoint(mobile-only) {
  219. position: relative;
  220. width: 100%;
  221. right: 0;
  222. padding: 0 .5rem;
  223. margin: -2rem 0 2rem 0;
  224. }
  225. #admin-mode-toggle, #admin-lang-toggle {
  226. @extend %vertical-align;
  227. height: 38px;
  228. display: inline-block;
  229. vertical-align: inherit;
  230. @include breakpoint(mobile-only) {
  231. float: right;
  232. }
  233. }
  234. #admin-lang-toggle {
  235. z-index: 3;
  236. float: left;
  237. margin-right: 5px;
  238. button {
  239. padding: 0.3rem 0.5rem;
  240. height: 100%;
  241. }
  242. .dropdown-menu {
  243. button {
  244. width: 100%;
  245. }
  246. }
  247. }
  248. .switch-grav {
  249. border: 0;
  250. line-height: 38px;
  251. }
  252. .switch-toggle {
  253. @include breakpoint(mobile-only) {
  254. width: 100%;
  255. }
  256. }
  257. }
  258. @for $i from 0 to 10 {
  259. .depth-#{$i} .row {
  260. padding-left: 3rem * ($i + 1);
  261. }
  262. @include breakpoint(mobile-only) {
  263. .depth-#{$i} .row {
  264. padding-left: 1rem * ($i + 1);
  265. }
  266. }
  267. }
  268. .hidden {
  269. display: none!important;
  270. }
  271. .switch-toggle input[type="radio"] {
  272. display: none!important;
  273. }