_pages.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  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: 25px;
  87. text-align: right;
  88. font-size: 1.4rem;
  89. }
  90. .page-icon {
  91. color: #0082BA;
  92. font-weight: 700;
  93. &.children-open:before {
  94. content: '\f056';
  95. }
  96. &.children-closed:before{
  97. content: '\f055';
  98. }
  99. &.not-routable {
  100. color: #CE431D;
  101. }
  102. &.not-visible {
  103. color: #999;
  104. }
  105. &.modular {
  106. color: #9055AF;
  107. }
  108. }
  109. #pages-legend {
  110. margin-top: 1.5rem;
  111. text-align: center;
  112. h2, ul, li {
  113. display: inline-block;
  114. }
  115. li {
  116. margin-right: 0.75rem;
  117. }
  118. }
  119. }
  120. #page-filtering {
  121. margin: 0 $padding-default 1rem;
  122. @include clearfix;
  123. @include breakpoint(mobile-only) {
  124. margin: -1rem 1rem 1rem;
  125. }
  126. .page-filters {
  127. width: 60%;
  128. float: left;
  129. @include breakpoint(mobile-only) {
  130. width: 100%;
  131. }
  132. }
  133. .page-search {
  134. position: relative;
  135. width: 40%;
  136. float: left;
  137. padding-left: 2rem;
  138. text-indent: 2.5rem;
  139. &:after {
  140. position: absolute;
  141. right: 15px;
  142. top: 10px;
  143. content: '\f002';
  144. font-family: 'FontAwesome';
  145. }
  146. @include breakpoint(mobile-only) {
  147. width: 100%;
  148. padding-top: 1rem;
  149. padding-left: 0rem;
  150. &:after {
  151. top: 1.5rem;
  152. }
  153. }
  154. }
  155. .page-shortcuts {
  156. @include clearfix;
  157. clear: both;
  158. padding-top:5px;
  159. .button {
  160. @include button-color(#aaa);
  161. }
  162. }
  163. .selectize-control.multi .selectize-input {
  164. padding: ($leading-margin / 4) ($leading-margin / 4);
  165. &.has-items {
  166. padding-top: 6px;
  167. padding-bottom: 4px;
  168. }
  169. input {
  170. font-size: $core-font-size;
  171. line-height: $core-line-height;
  172. }
  173. .item, .item.active {
  174. color: #777;
  175. background: #eee;
  176. padding: 2px 10px;
  177. &[data-value='Routable'] {
  178. background: #CE431D;
  179. color: $white;
  180. }
  181. &[data-value='NonRoutable'] {
  182. color: #CE431D;
  183. }
  184. &[data-value='Visible'] {
  185. background: #0082BA;
  186. color: $white;
  187. }
  188. &[data-value='NonVisible'] {
  189. color: #0082BA;
  190. }
  191. &[data-value='Modular'] {
  192. background: #9055AF;
  193. color: $white;
  194. }
  195. &[data-value='NonModular'] {
  196. color: #9055AF;
  197. }
  198. &[data-value='Published'] {
  199. background: #0093B8;
  200. color: $white;
  201. }
  202. &[data-value='NonPublished'] {
  203. color: #0093B8;
  204. }
  205. }
  206. }
  207. }
  208. .admin-form-wrapper {
  209. position: relative;
  210. }
  211. #admin-topbar {
  212. position: absolute;
  213. right: 0.5rem;
  214. height: 3.5rem;
  215. @include breakpoint(mobile-only) {
  216. position: relative;
  217. width: 100%;
  218. right: 0;
  219. padding: 0 .5rem;
  220. margin: -2rem 0 2rem 0;
  221. }
  222. #admin-mode-toggle, #admin-lang-toggle {
  223. @extend %vertical-align;
  224. height: 38px;
  225. display: inline-block;
  226. vertical-align: inherit;
  227. @include breakpoint(mobile-only) {
  228. float: right;
  229. }
  230. }
  231. #admin-lang-toggle {
  232. z-index: 3;
  233. float: left;
  234. margin-right: 5px;
  235. button {
  236. padding: 0.3rem 0.5rem;
  237. height: 100%;
  238. }
  239. .dropdown-menu {
  240. button {
  241. width: 100%;
  242. }
  243. }
  244. }
  245. .switch-grav {
  246. border: 0;
  247. line-height: 38px;
  248. }
  249. .switch-toggle {
  250. @include breakpoint(mobile-only) {
  251. width: 100%;
  252. }
  253. }
  254. }
  255. @for $i from 0 to 10 {
  256. .depth-#{$i} .row {
  257. padding-left: 3rem * ($i + 1);
  258. }
  259. @include breakpoint(mobile-only) {
  260. .depth-#{$i} .row {
  261. padding-left: 1rem * ($i + 1);
  262. }
  263. }
  264. }
  265. .hidden {
  266. display: none!important;
  267. }
  268. .switch-toggle input[type="radio"] {
  269. display: none!important;
  270. }