Skip to content

Commit

Permalink
Update Travel Page
Browse files Browse the repository at this point in the history
  • Loading branch information
SeeChen committed Nov 14, 2024
1 parent 498c069 commit 9e3537e
Show file tree
Hide file tree
Showing 3 changed files with 173 additions and 101 deletions.
58 changes: 46 additions & 12 deletions CascadingStyleSheets/Travel/travel.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@

--travel-ContentExpand-left: 0;
--travel-ContentExpand-right: 0;
--travel-ContentExpand-width: 10vw;
--travel-ContentExpand-width: 1em;
--travel-ContentExpand-bottom: calc(2.2 * var(--travel-Traveled-List-font-size));

--travel-ContentExpand-Expanded-btn-right: 0;
--travel-ContentExpand-Expanded-btn-bottom: 0.25em;
--travel-ContentExpand-Expanded-TraveledList-bottom: calc(100vh - 5.5em);

--travel-btn-MapsBack: 5em;

--travel-before-scale-top: 0;
Expand All @@ -45,9 +49,13 @@

--travel-ContentExpand-left: auto;
--travel-ContentExpand-right: 5vw;
--travel-ContentExpand-width: auto;
--travel-ContentExpand-width: 1em;
--travel-ContentExpand-bottom: calc(2.1 * var(--travel-Traveled-List-font-size));

--travel-ContentExpand-Expanded-btn-right: calc(100vw / 3);
--travel-ContentExpand-Expanded-btn-bottom: 0.5em;
--travel-ContentExpand-Expanded-TraveledList-bottom: calc(100vh - 4em);

--travel-btn-MapsBack: 6em;
}
}
Expand Down Expand Up @@ -221,7 +229,6 @@
#box_TravelPage #travel_ContentExpand {

position: fixed;
display: flex;

color: var(--font-color-normal);
font-size: var(--font-size-normal);
Expand All @@ -238,25 +245,52 @@

cursor: pointer;

transform: rotateX(0deg) scaleX(3);

border-top: 0em solid #00000000;
border-bottom: 0em solid #00000000;

transition: all 1s;
z-index: 12;
}

#box_TravelPage #travel_ContentExpand span {
#box_TravelPage #travel_ContentExpand.contentExpand {

transform: rotateX(180deg) scaleX(3);
right: var(--travel-ContentExpand-Expanded-btn-right);
bottom: var(--travel-ContentExpand-Expanded-btn-bottom);

padding: 0 1vw;
width: calc(100vw / 3);

transform: rotate(0);
box-sizing: border-box;

transition: transform 1s;
border-top: 0.15em solid #888;
border-bottom: 0.15em solid #888;
border-radius: 0.1em;
}

#box_TravelPage #travel_ContentExpand span.contentExpand {
div:has(> #travel_ContentExpand) {

background: #FFFFFF80;

width: 100vw;
height: calc(100vh - var(--font-size-3em));

padding: 0 1vw;
position: fixed;

top: 100vh;

transition: all 1s;
}

div:has(> #travel_ContentExpand.contentExpand) {

top: var(--font-size-3em);
}

transform: rotate(180deg);
div:has(> #travel_ContentExpand.contentExpand) #travel_TraveledList {

transition: transform 1s;
bottom: var(--travel-ContentExpand-Expanded-TraveledList-bottom)
}

#box_TravelPage #travel_TraveledList {
Expand Down Expand Up @@ -284,7 +318,7 @@

mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);

transition: mask 0.5s;
transition: mask 0.5s, bottom 1s;
}

#box_TravelPage #travel_TraveledList.at_right {
Expand Down
Loading

0 comments on commit 9e3537e

Please sign in to comment.