From a40d67138b6e0dd5ef52bfd1fedaf28fec5df1fc Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Sun, 17 Nov 2019 03:26:26 +0530 Subject: [PATCH] :art: Moved History & Collection section to sticky right nav (initial upload). --- assets/css/styles.scss | 45 +- components/history.vue | 24 +- pages/index.vue | 1317 ++++++++++++++++++++-------------------- 3 files changed, 720 insertions(+), 666 deletions(-) diff --git a/assets/css/styles.scss b/assets/css/styles.scss index 4a890ddbc..e6f3aa50c 100644 --- a/assets/css/styles.scss +++ b/assets/css/styles.scss @@ -78,7 +78,7 @@ a { header, footer { - &>div { + & > div { display: flex; padding: 16px; width: 100%; @@ -127,7 +127,8 @@ footer { color: var(--ac-color); } -.nav-first { +.nav-first, +.sticky-inner { display: flex; order: 1; flex-flow: column; @@ -521,7 +522,7 @@ input[type="checkbox"] { display: none; &, - &+label { + & + label { vertical-align: middle; cursor: pointer; @@ -540,7 +541,7 @@ input[type="checkbox"] { } } - &:checked+label:before { + &:checked + label:before { background-color: var(--ac-color); border-color: var(--ac-color); color: var(--act-color); @@ -600,6 +601,10 @@ ol li { display: none; } +.show-on-large-screen { + display: inline-flex; +} + #installPWA { display: none; } @@ -717,7 +722,7 @@ div.tab { display: none; } -input[type="radio"]+label { +input[type="radio"] + label { padding: 8px 16px; border-bottom: 2px solid transparent; cursor: pointer; @@ -730,11 +735,11 @@ input[type="radio"]+label { } } -input[type="radio"]:checked+label { +input[type="radio"]:checked + label { border-color: var(--fg-color); } -input[type="radio"]:checked+label+div.tab { +input[type="radio"]:checked + label + div.tab { display: block; } @@ -751,7 +756,28 @@ input[type="radio"]:checked+label+div.tab { color: inherit !important; } +.page-columns { + display: flex; + flex: 1; + flex-flow: column; +} + +.inner-left { + display: flex; + order: 1; +} + +.inner-right { + display: flex; + width: 25%; + order: 2; +} + @media (max-width: $responsiveWidth) { + .content { + flex-flow: column; + } + .columns { flex-flow: column; } @@ -791,4 +817,9 @@ input[type="radio"]:checked+label+div.tab { .show-on-small-screen { display: inline-flex; } + + .sticky-inner { + position: relative; + width: 100%; + } } diff --git a/components/history.vue b/components/history.vue index 89662a95e..8d101c156 100644 --- a/components/history.vue +++ b/components/history.vue @@ -11,7 +11,7 @@ -
+
  • -
    +
  • {{ entry.status }}
  • -
    +
  • -
    +
  • -
    +
  • - -
  • -
    - - - - - - -
      -
    • - - -
    • -
    • - - -
    • -
    • - - -
    • -
    • - - - - - - - - -
    • -
    • - - -
    • -
    -
    -
      -
    • - - Content Type -
    • -
    -
    - - -
    -
      -
    • - -
    • -
    -
      -
    • - -
    • -
    • - -
    • -
      -
    • - -
    • -
      -
    -
      -
    • - -
    • -
    -
    -
    -
      -
    • - -
    -
    -
    -
    -
    - - - -
    -
    - + - - -
    -
    - - -
    - -
    - - -
    -
    - - +
    • -
      - -
      - -
      -
      - + + + + + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + + + + + + + +
    • +
    • + + +
    -
      -
    • - -
    • -
    • - -
    • -
      +
      +
      • -
      • +
      +
        +
      • +
        + + Raw Input {{ rawInput ? "Enabled" : "Disabled" }} + +
        + + +
        +
        +
      • +
      +
      +
        +
      • + + +
      • +
      +
        +
      • + +
      • +
      • + +
      • +
        +
      • + +
      • +
        +
      +
        +
      • + +
      • +
      +
      +
      +
        +
      • + + +
      • +
      -
    -
      -
    • - -
    • -
    -
    - Include in URL
    -
    -
    - - -
    -
    - - -
      -
    • -
      - -
      - -
      -
      - -
    • -
    -
      -
    • - -
    • -
    • - -
    • -
      -
    • - -
    • -
      -
    -
      -
    • - -
    • -
    -
    -
    - - -
    -
    - - -
      -
    • -
      - -
      - -
      -
      - -
    • -
    -
      -
    • - -
    • -
    • - -
    • -
      -
    • - -
    • -
      -
    -
      -
    • - -
    • -
    -
    -
    -
    - -
    - - -
      -
    • - - -
    • -
    -
      -
    • - - -
    • -
    -
      -
    • - -
      +
      + + +
      +
      + + +
      -
      - - + + +
      + +
      + + +
      +
      + + +
        +
      • +
        + +
        + +
        +
        + +
      • +
      +
        +
      • + +
      • +
      • + +
      • +
        +
      • + +
      • +
        +
      +
        +
      • + +
      • +
      +
      + Include in URL +
      +
      -
      - + + +
      +
      + + +
        +
      • +
        + +
        + +
        +
        + +
      • +
      +
        +
      • + +
      • +
      • + +
      • +
        +
      • + +
      • +
        +
      +
        +
      • + +
      • +
      +
      -
    • -
    -
    + + +
    +
    -
    + +
      +
    • +
      + +
      + +
      +
      + +
    • +
    +
      +
    • + +
    • +
    • + +
    • +
      +
    • + +
    • +
      +
    +
      +
    • + +
    • +
    +
    +
    + - - - +
    -
    - - - - - - -
    -
      -
    • -
      -

      Import cURL

      -
      - + +
      +
      +
      + + +
      +
      +
      -
    - - -
    -
    -
      -
    • - -
    • -
    -
    -
    -
      -
    • - -
    • -
    -
    - + + + - +
    +
    + + + + + + +
    +
      +
    • +
      +

      Import cURL

      +
      + +
      +
      +
    • +
    +
    +
    +
      +
    • + +
    • +
    +
    +
    +
      +
    • + +
    • +
    +
    +
    + +
    • @@ -744,6 +756,7 @@
    +