Skip to content

Instantly share code, notes, and snippets.

@raymorgado
Created December 8, 2016 09:24
Show Gist options
  • Save raymorgado/8259a6d0eadd7532de7c6b84691f9069 to your computer and use it in GitHub Desktop.
Save raymorgado/8259a6d0eadd7532de7c6b84691f9069 to your computer and use it in GitHub Desktop.
Hari ghotra AMP CSS
/* General */
.wbamp-container.wbamp-content {
width: 100%;
}
.wbamp-container.wbamp-content h1 {
color: #50230d;
font-size: 1.75em;
text-decoration: none;
font-weight: 400;
}
.wbamp-container.wbamp-content h2 {
color: #50230d;
;
font-weight: 400;
}
.wbamp-container.wbamp-content h4 {
color: #ff5029;
border-bottom: 1px dashed #acacac;
padding: 0 0 10px;
margin: 10px 0 20px;
}
.wbamp-container.wbamp-content .intro h6 {
margin-bottom: 0;
}
.wbamp-container.wbamp-content .intro h6 a {
color: #ff5029;
font-size: 16px;
text-decoration: none;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.media {
clear: both;
}
/* Breadcrumbs */
.wbamp-content .breadcrumb ul {
width: 99%;
margin: 20px 0;
padding: 0;
clear: both;
overflow: hidden;
padding-left: 5px;
background: #acacac;
}
.wbamp-content .breadcrumb ul li {
float: left;
display: inline-block;
padding-right: 10px;
color: #fff;
}
.wbamp-content .breadcrumb ul li a,
.wbamp-content .breadcrumb ul li a:visited {
color: #50230d;
text-decoration: none;
}
.wbamp-content .breadcrumb ul li a::after {
content: ">";
width: 10px;
height: 10px;
margin-left: 5px;
}
/* Buttons */
.js-filter-acc-btn {
display: none;
}
.tile article .btn-wrapper {
padding: 13px;
position: absolute;
bottom: 0;
right: 0;
}
.tile .btn-wrapper .btn {
color: #ff5029;
font-size: 16px;
line-height: 30px;
background: 0 0;
box-shadow: none;
text-transform: none;
}
/* Comments and Share block */
.comments,
.share-wrapper,
.hidden-print,
.js-share, .share,
.visible-print-block,
.print,
.vote-message {
display: none;
}
/* Nutrition Tables */
#js-mob-nutrition span {
display: none;
}
.js-acc-content {
text-align: left;
}
/* Tiles */
.tile article {
position: relative;
top: 0;
left: 0;
background-color: #f7f7f7;
display: block;
width: 100%;
min-height: 375px;
padding-bottom: 65px;
width: 260px;
margin: 20px auto;
}
.wbamp-container.wbamp-content .tile article h3 {
color: #50230d;
font-size: 19px;
margin-bottom: 0;
}
.wbamp-container.wbamp-content .tile article h4 {
color: #333;
font-size: 16px;
margin-top: 0;
padding: 0 10px;
border-bottom: none;
}
.tile article h3,
.tile article h4 {
padding: 0 10px;
font-weight: 400;
}
.tile article h6.video-api-h6 {
font-size: 16px;
color: #ff5029;
padding: 10px 13px 5px 13px;
}
.tile article ul {
padding: 13px;
position: absolute;
bottom: 0;
}
.tile article .stats {
left: 0;
}
.tile article .details {
right: 0;
}
.tile article .details .tile-num {
font-size: 11px;
position: absolute;
top: -15px;
left: 50%;
-webkit-transform: translateX(-50%);
moz-transform: translateX(-50%);
transform: translateX(-50%);
}
.tile article .details,.tile article .stats {
overflow: visible;
}
.tile article .details li,.tile article .stats li {
height: 26px;
width: 26px;
position: relative;
text-transform: uppercase;
}
.wbamp-container.wbamp-content .tile article a {
text-decoration: none;
}
/* Icons */
.icon.print {
width: 24px;
height: 24px;
background-position: -477px -12.5px;
}
.icon.play {
width: 40px;
height: 40px;
background-position: -285px -464.5px;
}
.icon.submenu {
width: 14px;
height: 14px;
background-position: -420.5px -64.25px;
}
.icon.search-icon {
width: 25px;
height: 25px;
background-position: -179px -71px;
}
.icon.search-icon-dk {
width: 25px;
height: 25px;
background-position: -179px -103.5px;
}
.icon.menu {
width: 25px;
height: 25px;
background-position: -337.5px -71.25px;
}
.icon.cart {
width: 25px;
height: 25px;
background-position: -382.5px -71.25px;
}
.icon.logo-brown,.icon.print-logo {
width: 84px;
height: 48px;
background-position: -12.5px -12.5px;
}
.icon.hari-says {
width: 48px;
height: 48px;
background-position: -12.5px -203.5px;
}
.icon.acc-btn-open {
width: 16px;
height: 10px;
background-position: -527.25px -103.5px;
}
.icon.acc-btn-open-white {
width: 16px;
height: 10px;
background-position: -527.25px -71.25px;
}
.icon.facebook-white {
width: 36px;
height: 36px;
background-position: -209px -156px;
}
.icon.twitter-white {
width: 36px;
height: 36px;
background-position: -169px -153px;
}
.icon.linkedin-white {
width: 36px;
height: 36px;
background-position: -547px -154px;
}
.icon.pinterest-white {
width: 36px;
height: 36px;
background-position: -286px -156px;
}
.icon.googleplus-white {
width: 36px;
height: 36px;
background-position: -245px -154px;
}
.icon.rss-white {
width: 36px;
height: 36px;
background-position: -372px -155px;
}
.icon.youtube-white {
width: 36px;
height: 36px;
background-position: -329.5px -156px;
}
.icon.instagram-white {
width: 36px;
height: 36px;
background-position: -465px -155px;
}
.icon.email-white {
width: 36px;
height: 36px;
background-position: -423px -154px;
}
.icon.share-white-lg {
width: 33px;
height: 33px;
background-position: -595.75px -162px;
}
.icon.facebook-white-lg {
width: 33px;
height: 33px;
background-position: -642px -163.25px;
}
.icon.twitter-white-lg {
width: 33px;
height: 33px;
background-position: -689.5px -160px;
}
.icon.linkedin-white-lg {
width: 33px;
height: 33px;
background-position: -793px -161px;
}
.icon.youtube-white-lg {
width: 33px;
height: 33px;
background-position: -742px -162px;
}
.icon.pinterest-white-lg {
width: 33px;
height: 33px;
background-position: -842px -162px;
}
.icon.email-white-lg {
width: 33px;
height: 33px;
background-position: -895.25px -160px;
}
.icon.googleplus-white-lg {
width: 33px;
height: 33px;
background-position: -944px -160px;
}
.icon.instagram-white-lg {
width: 32px;
height: 32px;
background-position: -651px -215px;
}
.icon.rss-white-lg {
width: 31px;
height: 31px;
background-position: -706.75px -215px;
}
.icon.facebook-grey {
width: 36px;
height: 36px;
background-position: -209px -196px;
}
.icon.facebook-grey:hover {
width: 36px;
height: 36px;
background-position: -209px -156px;
}
.icon.twitter-grey {
width: 36px;
height: 36px;
background-position: -169px -192px;
}
.icon.twitter-grey:hover {
width: 36px;
height: 36px;
background-position: -169px -153px;
}
.icon.pinterest-grey {
width: 36px;
height: 36px;
background-position: -286px -196px;
}
.icon.pinterest-grey:hover {
width: 36px;
height: 36px;
background-position: -286px -156px;
}
.icon.googleplus-grey {
width: 36px;
height: 36px;
background-position: -245px -194px;
}
.icon.googleplus-grey:hover {
width: 36px;
height: 36px;
background-position: -245px -154px;
}
.icon.email-grey {
width: 36px;
height: 36px;
background-position: -423px -194px;
}
.icon.email-grey:hover {
width: 36px;
height: 36px;
background-position: -423px -154px;
}
.icon.hot-none {
width: 35px;
height: 35px;
background-position: -520px -12.5px;
}
.icon.hot-mild {
width: 35px;
height: 35px;
background-position: -179.25px -12.5px;
}
.icon.hot-medium {
width: 35px;
height: 35px;
background-position: -232.5px -12.5px;
}
.icon.hot-hot {
width: 35px;
height: 35px;
background-position: -285px -12.5px;
}
.icon.contains-coconut {
width: 35px;
height: 35px;
background-position: -179.25px -371.5px;
}
.icon.vegetarian {
width: 35px;
height: 35px;
background-position: -232.25px -371.5px;
}
.icon.info {
width: 35px;
height: 35px;
background-position: -285px -371.5px;
}
.icon.contains-nuts {
width: 35px;
height: 35px;
background-position: -337.75px -371.5px;
}
.icon.lactose-free {
width: 35px;
height: 35px;
background-position: -390.5px -371.5px;
}
.icon.dairy-free {
width: 35px;
height: 35px;
background-position: -443.5px -371.5px;
}
.icon.healthy {
width: 35px;
height: 35px;
background-position: -496.25px -371.5px;
}
.icon.low-calories {
width: 35px;
height: 35px;
background-position: -549px -371.5px;
}
.icon.low-fat {
width: 35px;
height: 35px;
background-position: -602px -371.5px;
}
.icon.vegan {
width: 35px;
height: 35px;
background-position: -654.75px -371.5px;
}
.icon.wheat-free {
width: 35px;
height: 35px;
background-position: -707.5px -371.5px;
}
.icon.gluten-free {
width: 35px;
height: 35px;
background-position: -760.25px -371.5px;
}
.icon.views {
width: 35px;
height: 35px;
background-position: -813.75px -371.5px;
}
.icon.likes {
width: 35px;
height: 35px;
background-position: -867.25px -371.5px;
}
.icon.serves-1 {
width: 35px;
height: 35px;
background-position: -179.25px -418px;
}
.icon.serves-2 {
width: 35px;
height: 35px;
background-position: -232.25px -418px;
}
.icon.serves-3 {
width: 35px;
height: 35px;
background-position: -285px -418px;
}
.icon.serves-4 {
width: 35px;
height: 35px;
background-position: -337.75px -418px;
}
.icon.serves-5 {
width: 35px;
height: 35px;
background-position: -390.5px -418px;
}
.icon.serves-6 {
width: 35px;
height: 35px;
background-position: -443.5px -418px;
}
.icon.serves-7 {
width: 35px;
height: 35px;
background-position: -496.25px -418px;
}
.icon.serves-8 {
width: 35px;
height: 35px;
background-position: -549px -418px;
}
.icon.serves-9 {
width: 35px;
height: 35px;
background-position: -602px -418px;
}
.icon.serves-10 {
width: 35px;
height: 35px;
background-position: -654.75px -418px;
}
.icon.serves-11 {
width: 35px;
height: 35px;
background-position: -707.5px -418px;
}
.icon.serves-12 {
width: 35px;
height: 35px;
background-position: -760.25px -418px;
}
.icon.tile-hot-none {
width: 26px;
height: 26px;
background-position: -577.75px -12.5px;
}
.icon.tile-hot-mild {
width: 26px;
height: 26px;
background-position: -337.75px -12.5px;
}
.icon.tile-hot-medium {
width: 26px;
height: 26px;
background-position: -381px -12.5px;
}
.icon.tile-hot-hot {
width: 26px;
height: 26px;
background-position: -424px -12.5px;
}
.icon.tile-vegetarian {
width: 26px;
height: 26px;
background-position: -232.25px -332.25px;
}
.icon.tile-views {
width: 26px;
height: 26px;
background-position: -813.75px -332.25px;
}
.icon.tile-likes {
width: 26px;
height: 26px;
background-position: -867.5px -332.25px;
}
.icon {
text-indent: -1000px;
overflow: hidden;
display: block;
background-image: url(http://www.harighotra.co.uk/templates/yoo_master2/assets/img/sprite-sheet.png);
background-size: 1000px auto;
}
.icon.tile-hot-none {
width: 26px;
height: 26px;
background-position: -577.75px -12.5px;
}
.icon.tile-hot-mild {
width: 26px;
height: 26px;
background-position: -337.75px -12.5px;
}
.icon.tile-hot-medium {
width: 26px;
height: 26px;
background-position: -381px -12.5px;
}
.icon.tile-hot-hot {
width: 26px;
height: 26px;
background-position: -424px -12.5px;
}
.icon.tile-vegetarian {
width: 26px;
height: 26px;
background-position: -232.25px -332.25px;
}
.icon.tile-views {
width: 26px;
height: 26px;
background-position: -813.75px -332.25px;
}
.icon.tile-likes {
width: 26px;
height: 26px;
background-position: -867.5px -332.25px;
}
.tile article .details .tile-num {
font-size: 11px;
position: absolute;
top: -15px;
left: 50%;
-webkit-transform: translateX(-50%);
moz-transform: translateX(-50%);
transform: translateX(-50%);
}
/* Info Icons */
.info {
float: left;
margin-bottom: 15px;
}
.info li {
width: auto;
float: left;
position: relative;
top: 0;
left: 0;
margin: 0 15px 0 0;
}
.info li img {
margin-top: 17px;
height: 23px;
width: auto;
}
.info li h5 {
font-family: StagStencil-Bold-Web,Arial,Helvetica,sans-serif;
color: #ff5029;
font-size: 18px;
position: relative;
top: 0;
left: 0;
padding-top: 17px;
margin-top: 0;
display: block;
}
.info li.prep {
clear: left;
}
.info li .hint--bottom {
cursor: pointer;
}
.info li .hint::after,.info li [data-hint]::after {
background-color: rgba(0,0,0,.6);
padding: 10px 12px;
font-family: Arial,sans-serif;
}
.info li .hint--bottom::before {
border-bottom-color: rgba(0,0,0,.6);
margin-left: -5px;
}
.info li span {
font-family: Gotham SSm A,Arial,Helvetica,sans-serif;
color: #50230d;
font-size: 11px;
line-height: 16px;
text-transform: uppercase;
display: block;
}
.info li span.schema {
font-family: StagStencil-Bold-Web,Arial,Helvetica,sans-serif;
color: #ff5029;
font-size: 18px;
line-height: 1.8;
text-transform: lowercase;
}
.info li span.recipe-info-icon {
float: left;
margin: 5px 5px 0 0;
overflow: visible;
min-height: 35px;
}
/* Tabbed Content */
#js-tab-headings {
width: 100%;
clear: both;
overflow: hidden;
border-bottom: 1px dashed #acacac;
margin-bottom: 15px;
padding: 0 0 10px;
}
#js-tab-headings li {
float: left;
margin-right: 15px;
color: #ff5029;
}
/* Social Media */
.share {
width: 100%;
clear: both;
overflow: hidden;
margin-bottom: 20px;
}
.share li {
float: left;
display: inline-block;
background-color: #acacac;
border-radius: 50%;
margin-right: 10px;
}
.amp-social-share-facebook,
.amp-social-share-twitter,
.amp-social-share-pinterest,
.amp-social-share-gplus,
.amp-social-share-email {
background-color: #acacac;
}
.amp-social-share-facebook {
width: 36px !important;
height: 36px !important;
border-radius: 50%;
background-position: -209px -156px;
text-indent: -1000px;
overflow: hidden;
display: inline-block;
background-image: url(http://www.harighotra.co.uk/templates/yoo_master2//assets/img/sprite-sheet.png);
background-size: 1000px auto;
margin-right: 10px;
}
.amp-social-share-twitter {
width: 36px !important;
height: 36px !important;
border-radius: 50%;
background-position: -169px -153px;
text-indent: -1000px;
overflow: hidden;
display: inline-block;
background-image: url(http://www.harighotra.co.uk/templates/yoo_master2//assets/img/sprite-sheet.png);
background-size: 1000px auto;
margin-right: 10px;
}
.amp-social-share-pinterest {
width: 36px !important;
height: 36px !important;
border-radius: 50%;
background-position: -286px -156px;
text-indent: -1000px;
overflow: hidden;
display: inline-block;
background-image: url(http://www.harighotra.co.uk/templates/yoo_master2//assets/img/sprite-sheet.png);
background-size: 1000px auto;
margin-right: 10px;
}
.amp-social-share-gplus {
width: 36px !important;
height: 36px !important;
border-radius: 50%;
background-position: -245px -154px;
text-indent: -1000px;
overflow: hidden;
display: inline-block;
background-image: url(http://www.harighotra.co.uk/templates/yoo_master2//assets/img/sprite-sheet.png);
background-size: 1000px auto;
margin-right: 10px;
}
.amp-social-share-email {
width: 36px !important;
height: 36px !important;
border-radius: 50%;
background-position: -422px -154px;
text-indent: -1000px;
overflow: hidden;
display: inline-block;
background-image: url(http://www.harighotra.co.uk/templates/yoo_master2//assets/img/sprite-sheet.png);
background-size: 1000px auto;
}
/* Pagination */
.pagination-wrapper,.search-pagination {
margin-top: 40px;
}
.pagination,.slidenav {
text-align: center;
color: #ff5029;
display: table;
margin: auto;
}
.pagination a,.pagination span,.pagination ul li,.slidenav {
font-size: 18px;
width: 42px;
height: 42px;
background-color: #fff;
}
.pagination a.view-all,.pagination span.view-all,.pagination ul li.view-all,.slidenav.view-all {
width: auto;
padding: 0 10px;
}
.pagination a.view-all:hover,.pagination span.view-all:hover,.pagination ul li.view-all:hover,.slidenav.view-all:hover {
color: #fff;
background-color: #ff5029;
opacity: 1;
}
.pagination a,.pagination span,.pagination ul li {
height: 42px;
overflow: hidden;
}
.pagination ul li {
background: 0 0;
}
.pagination span {
color: #fff;
background-color: #ff5029;
}
.pagination a {
color: #59595a;
}
.pagination a.end,.pagination a.next,.pagination a.previous,.pagination a.start {
font-size: 36px;
line-height: 38px;
display: inline-block;
text-decoration: none;
}
.pagination a.view-all {
display: inline-block;
}
.pagination ul li a,.pagination ul li span {
margin: 0;
}
.pagination ul li a i {
font-style: normal;
font-size: 36px;
line-height: 36px;
}
.search-pagination a,.search-pagination span,.search-pagination ul li {
display: inline-block;
}
.pagination a,.pagination span,.pagination ul li {
margin: 0;
line-height: 42px;
display: none;
}
/* Category */
.tile.category .category-title {
background-color: rgba(0,0,0,.7);
display: table;
height: 70px;
width: 100%;
overflow: hidden;
}
.tile.category .category-title h2 {
display: table-cell;
vertical-align: middle;
width: 100%;
min-height: 70px;
background: 0 0;
position: relative;
padding-right: 18px;
padding-left: 18px;
border-right: solid 48px #fff;
transition: none;
line-height: 1.3;
}
.tile .tile-arrow {
background-color: #fff;
color: #ff5029;
display: block;
font-size: 51px;
font-style: normal;
font-weight: 300;
height: 48px;
line-height: 42px;
position: absolute;
right: 0;
bottom: 0;
text-align: center;
width: 48px;
z-index: 1;
transition: .25s;
}
.tile.category .category-title h2 .tile-arrow {
right: -48px;
top: 0;
height: auto;
line-height: 62px;
transition: none;
}
.tile.category h2 {
color: #fff;
font-weight: 400;
}
.tile.category article {
padding: 0;
height: auto;
min-height: 100px;
overflow: hidden;
}
.category .title {
text-align: center;
}
.category .title a {
text-decoration: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment