Skip to content

Instantly share code, notes, and snippets.

Created October 7, 2015 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/89d6fc1e84db9e3d17a5 to your computer and use it in GitHub Desktop.
Save anonymous/89d6fc1e84db9e3d17a5 to your computer and use it in GitHub Desktop.
Elemental CSS for the Image Slider block
div.ccm-page .ccm-image-slider-container {
border-bottom: 2px solid #f0eee1;
padding-top: 20px;
margin-bottom: 70px;
background-color: transparent;
background-repeat: repeat;
/* background-image is moved to main.less because it needs to be in the theme root */
}
div.ccm-page .ccm-image-slider-container .ccm-image-slider {
margin-right: auto;
margin-left: auto;
padding-left: 15px;
padding-right: 15px;
}
div.ccm-page .ccm-image-slider-container .ccm-image-slider .rslides li {
max-height: 220px;
}
@media (min-width: 480px) and (max-width: 767px) {
div.ccm-page .ccm-image-slider-container .ccm-image-slider {
width: 100%;
}
div.ccm-page .ccm-image-slider-container .ccm-image-slider .rslides li {
max-height: 320px;
}
}
@media (min-width: 768px) {
div.ccm-page .ccm-image-slider-container .ccm-image-slider {
width: 750px;
}
div.ccm-page .ccm-image-slider-container .ccm-image-slider .rslides li {
max-height: 350px;
}
}
@media (min-width: 992px) {
div.ccm-page .ccm-image-slider-container .ccm-image-slider {
width: 970px;
}
div.ccm-page .ccm-image-slider-container .ccm-image-slider .rslides li {
max-height: 429px;
}
}
@media (min-width: 1200px) {
div.ccm-page .ccm-image-slider-container .ccm-image-slider {
width: 1170px;
}
div.ccm-page .ccm-image-slider-container .ccm-image-slider .rslides li {
max-height: 480px;
}
}
div.ccm-page .ccm-image-slider-container .ccm-image-slider:before,
div.ccm-page .ccm-image-slider-container .ccm-image-slider:after {
content: " ";
display: table;
}
div.ccm-page .ccm-image-slider-container .ccm-image-slider:after {
clear: both;
}
div.ccm-page .ccm-image-slider-container .ccm-image-slider-inner {
margin-left: -15px;
margin-right: -15px;
position: relative;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
@media (min-width: 1200px) {
div.ccm-page .ccm-image-slider-container .ccm-image-slider-inner {
float: left;
width: 100%;
}
}
div.ccm-page .ccm-image-slider-container .rslides_nav {
opacity: 1;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-ms-border-radius: 4px;
height: 38px;
margin-top: -20px;
width: 38px;
background: rgba(0, 0, 0, 0.92);
}
div.ccm-page .ccm-image-slider-container .rslides_nav.next {
color: white;
-webkit-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
right: 40px;
}
div.ccm-page .ccm-image-slider-container .rslides_nav.next:hover {
text-decoration: none;
color: black;
background: white;
}
div.ccm-page .ccm-image-slider-container .rslides_nav.next:before {
-webkit-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
content: "\f054";
font-family: FontAwesome;
font-size: 16px;
display: block;
margin-top: 10px;
margin-left: 14px;
}
div.ccm-page .ccm-image-slider-container .rslides_nav.prev {
color: white;
-webkit-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
left: 40px;
}
div.ccm-page .ccm-image-slider-container .rslides_nav.prev:hover {
text-decoration: none;
color: black;
background: white;
}
div.ccm-page .ccm-image-slider-container .rslides_nav.prev:after {
-webkit-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
content: "\f053";
font-family: FontAwesome;
font-size: 16px;
display: block;
margin-top: 10px;
margin-left: 12px;
}
div.ccm-page .ccm-image-slider-container .rslides_tabs {
padding-left: 0px;
padding-top: 15px;
padding-bottom: 10px;
}
div.ccm-page .ccm-image-slider-container .rslides_tabs li {
list-style-type: none;
display: inline-block;
margin-right: 5px;
}
div.ccm-page .ccm-image-slider-container .rslides_tabs li.rslides_here a {
background: #75ca2a;
}
div.ccm-page .ccm-image-slider-container .rslides_tabs li a {
overflow: hidden;
text-indent: 99px;
background: #ccccc9;
width: 15px;
height: 15px;
display: inline-block;
margin-right: 10px;
-webkit-border-radius: 30px;
-moz-border-radius: 30px;
border-radius: 30px;
-ms-border-radius: 30px;
}
div.ccm-page .ccm-image-slider-container .ccm-image-slider-text h2 {
color: #75ca2a;
font-family: 'Titillium Web';
font-size: 3.2em;
font-weight: 200;
margin-bottom: 5%;
}
div.ccm-page .ccm-image-slider-container .ccm-image-slider-text p {
color: #6e6e6e;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 1.1em;
font-weight: 400;
width: 80%;
}
div.ccm-page .ccm-image-slider-container.ccm-block-image-slider-arrows .ccm-image-slider-inner {
margin-left: -15px;
margin-right: -15px;
position: relative;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
margin-bottom: 60px;
}
@media (min-width: 1200px) {
div.ccm-page .ccm-image-slider-container.ccm-block-image-slider-arrows .ccm-image-slider-inner {
margin-left: 8.33333333%;
}
}
@media (min-width: 1200px) {
div.ccm-page .ccm-image-slider-container.ccm-block-image-slider-arrows .ccm-image-slider-inner {
float: left;
width: 83.33333333%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment