The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Accordion Help

View previous topic View next topic Go down

Solved Accordion Help

Post by PA on July 4th 2014, 11:15 pm

So I know I've been asking a lot of questions but this should hopefully be the last one.

Anyway I've been using the the forumotion accordion, or something like it.

Here is the CSS:
Code:
.liteAccordion {
  text-align: left;
  font-size: 16px;
  line-height: 24px;
  font: 'Helvetica Neue', Verdana, Arial, sans-serif;
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000;
  -webkit-tap-highlight-color: transparent;
}
.liteAccordion, .liteAccordion * { padding: 0; margin: 0; border: 0; box-sizing: content-box }
.liteAccordion > ol { position: relative; overflow: hidden; height: 100%; margin: 0; padding: 0; list-style-type: none }
.liteAccordion > ol > li { list-style-type: none }
.liteAccordion .slide > h2 {
  color: black;
  font-size: 16px;
  font-weight: normal;
  margin: 0;
  z-index: 100;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-backface-visibility: hidden; /* fixes chrome bug */
  -webkit-transform: translateX(-100%) rotate(-90deg);
  -webkit-transform-origin: right top;
  -moz-transform: translateX(-100%) rotate(-90deg);
  -moz-transform-origin: right top;
  -o-transform: translateX(-100%) rotate(-90deg);
  -o-transform-origin: right top;
  transform: translateX(-100%) rotate(-90deg);
  transform-origin: right top;
}
.liteAccordion .slide > h2 span {
  display: block;
  padding-right: 8%;
  text-align: right;
  height: 90%;
  margin-top: 5px;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.liteAccordion .slide > h2 b {
  display: inline-block;
  position: absolute;
  top: 13%;
  left: 10%;
  text-align: center;
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
}

.liteAccordion .slide > h2:hover { cursor: pointer }
.liteAccordion .slide > div { height: 100%; position: absolute; top: 0; z-index: 10; overflow: hidden; background: white }
.liteAccordion .ap-caption { padding: 10px 15px; position: absolute; bottom: 20px; right: 30px; z-index: 3; background: black;
  background: rgba(0,0,0,0.7); color: white; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px }
.liteAccordion noscript p { padding: 10px; margin: 0; background: white }

/****************************************** Basic */
.liteAccordion.basic .slide > h2 { background: #333; color: white; line-height: 225% }

/****************************************** Dark */
.liteAccordion.dark {
  border: 9px solid #353535;
  border-bottom-width: 8px;
  padding: 5px 5px 6px 0;
  background: #030303;
  -webkit-box-shadow: 0 -1px 0 #5b5b5b inset, 0 5px 15px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 0 -1px 0 #5b5b5b inset, 0 5px 15px rgba(0, 0, 0, 0.4);
  -ms-box-shadow: 0 -1px 0 #5b5b5b inset, 0 5px 15px rgba(0, 0, 0, 0.4);
  -o-box-shadow: 0 -1px 0 #5b5b5b inset, 0 5px 15px rgba(0, 0, 0, 0.4);
  box-shadow: 0 -1px 0 #5b5b5b inset, 0 5px 15px rgba(0, 0, 0, 0.4);
}
.liteAccordion.dark .slide > h2 { background: #030303; text-shadow: 0 -1px 0 #030303; line-height: 265% }
.liteAccordion.dark .slide > h2 span { background: #353535; color: white }
.liteAccordion.dark .slide > h2 b { background: #353535; color: #030303; text-shadow: -1px 1px 0 #5b5b5b }
.liteAccordion.dark .slide > h2.selected span, .liteAccordion.dark .slide > h2.selected span:hover {
  background: #353535;
  background: -moz-linear-gradient(left, #353535 0%, #555555 100%);
  background: -webkit-gradient(linear, left top, right top, color-stop(0%,#353535), color-stop(100%,#555555));
  background: -webkit-linear-gradient(left, #353535 0%,#555555 100%);
  background: -o-linear-gradient(left, #353535 0%,#555555 100%);
  background: -ms-linear-gradient(left, #353535 0%,#555555 100%);
  background: linear-gradient(left, #353535 0%,#555555 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#353535', endColorstr='#555555',GradientType=1 );
}
.liteAccordion.dark .slide > h2.selected b {
  background: #383838;
  background: -moz-linear-gradient(top, #3a3a3a 0%, #363636 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3a3a3a), color-stop(100%,#363636));
  background: -webkit-linear-gradient(top, #3a3a3a 0%,#363636 100%);
  background: -o-linear-gradient(top, #3a3a3a 0%,#363636 100%);
  background: -ms-linear-gradient(top, #3a3a3a 0%,#363636 100%);
  background: linear-gradient(top, #3a3a3a 0%,#363636 100%);
}
.liteAccordion.dark .slide > div { background: #030303; margin-left: 5px }

/***************************************** Light */
.liteAccordion.light {
  border: 9px solid white;
  border-bottom-width: 8px;
  padding: 5px 5px 6px 0;
  background: #a0a0a0;
  -webkit-box-shadow: -1px -1px 0 #c0c0c0, 1px 1px 0 #c0c0c0, 0 5px 15px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: -1px -1px 0 #c0c0c0, 1px 1px 0 #c0c0c0, 0 5px 15px rgba(0, 0, 0, 0.4);
  -ms-box-shadow: -1px -1px 0 #c0c0c0, 1px 1px 0 #c0c0c0, 0 5px 15px rgba(0, 0, 0, 0.4);
  -o-box-shadow: -1px -1px 0 #c0c0c0, 1px 1px 0 #c0c0c0, 0 5px 15px rgba(0, 0, 0, 0.4);
  box-shadow: -1px -1px 0 #c0c0c0, 1px 1px 0 #c0c0c0, 0 5px 15px rgba(0, 0, 0, 0.4);
}
.liteAccordion.light .slide > h2 { background: #a0a0a0; text-shadow: 0 -1px 0 white; line-height: 265% }
.liteAccordion.light .slide > h2 span {
  background: #fcfcfc;
  background: -moz-linear-gradient(left, #fcfcfc 0%, #ededed 100%);
  background: -webkit-gradient(linear, left top, right top, color-stop(0%,#fcfcfc), color-stop(100%,#ededed));
  background: -webkit-linear-gradient(left, #fcfcfc 0%,#ededed 100%);
  background: -o-linear-gradient(left, #fcfcfc 0%,#ededed 100%);
  background: -ms-linear-gradient(left, #fcfcfc 0%,#ededed 100%);
  background: linear-gradient(left, #fcfcfc 0%,#ededed 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc', endColorstr='#ededed',GradientType=1 );
  -webkit-box-shadow: -1px -1px 0 #909090 inset, 1px 1px 0 #909090 inset;
  -moz-box-shadow: -1px -1px 0 #909090 inset, 1px 1px 0 #909090 inset;
  -o-box-shadow: -1px -1px 0 #909090 inset, 1px 1px 0 #909090 inset;
  box-shadow: -1px -1px 0 #909090 inset, 1px 1px 0 #909090 inset;
  color: #909090;
}
.liteAccordion.light .slide > h2 b { background: #ffffff; color: #909090; text-shadow: -1px 1px 0 white }
.liteAccordion.light .slide > h2.selected span, .liteAccordion.light .slide h2.selected span:hover, .liteAccordion.light .slide > h2.selected b { background: #ffffff }
.liteAccordion.light .slide > div { background: #a0a0a0; margin-left: 5px }

/**************************************** Stitch */
.liteAccordion.stitch {
  position: relative;
  padding: 2px 0 2px 2px;
  border: 8px solid #353535;
  background: #353535;
  -webkit-box-shadow: 0 -1px 0 #5b5b5b inset, 0 5px 15px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 0 -1px 0 #5b5b5b inset, 0 5px 15px rgba(0, 0, 0, 0.4);
  -o-box-shadow: 0 -1px 0 #5b5b5b inset, 0 5px 15px rgba(0, 0, 0, 0.4);
  box-shadow: 0 -1px 0 #5b5b5b inset, 0 5px 15px rgba(0, 0, 0, 0.4);
}
.liteAccordion.stitch:before {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: -9px;
  left: -9px;
  background: #353535;
  border: 9px solid transparent;
  -webkit-border-image: url('bg_stitch.png') 9 repeat;
  -moz-border-image: url('bg_stitch.png') 9 repeat;
  -o-border-image: url('bg_stitch.png') 9 repeat;
  border-image: url('bg_stitch.png') 9 repeat;
}
.liteAccordion.stitch .slide > h2 { background: #353535 }
.liteAccordion.stitch .slide > h2 span {
  height: auto;
  padding-right: 5%;
  color: white;
  text-shadow: -1px 1px 0 #5b5b5b;
  border: 9px solid transparent;
  background-image: url('bg_noise.png');
  margin-top: 0;
  -webkit-border-image: url('bg_stitch.png') 9 repeat;
  -moz-border-image: url('bg_stitch.png') 9 repeat;
  -o-border-image: url('bg_stitch.png') 9 repeat;
  border-image: url('bg_stitch.png') 9 repeat;
}
.liteAccordion.stitch .slide > h2.selected:after {
  content: '';
  display: block;
  height: 11px;
  width: 11px;
  position: absolute;
  bottom: -3px;
  right: 38px;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
  border: 9px solid transparent;
  border-top: 0;
  border-left: 0;
  -webkit-border-image: url('bg_stitch.png') 9 repeat;
  -moz-border-image: url('bg_stitch.png') 9 repeat;
  -o-border-image: url('bg_stitch.png') 9 repeat;
  border-image: url('bg_stitch.png') 9 repeat;
  background-image: url('bg_noise.png');
}

.liteAccordion.stitch .slide:nth-child(1) > h2 span, .liteAccordion.stitch .slide:nth-child(1) > h2:after { background-color: #964a4a }
.liteAccordion.stitch .slide:nth-child(2) > h2 span, .liteAccordion.stitch .slide:nth-child(2) > h2:after { background-color: #896e4d }
.liteAccordion.stitch .slide:nth-child(3) > h2 span, .liteAccordion.stitch .slide:nth-child(3) > h2:after { background-color: #7a8f5c }
.liteAccordion.stitch .slide:nth-child(4) > h2 span, .liteAccordion.stitch .slide:nth-child(4) > h2:after { background-color: #4a6f74 }
.liteAccordion.stitch .slide:nth-child(5) > h2 span, .liteAccordion.stitch .slide:nth-child(5) > h2:after { background-color: #7b4d6a }
.liteAccordion.stitch .slide > h2 b { top: 19%; color: black; text-shadow: 1px 1px 0 #5b5b5b }
.liteAccordion.stitch .slide > div { margin-right: 6px }
.liteAccordion.stitch.rounded > ol { -webkit-border-radius: 0; -moz-border-radius: 0; -ms-border-radius: 0; border-radius: 0 }

/*************************************** Rounded */
.liteAccordion.rounded, .rounded > ol { -webkit-border-radius: 6px; -moz-border-radius: 6px; -ms-border-radius: 6px; border-radius: 6px }
.liteAccordion.rounded .slide > h2 span { -webkit-border-radius: 4px; -moz-border-radius: 4px; -ms-border-radius: 4px; border-radius: 4px }

/******************************************** IE */
/* stitch */
.liteAccordion.ie.stitch .slide > h2 { /*line-height: 265%*/ }
.liteAccordion.ie.stitch .slide > h2 span { /*height: 89%; padding-right: 8%*/ }
.liteAccordion.ie.stitch .slide > h2.selected:after { display: none }
.liteAccordion.ie.stitch .slide-0 > h2 span { background-color: #c25252 }
.liteAccordion.ie.stitch .slide-1 > h2 span { background-color: #ca9859 }
.liteAccordion.ie.stitch .slide-2 > h2 span { background-color: #96ba5f }
.liteAccordion.ie.stitch .slide-3 > h2 span { background-color: #59abb7 }
.liteAccordion.ie.stitch .slide-4 > h2 span { background-color: #bb6098 }
.liteAccordion.ie.stitch .slide-5 > h2 span { background-color: #c25252 }
.liteAccordion.ie.stitch .slide-6 > h2 span { background-color: #ca9859 }
.liteAccordion.ie.stitch .slide-7 > h2 span { background-color: #96ba5f }
.liteAccordion.ie.stitch .slide-8 > h2 span { background-color: #59abb7 }
.liteAccordion.ie.stitch .slide-9 > h2 span { background-color: #bb6098 }

/* transforms */
.liteAccordion.ie .slide > h2,
.liteAccordion.ie .slide > h2 span,
.liteAccordion.ie .slide > h2 b { filter: none; -ms-filter: none; -ms-transform: none }
.liteAccordion.ie7 .slide > h2 { filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3) }
.liteAccordion.ie7 .slide > h2 b { filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1) }
.liteAccordion.ie8 .slide > h2 { -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)" }
.liteAccordion.ie8 .slide > h2 b { -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)" }
.liteAccordion.ie9 .slide > h2 { -ms-transform: translateX(-100%) rotate(-90deg); -ms-transform-origin: right top }
.liteAccordion.ie9 .slide > h2 b { -ms-transform: rotate(90deg) }

/* misc */
.liteAccordion.ie7 .slide > h2 b, .liteAccordion.ie8 .slide > h2 b { top: 44%; left: 5% }
.liteAccordion.ie7.stitch .slide > h2 b, .liteAccordion.ie8.stitch .slide > h2 b { top: 36% }
.liteAccordion.ie9.stitch { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) }
div.index-box dl.icon dd.dterm {width: 58%;}
div.index-box dl.icon dd.lastpost {float: right; width: 29%;}

.expand, .contract {position: absolute; top: 6px; right: 10px; cursor: pointer; width: 9px; height: 9px; background: url(http://illiweb.com/fa/m/tabs_more1.gif);}
.contract {background: url(http://illiweb.com/fa/m/tabs_less1.gif);}

And the result:


The problems are highlighted in the image.

First, if I start typing (in homepage -> generalities) the text starts in the grey padding rather than the white background. The result is that you cant really make out the T in Test. I need a code to position the entire text forward for each slide.

Second, the white background. I can't figure out how to change that background color..

Lastly, the border of the accordion is too thick. I can't figure out how to reduce it.

PA
Forumember

Posts : 219
Reputation : 2
Language : english

Back to top Go down

Solved Re: Accordion Help

Post by SLGray on July 5th 2014, 3:13 am

Second:
Code:
.liteAccordion .slide > div { height: 100%; position: absolute; top: 0; z-index: 10; overflow: hidden; background: white }
.liteAccordion .ap-caption { padding: 10px 15px; position: absolute; bottom: 20px; right: 30px; z-index: 3; background: black;
background: rgba(0,0,0,0.7); color: white; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px }
.liteAccordion noscript p { padding: 10px; margin: 0; background: white }

Third:
Code:
.liteAccordion.dark {
border: 9px solid #353535;


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36735
Reputation : 2446
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Accordion Help

Post by conan@10 on July 5th 2014, 4:41 am

Thanks pro, I am needing :v

conan@10
New Member

Male Posts : 24
Reputation : 2
Language : Vietnam
Location : HCMC

http://yukimono.net

Back to top Go down

Solved Re: Accordion Help

Post by PA on July 6th 2014, 8:42 pm

Thanks SLgray.
Any idea how to do the first???

PA
Forumember

Posts : 219
Reputation : 2
Language : english

Back to top Go down

Solved Re: Accordion Help

Post by SLGray on July 6th 2014, 9:01 pm

Please post your forum's link.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36735
Reputation : 2446
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Accordion Help

Post by PA on July 7th 2014, 3:15 am

SLgray you can mark this as solved for now since you solved at least two of the problems. For now I don't have enough content on the accordion so I disabled it for a day, so you can't really see it on my forum. Thanks though.

PA
Forumember

Posts : 219
Reputation : 2
Language : english

Back to top Go down

Solved Re: Accordion Help

Post by SLGray on July 7th 2014, 3:38 am

Ok.

Topic Solved & Archived


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36735
Reputation : 2446
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum