Jump to content

Vertical Tabs with list-items (need button to sit at bottom of text)

Recommended Posts

https://cello-badger-a8a3.squarespace.com/?password=demo

I've created Vertical Tabs using a .user-items-list-section

It's pretty much working as expected EXCEPT for the button. How can I get the button to sit at the bottom of the text?

 

This is my code thus far.

/* list container */
ul.user-items-list-item-container.user-items-list-simple {
    display: flex;
      grid-gap: 0 !important;
    padding:0;
      width: 100%;
}
li.list-item {
  width: 0% !important;
  cursor: pointer;
}

/* *** title *** */
.list-item-content__title {
    writing-mode: vertical-rl;
    height: 100%;
    display: flex;
    align-items: start;
    justify-content: end;
    width: 40px;
    transform: rotate(180deg);
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
}

/* hidden content */
li.list-item {
    height: 375px !important;
    padding:3% !important;
    webkit-transition: 0.8s;
     -o-transition: 0.8s;
    transition: 0.8s;
    position: relative;
    overflow: hidden;
    list-style: none;
}
/* description */
.list-item-content__description {
    background: @light1;
      text-align: left !important;
      overflow: scroll;
    width: 85%;
    height: 100%;
    position: absolute;
    right: 0;
    top:0;
      margin-top: 0 !important;
    opacity: 0;
    padding:30px;
    box-sizing:border-box;
    webkit-transition: 0.8s;
    -o-transition: 0.8s;
    transition: 0.8s;
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
}
  
/* button */
.list-item-content__button-container {
    background: blue;
      text-align: left !important;
      overflow: scroll;
    width: 85%;
    height: 20%;
    position: absolute;
    left: 40%;
    top: 0px;
      margin-top: 0 !important;
    opacity: 1;
    padding:10px;
    box-sizing:border-box;
    webkit-transition: 0.8s;
    -o-transition: 0.8s;
    transition: 0.8s;
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
}
/* *** active tab *** */
li.list-item.active {
    width: 100% !important;
}
li.list-item.active .list-item-content__description {
    opacity: 1;
    -webkit-transition-delay: 0.6s;
    -moz-transition-delay: 0.6s;
    -o-transition-delay: 0.6s;
    transition-delay: 0.6s;
    transform: none;
}

li.list-item.active .list-item-content__title {
    left:25px;
    right:auto;
    margin:0;
}

Thank you!

Screenshot 2023-05-18 at 11.03.38 AM.png

Edited by StudioFC
added code
Link to comment
  • Replies 2
  • Views 442
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.