_pages.scss 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856
  1. #pages-filters {
  2. margin-bottom: 1rem;
  3. margin-top: -1rem;
  4. padding: 1rem;
  5. .button-border {
  6. padding: .375rem .375rem;
  7. white-space: nowrap;
  8. &.adv-options {
  9. &:after {
  10. content: "\f078";
  11. font-family: "FontAwesome", sans-serif;
  12. margin-left: 5px;
  13. }
  14. &.open:after {
  15. content: "\f077";
  16. }
  17. }
  18. }
  19. .filters-bar {
  20. display: flex;
  21. align-items: center;
  22. .button-border {
  23. margin-left: 0.5rem;
  24. }
  25. }
  26. .filters-advanced {
  27. overflow: hidden;
  28. transition:max-height 0.3s ease-out;
  29. height:auto;
  30. max-height:600px;
  31. &.hide {
  32. max-height: 0;
  33. }
  34. .button-border {
  35. display: inline-block;
  36. margin-top: 0.5rem;
  37. }
  38. fieldset {
  39. margin: 1rem 0 0;
  40. border-radius: $border-radius;
  41. legend {
  42. margin-left: -0.5rem;
  43. padding: 0 0.5rem;
  44. }
  45. .checkboxes {
  46. margin-right: 1.5rem;
  47. label {
  48. padding-left: 1.7rem;
  49. &:before {
  50. margin-top: -0.6rem;
  51. margin-right: 0;
  52. width: 1.25rem;
  53. height: 1.25rem;
  54. }
  55. }
  56. }
  57. }
  58. }
  59. }
  60. #pages-content-wrapper {
  61. display: flex;
  62. flex-direction: column;
  63. margin-bottom: -1rem;
  64. height: calc(100vh - 190px);
  65. .grav-loading {
  66. min-height: 600px;
  67. .grav-loader {
  68. margin: 0 auto;
  69. position: relative;
  70. top: 230px;
  71. }
  72. }
  73. .fjs-container {
  74. min-height: initial;
  75. flex-grow: 1;
  76. }
  77. .fjs-path-bar {
  78. //margin-bottom: -1rem;
  79. border-bottom: 0;
  80. padding: 0.5rem;
  81. overflow: inherit;
  82. }
  83. .fjs-col {
  84. width: 33.33333334%;
  85. min-width: 300px;
  86. min-height: 300px;
  87. max-height: initial;
  88. }
  89. .fjs-item {
  90. max-width: 100%;
  91. > .fjs-item-wrapper {
  92. display: flex;
  93. justify-content: flex-start;
  94. padding: 0;
  95. margin: 1px 0;
  96. border-top: 1px solid transparent;
  97. border-bottom: 1px solid transparent;
  98. outline: 0;
  99. }
  100. a {
  101. padding: 7px 2px 7px 5px;
  102. & * {
  103. @include transition(all 0.5s ease);
  104. }
  105. }
  106. .fjs-title {
  107. display: flex;
  108. align-items: center;
  109. flex-grow: 1;
  110. max-width: 100%;
  111. overflow: auto;
  112. [data-flexpages-dotx3] {
  113. .dropdown-toggle {
  114. padding: 0;
  115. background: transparent;
  116. border: 0;
  117. }
  118. /* FIXME: properly move colors to presets */
  119. .dropdown-menu {
  120. top: inherit;
  121. left: inherit;
  122. right: inherit;
  123. bottom: inherit;
  124. position: fixed;
  125. cursor: default;
  126. padding: 0 0 0.5rem;
  127. color: #212529;
  128. text-align: left;
  129. list-style: none;
  130. background-color: #fff;
  131. background-clip: padding-box;
  132. border: 1px solid rgba(0,0,0,.15);
  133. border-radius: .25rem;
  134. width: 350px;
  135. .tags {
  136. padding-top: 0;
  137. }
  138. a {
  139. cursor: pointer;
  140. }
  141. table {
  142. display: table;
  143. tbody {
  144. width: 100%;
  145. display: inherit;
  146. }
  147. tr {
  148. display: table-row;
  149. }
  150. td {
  151. display: table-cell;
  152. text-align: left;
  153. flex: none;
  154. word-break: break-all;
  155. white-space: normal;
  156. &:first-child {
  157. padding-left: 0;
  158. width: 80px;
  159. }
  160. &:last-child {
  161. padding-right: 0;
  162. width: calc(100% - 80px);
  163. }
  164. }
  165. }
  166. .divider {
  167. height: 0;
  168. margin: .5rem 0;
  169. overflow: hidden;
  170. }
  171. .action-bar {
  172. border-radius: $border-radius $border-radius 0 0;
  173. & + .divider {
  174. margin-top: 0;
  175. }
  176. a.dropdown-item:hover {
  177. border-radius: 0;
  178. &:first-child {
  179. border-top-left-radius: 4px;
  180. }
  181. &:last-child {
  182. border-top-right-radius: 4px;
  183. }
  184. }
  185. }
  186. .dropdown-item {
  187. display: block;
  188. width: 100%;
  189. padding: 0.5rem;
  190. clear: both;
  191. font-weight: 400;
  192. text-align: inherit;
  193. white-space: nowrap;
  194. border: 0;
  195. border-radius: $border-radius;
  196. &:hover {
  197. text-decoration: none;
  198. }
  199. }
  200. .fa {
  201. display: inline-block;
  202. width: 16px;
  203. height: inherit;
  204. text-align: left;
  205. }
  206. .action-bar {
  207. display: flex;
  208. a, i {
  209. text-align: center;
  210. }
  211. }
  212. .details, .tags, .langs {
  213. padding: 0 .5rem 0;
  214. }
  215. .infos {
  216. margin: 0 .15rem;
  217. ul {
  218. margin: 0;
  219. padding: 0;
  220. }
  221. }
  222. .langs {
  223. .lang {
  224. display: inline-block;
  225. .fa {
  226. font-size: 0.6rem;
  227. padding: 0 0.15rem;
  228. }
  229. }
  230. }
  231. }
  232. }
  233. & > a {
  234. flex-grow: 1;
  235. overflow: hidden;
  236. }
  237. }
  238. .button-group {
  239. .fa {
  240. font-size: 0.9rem;
  241. width: 28px;
  242. height: 28px;
  243. display: flex;
  244. justify-content: center;
  245. align-items: center;
  246. &.disabled {
  247. opacity: 0;
  248. }
  249. }
  250. }
  251. .fjs-icon {
  252. position: relative;
  253. display: flex;
  254. justify-content: center;
  255. align-items: center;
  256. overflow: visible !important;
  257. width: 34px;
  258. height: 34px;
  259. min-width: 34px;
  260. border-radius: 50%;
  261. margin-right: 5px;
  262. margin-left: 5px;
  263. &:before {
  264. position: relative;
  265. content: url('../images/icons/book-edit.svg');
  266. flex: 1;
  267. max-width: 20px;
  268. margin-right: 0px;
  269. margin-bottom: -2px;
  270. }
  271. &.modular:before {
  272. content: url('../images/icons/module-four.svg');
  273. }
  274. &.home:before {
  275. content: url('../images/icons/house.svg');
  276. }
  277. &.lock:before {
  278. content: url('../images/icons/touchid-lock.svg');
  279. }
  280. &.badge-published:after, &.badge-unpublished:after {
  281. content: '';
  282. }
  283. &:after, .badge-clock {
  284. display: block;
  285. position: absolute;
  286. top: -2px;
  287. right: -2px;
  288. height: 12px;
  289. width: 12px;
  290. border-radius: 50%;
  291. }
  292. .badge-clock {
  293. border-radius: 0;
  294. content: url('../images/icons/clock-hands.svg');
  295. z-index: 2;
  296. }
  297. .badge-lang {
  298. position: absolute;
  299. bottom: -4px;
  300. bottom: -4px;
  301. left: 50%;
  302. transform: translateX(-50%);
  303. line-height: 1.2;
  304. font-weight: 600;
  305. font-size: 0.6rem;
  306. border-radius: $border-radius;
  307. padding: 0 3px;
  308. }
  309. }
  310. .fjs-info {
  311. flex-grow: 1;
  312. flex-direction: column;
  313. line-height: 1.2;
  314. > b, > em {
  315. display: block;
  316. white-space: nowrap;
  317. overflow: hidden;
  318. text-overflow: ellipsis;
  319. font-style: normal;
  320. }
  321. > b {
  322. font-size: 110%;
  323. }
  324. }
  325. .fjs-actions {
  326. display: flex;
  327. align-items: center;
  328. padding-right: 3px;
  329. position: relative;
  330. > * {
  331. margin-right: 3px;
  332. &:last-child {
  333. margin-right: 0;
  334. }
  335. }
  336. }
  337. }
  338. .fjs-children {
  339. position: relative;
  340. display: flex;
  341. align-items: center;
  342. justify-content: center;
  343. height: 28px;
  344. min-width: 50px;
  345. outline: 0;
  346. background-color: transparent;
  347. .badge {
  348. font-size: 0.7rem;
  349. margin-right: 5px;
  350. padding: 0px 3px;
  351. line-height: 1.3;
  352. }
  353. .fa {
  354. display: inline-block !important;
  355. width: auto !important;
  356. font-size: 14px;
  357. }
  358. }
  359. .breadcrumb-node {
  360. font-size: 0.9rem;
  361. &:hover span {
  362. text-decoration: none;
  363. }
  364. & > i.fa {
  365. margin: 0 0.4rem -4px;
  366. }
  367. & > i:not(.fa) {
  368. position: relative;
  369. display: inline-flex;
  370. justify-content: center;
  371. align-items: center;
  372. overflow: inherit;
  373. width: 16px;
  374. height: 16px;
  375. border-radius: 50%;
  376. margin-right: 0.35rem;
  377. &:before {
  378. position: relative;
  379. content: url('../images/icons/book-edit.svg');
  380. flex: 1;
  381. max-width: 10px;
  382. }
  383. &.modular:before {
  384. content: url('../images/icons/module-four.svg');
  385. }
  386. &.home:before {
  387. content: url('../images/icons/house.svg');
  388. }
  389. &.lock:before {
  390. content: url('../images/icons/touchid-lock.svg');
  391. }
  392. &.badge-published:after, &.badge-unpublished:after {
  393. content: '';
  394. }
  395. }
  396. }
  397. }
  398. .pages-list {
  399. list-style: none;
  400. margin: 0;
  401. padding: 0;
  402. ul {
  403. list-style: none;
  404. margin: 0;
  405. padding: 0;
  406. }
  407. li {
  408. margin: 0;
  409. padding: 0;
  410. }
  411. .row {
  412. @include transition(all 0.2s ease);
  413. line-height: 2.5rem;
  414. padding-right: 3rem;
  415. @include breakpoint(mobile-only) {
  416. padding-right: 1rem;
  417. }
  418. [data-hint]:after {
  419. line-height: 1 !important;
  420. width: auto !important;
  421. white-space: nowrap !important;
  422. }
  423. p.page-route {
  424. display: block;
  425. margin: 0;
  426. line-height: 1;
  427. font-size: 0.9rem;
  428. word-break: break-all;
  429. .spacer {
  430. display: inline-block;
  431. margin: 0 0.3rem;
  432. }
  433. }
  434. // fix for hint alignment
  435. .hint--bottom:before, .hint--bottom:after {
  436. left: 4px;
  437. }
  438. .hint:after, [data-hint]:after {
  439. border-radius: 2px;
  440. }
  441. .badge.lang {
  442. margin-left: 8px;
  443. }
  444. }
  445. .page-home {
  446. font-size: 1.4rem;
  447. margin-left: 10px;
  448. vertical-align: middle;
  449. }
  450. .page-info {
  451. font-size: 1.1rem;
  452. margin-left: 10px;
  453. vertical-align: middle;
  454. }
  455. .page-edit {
  456. text-overflow: ellipsis;
  457. display: inline-block;
  458. max-width: 100%;
  459. white-space: nowrap;
  460. overflow-x: hidden;
  461. }
  462. .page-item__row {
  463. display: flex;
  464. }
  465. .page-item__toggle {
  466. width: 25px;
  467. line-height: 1;
  468. padding-top: 7px;
  469. }
  470. .page-item__content {
  471. padding: 5px 0;
  472. width: calc(100% - 50px);
  473. }
  474. .page-item__content-name {
  475. line-height: 1;
  476. }
  477. .page-item__content-hint {
  478. line-height: 1.3;
  479. vertical-align: middle;
  480. max-width: 100%;
  481. }
  482. .page-item__tools {
  483. width: 90px;
  484. text-align: right;
  485. font-size: 1.4rem;
  486. .page-view {
  487. margin-right: 4px;
  488. }
  489. }
  490. .page-icon {
  491. color: #0082BA;
  492. font-weight: 700;
  493. &.children-open:before {
  494. content: '\f056';
  495. }
  496. &.children-closed:before{
  497. content: '\f055';
  498. }
  499. &.not-routable {
  500. color: #CE431D;
  501. }
  502. &.not-visible {
  503. color: #999;
  504. }
  505. &.modular {
  506. color: #9055AF;
  507. }
  508. }
  509. #pages-legend {
  510. margin-top: 1.5rem;
  511. text-align: center;
  512. h2, ul, li {
  513. display: inline-block;
  514. }
  515. li {
  516. margin-right: 0.75rem;
  517. }
  518. }
  519. }
  520. #page-filtering {
  521. margin: 0 $padding-default 1rem;
  522. @include clearfix;
  523. @include breakpoint(mobile-only) {
  524. margin: -1rem 1rem 1rem;
  525. }
  526. .page-filters {
  527. width: 60%;
  528. float: left;
  529. @include breakpoint(mobile-only) {
  530. width: 100%;
  531. }
  532. }
  533. .page-search {
  534. position: relative;
  535. width: 40%;
  536. float: left;
  537. padding-left: 2rem;
  538. text-indent: 2.5rem;
  539. &:after {
  540. position: absolute;
  541. right: 15px;
  542. top: 10px;
  543. content: '\f002';
  544. font-family: 'FontAwesome';
  545. }
  546. @include breakpoint(mobile-only) {
  547. width: 100%;
  548. padding-top: 1rem;
  549. padding-left: 0rem;
  550. &:after {
  551. top: 1.5rem;
  552. }
  553. }
  554. }
  555. .page-shortcuts {
  556. @include clearfix;
  557. clear: both;
  558. padding-top:5px;
  559. }
  560. .selectize-control.single.plugin-remove_button .selectize-input,
  561. .selectize-control.multi .selectize-input {
  562. padding: ($leading-margin / 4) ($leading-margin / 4);
  563. &.has-items {
  564. padding-top: 6px;
  565. padding-bottom: 4px;
  566. }
  567. input {
  568. font-size: $core-font-size;
  569. line-height: $core-line-height;
  570. }
  571. .item {
  572. color: #777;
  573. background: #eee;
  574. padding: 2px 10px;
  575. &[data-value='Routable'] {
  576. background: #CE431D;
  577. color: $white;
  578. }
  579. &[data-value='NonRoutable'] {
  580. color: #CE431D;
  581. }
  582. &[data-value='Visible'] {
  583. background: #0082BA;
  584. color: $white;
  585. }
  586. &[data-value='NonVisible'] {
  587. color: #0082BA;
  588. }
  589. &[data-value='Modular'] {
  590. background: #9055AF;
  591. color: $white;
  592. }
  593. &[data-value='NonModular'] {
  594. color: #9055AF;
  595. }
  596. &[data-value='Published'] {
  597. background: #0093B8;
  598. color: $white;
  599. }
  600. &[data-value='NonPublished'] {
  601. color: #0093B8;
  602. }
  603. }
  604. }
  605. }
  606. .admin-form-wrapper {
  607. position: relative;
  608. }
  609. #admin-topbar {
  610. position: absolute;
  611. right: 5px;
  612. height: 50px;
  613. @include breakpoint(mobile-only) {
  614. position: relative;
  615. width: 100%;
  616. right: 0;
  617. padding: 0 .5rem;
  618. margin: -2rem 0 2rem 0;
  619. }
  620. #admin-mode-toggle, #admin-lang-toggle {
  621. @extend %vertical-align;
  622. height: 38px;
  623. display: inline-flex;
  624. vertical-align: inherit;
  625. @include breakpoint(mobile-only) {
  626. float: right;
  627. }
  628. }
  629. #admin-lang-toggle {
  630. z-index: 3;
  631. float: left;
  632. margin-right: 5px;
  633. button {
  634. padding: 0.3rem 0.5rem;
  635. height: 100%;
  636. }
  637. .dropdown-menu {
  638. button {
  639. width: 100%;
  640. }
  641. }
  642. }
  643. .switch-grav {
  644. border: 0;
  645. line-height: 38px;
  646. }
  647. .switch-toggle {
  648. @include breakpoint(mobile-only) {
  649. width: 100%;
  650. }
  651. }
  652. }
  653. @for $i from 0 to 10 {
  654. .depth-#{$i} .row {
  655. padding-left: 3rem * ($i + 1);
  656. }
  657. @include breakpoint(mobile-only) {
  658. .depth-#{$i} .row {
  659. padding-left: 1rem * ($i + 1);
  660. }
  661. }
  662. }
  663. .selectize-route-option {
  664. display: flex;
  665. > :first-child {
  666. flex: 0 0 auto;
  667. width: auto;
  668. margin-right: 10px;
  669. }
  670. > :last-child {
  671. flex: 1 1 auto;
  672. > * {
  673. display: block;
  674. }
  675. }
  676. }
  677. .hidden {
  678. display: none!important;
  679. }
  680. .switch-toggle input[type="radio"] {
  681. display: none!important;
  682. }
  683. [data-acl_picker] {
  684. .permissions-item {
  685. display: flex;
  686. align-items: center;
  687. vertical-align: center;
  688. .selectize-control, a, input, button {
  689. display: inline-flex;
  690. margin: 0 .5rem;
  691. align-items: center;
  692. vertical-align: center;
  693. }
  694. .selectize-control {
  695. flex-grow: 1;
  696. }
  697. .selectize-control {
  698. margin-left: 0;
  699. }
  700. .switch-toggle {
  701. margin: 0;
  702. }
  703. &:last-child {
  704. margin-right: 0;
  705. }
  706. }
  707. }