Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SVG images! Carousel working with sidebar buttons.
- Loading branch information
1 parent
60dbd51
commit b08b4d3
Showing
9 changed files
with
314 additions
and
41 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,96 @@ | |||
.carousel { | |||
position: relative; | |||
margin-bottom: 18px; | |||
line-height: 1; | |||
} | |||
.carousel-inner { | |||
overflow: hidden; | |||
width: 100%; | |||
position: relative; | |||
} | |||
.carousel .item { | |||
display: none; | |||
position: relative; | |||
-webkit-transition: 0.6s ease-in-out left; | |||
-moz-transition: 0.6s ease-in-out left; | |||
-ms-transition: 0.6s ease-in-out left; | |||
-o-transition: 0.6s ease-in-out left; | |||
transition: 0.6s ease-in-out left; | |||
} | |||
.carousel .item > img { | |||
display: block; | |||
line-height: 1; | |||
} | |||
.carousel .active, | |||
.carousel .next, | |||
.carousel .prev { | |||
display: block; | |||
} | |||
.carousel .active { | |||
left: 0; | |||
} | |||
.carousel .next, | |||
.carousel .prev { | |||
position: absolute; | |||
top: 0; | |||
width: 100%; | |||
} | |||
.carousel .next { | |||
left: 100%; | |||
} | |||
.carousel .prev { | |||
left: -100%; | |||
} | |||
.carousel .next.left, | |||
.carousel .prev.right { | |||
left: 0; | |||
} | |||
.carousel .active.left { | |||
left: -100%; | |||
} | |||
.carousel .active.right { | |||
left: 100%; | |||
} | |||
.carousel-control { | |||
position: absolute; | |||
top: 40%; | |||
left: 15px; | |||
width: 40px; | |||
height: 40px; | |||
margin-top: -20px; | |||
font-size: 60px; | |||
font-weight: 100; | |||
line-height: 30px; | |||
color: #ffffff; | |||
text-align: center; | |||
background: #222222; | |||
border: 3px solid #ffffff; | |||
-webkit-border-radius: 23px; | |||
-moz-border-radius: 23px; | |||
border-radius: 23px; | |||
opacity: 0.5; | |||
filter: alpha(opacity=50); | |||
} | |||
.carousel-control.right { | |||
left: auto; | |||
right: 15px; | |||
} | |||
.carousel-control:hover { | |||
color: #ffffff; | |||
text-decoration: none; | |||
opacity: 0.9; | |||
filter: alpha(opacity=90); | |||
} | |||
.carousel-caption { | |||
position: absolute; | |||
left: 0; | |||
right: 0; | |||
bottom: 0; | |||
padding: 10px 15px 5px; | |||
background: #333333; | |||
background: rgba(0, 0, 0, 0.75); | |||
} | |||
.carousel-caption h4, | |||
.carousel-caption p { | |||
color: #ffffff; | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,36 +1,120 @@ | |||
/* imports */ | |||
@import 'variables'; | |||
@import 'mixins'; | |||
|
|||
section { | section { | ||
height: 100%; | height: 100%; | ||
.slider { | #carousel-excuses { | ||
height: 100%; | height: 100%; | ||
.prev, .next { | .previous-button, .forward-button { | ||
background-color: rgba(0, 0, 0, 0.05); | background-color: rgba(0, 0, 0, 0.05); | ||
float: left; | float: left; | ||
height: 100%; | height: 100%; | ||
width: 10%; | width: 10%; | ||
z-index: 2; | |||
|
|||
} | |||
.previous-button { | |||
background-image: url('/assets/upload.svg'); | |||
background-image: none, url('/assets/upload.svg'), url('/assets/upload.svg'); | |||
background-size: 60% auto; | |||
background-repeat: no-repeat; | |||
background-position: center center; | |||
opacity: 0.4; | |||
transition: opacity 200ms; | |||
-moz-transition: opacity 200ms; | |||
-webkit-transition: opacity 200ms; | |||
-o-transition: opacity 200ms; | |||
&:hover { | &:hover { | ||
background-color: rgba(0, 0, 0, 0.15); | opacity: 0.6; | ||
} | transition: opacity 200ms; | ||
.label { | -moz-transition: opacity 200ms; | ||
position: absolute; | -webkit-transition: opacity 200ms; | ||
top: 45%; | -o-transition: opacity 200ms; | ||
span { | |||
display: block; | |||
text-align: center; | |||
} | |||
} | } | ||
} | } | ||
.prev { | .forward-button { | ||
background-image: url('/assets/upload.svg'); | |||
background-image: none, url('/assets/upload.svg'), url('/assets/upload.svg'); | |||
background-size: 60% auto; | |||
background-repeat: no-repeat; | |||
background-position: center center; | |||
opacity: 0.4; | |||
transition: opacity 200ms; | |||
-moz-transition: opacity 200ms; | |||
-webkit-transition: opacity 200ms; | |||
-o-transition: opacity 200ms; | |||
&:hover { | |||
opacity: 0.6; | |||
transition: opacity 200ms; | |||
-moz-transition: opacity 200ms; | |||
-webkit-transition: opacity 200ms; | |||
-o-transition: opacity 200ms; | |||
} | |||
} | } | ||
.content { | .carousel-inner { | ||
padding-top: 90px; | |||
padding-bottom: 90px; | |||
float: left; | float: left; | ||
margin-top: 90px; | |||
margin-bottom: 5%; | |||
width: 80%; | width: 80%; | ||
ul { | .item { | ||
margin: 40px; | padding: 5%; | ||
min-height: 200px; | |||
} | } | ||
} | } | ||
.next { | } | ||
} | |||
|
|||
.details { | |||
margin: 20px 0; | |||
h3 { | |||
float: left; | |||
font-size: 12px; | |||
letter-spacing: 2px; | |||
line-height: 32px; | |||
margin-right: 10px; | |||
text-transform: uppercase; | |||
} | |||
ul { | |||
float: left; | |||
li { | |||
background-color: $blue; | |||
color: #fff; | |||
float: left; | |||
font-size: 12px; | |||
letter-spacing: 1px; | |||
line-height: 18px; | |||
margin: 2px 5px; | |||
padding: 5px 10px; | |||
text-transform: uppercase; | |||
a { | |||
color: #fff; | |||
} | |||
} | |||
} | |||
} | |||
|
|||
.favorites { | |||
|
|||
} | |||
.tags { | |||
li.tag { | |||
background-color: $blue; | |||
color: #fff; | |||
float: left; | |||
font-size: 12px; | |||
letter-spacing: 1px; | |||
line-height: 18px; | |||
margin: 2px 5px; | |||
padding: 5px 10px; | |||
text-transform: uppercase; | |||
@include border_radius(25px); | |||
@include box_shadow_inset(0, 0, 2px, 2px, rgba(0, 0, 0, 0.03)); | |||
a { | |||
color: #fff; | |||
} | |||
&:hover { | |||
background-color: $blue_shade; | |||
} | } | ||
} | } | ||
} | } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.