From 423cee76b6228f1482cfe475de6a2986547955a6 Mon Sep 17 00:00:00 2001 From: Quique Fernandez Date: Thu, 29 Dec 2016 17:56:48 +0100 Subject: [PATCH] minify css and fix fonts paths --- src/Web/WebMVC/wwwroot/css/app.component.css | 25 ++++++++++++-------- src/Web/WebMVC/wwwroot/css/app.css | 4 ++-- src/Web/WebMVC/wwwroot/css/app.min.css | 1 + 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/Web/WebMVC/wwwroot/css/app.component.css b/src/Web/WebMVC/wwwroot/css/app.component.css index 0a5e3f9ee..18000aeec 100644 --- a/src/Web/WebMVC/wwwroot/css/app.component.css +++ b/src/Web/WebMVC/wwwroot/css/app.component.css @@ -1,15 +1,20 @@ .esh-app-footer { - background-color: #000000; - border-top: 1px solid #EEEEEE; - margin-top: 2.5rem; - padding-bottom: 2.5rem; - padding-top: 2.5rem; - width: 100%; } - .esh-app-footer-brand { + background-color: #000000; + border-top: 1px solid #EEEEEE; + margin-top: 2.5rem; + padding-bottom: 2.5rem; + padding-top: 2.5rem; + width: 100%; +} + +.esh-app-footer-brand { height: 50px; - width: 230px; } - .esh-app-footer-text { + width: 230px; +} + +.esh-app-footer-text { color: #83D01B; line-height: 50px; text-align: right; - width: 100%; } + width: 100%; +} diff --git a/src/Web/WebMVC/wwwroot/css/app.css b/src/Web/WebMVC/wwwroot/css/app.css index 8378a898a..6975836e2 100644 --- a/src/Web/WebMVC/wwwroot/css/app.css +++ b/src/Web/WebMVC/wwwroot/css/app.css @@ -1,13 +1,13 @@ @font-face { font-family: Montserrat; font-weight: 400; - src: url("./fonts/Montserrat-Regular.eot?") format("eot"), url("./fonts/Montserrat-Regular.woff") format("woff"), url("./fonts/Montserrat-Regular.ttf") format("truetype"), url("./fonts/Montserrat-Regular.svg#Montserrat") format("svg"); + src: url(".../fonts/Montserrat-Regular.eot?") format("eot"), url("../fonts/Montserrat-Regular.woff") format("woff"), url("../fonts/Montserrat-Regular.ttf") format("truetype"), url("../fonts/Montserrat-Regular.svg#Montserrat") format("svg"); } @font-face { font-family: Montserrat; font-weight: 700; - src: url("./fonts/Montserrat-Bold.eot?") format("eot"), url("./fonts/Montserrat-Bold.woff") format("woff"), url("./fonts/Montserrat-Bold.ttf") format("truetype"), url("./fonts/Montserrat-Bold.svg#Montserrat") format("svg"); + src: url("../fonts/Montserrat-Bold.eot?") format("eot"), url("../fonts/Montserrat-Bold.woff") format("woff"), url("../fonts/Montserrat-Bold.ttf") format("truetype"), url("../fonts/Montserrat-Bold.svg#Montserrat") format("svg"); } html, diff --git a/src/Web/WebMVC/wwwroot/css/app.min.css b/src/Web/WebMVC/wwwroot/css/app.min.css index e69de29bb..3a900417b 100644 --- a/src/Web/WebMVC/wwwroot/css/app.min.css +++ b/src/Web/WebMVC/wwwroot/css/app.min.css @@ -0,0 +1 @@ +.esh-basket,.esh-orders,.esh-orders_detail,.esh-orders_new{min-height:80vh}@font-face{font-family:Montserrat;font-weight:400;src:url(../fonts/Montserrat-Regular.eot?) format("eot"),url(../fonts/Montserrat-Regular.woff) format("woff"),url(../fonts/Montserrat-Regular.ttf) format("truetype"),url(../fonts/Montserrat-Regular.svg#Montserrat) format("svg")}@font-face{font-family:Montserrat;font-weight:700;src:url(../fonts/Montserrat-Bold.eot?) format("eot"),url(../fonts/Montserrat-Bold.woff) format("woff"),url(../fonts/Montserrat-Bold.ttf) format("truetype"),url(../fonts/Montserrat-Bold.svg#Montserrat) format("svg")}body,html{font-family:Montserrat,sans-serif;font-size:16px;font-weight:400;z-index:10}*,::after,::before{box-sizing:border-box}.preloading{color:#00A69C;display:block;font-size:1.5rem;left:50%;position:fixed;top:50%;transform:translate(-50%,-50%)}select::-ms-expand{display:none}@media screen and (min-width:992px){.form-input{max-width:360px;width:360px}}.form-input{border-radius:0;height:45px;padding:10px}.form-input-small{max-width:100px!important}.form-input-medium{width:150px!important}.alert{padding-left:0}.alert-danger{background-color:transparent;border:0;color:#FB0D0D;font-size:12px}a,a:active,a:hover,a:visited{color:#000;text-decoration:none;transition:color .35s}a:active,a:hover{color:#75B918;transition:color .35s}.esh-app-footer{background-color:#000;border-top:1px solid #EEE;margin-top:2.5rem;padding-bottom:2.5rem;padding-top:2.5rem;width:100%}.esh-app-footer-brand{height:50px;width:230px}.esh-app-footer-text{color:#83D01B;line-height:50px;text-align:right;width:100%}.esh-pager-wrapper{padding-top:1rem;text-align:center}.esh-identity,.esh-orders_new-section--right{text-align:right}.esh-pager-item{margin:0 5vw}.esh-pager-item--navigable{cursor:pointer}.esh-pager-item--navigable.is-disabled{display:none}.esh-identity-image,.esh-identity-name{display:inline-block}.esh-pager-item--navigable:hover{color:#83D01B}@media screen and (max-width:1280px){.esh-pager-item{font-size:.85rem}}@media screen and (max-width:1024px){.esh-pager-item{margin:0 4vw}}.esh-identity{line-height:3rem;position:relative}.esh-header-back,.esh-orders-back{line-height:4rem;text-decoration:none;text-transform:uppercase}.esh-identity-section{display:inline-block;width:100%}.esh-identity-name--upper{text-transform:uppercase}@media screen and (max-width:768px){.esh-identity-name{font-size:.85rem}}.esh-identity-drop{background:#FFF;height:0;min-width:14rem;right:0;overflow:hidden;padding:.5rem;position:absolute;top:2.5rem;transition:height .35s}.esh-identity:hover .esh-identity-drop{border:1px solid #EEE;height:7rem;transition:height .35s}.esh-header,.esh-orders-header{background-color:#00A69C;height:4rem}.esh-identity-item{cursor:pointer;display:block;transition:color .35s}.esh-identity-item:hover{color:#75b918;transition:color .35s}.esh-header-back{color:rgba(255,255,255,.5)!important;transition:color .35s}.esh-header-back:hover{color:#FFF!important;transition:color .35s}.esh-orders{overflow-x:hidden}.esh-orders-back{color:rgba(255,255,255,.4);transition:color .35s}.esh-orders-back:hover{color:#FFF;transition:color .35s}.esh-orders-titles{padding-bottom:1rem;padding-top:2rem}.esh-orders-title{text-transform:uppercase}.esh-orders-items{height:2rem;line-height:2rem;position:relative}.esh-orders-items:nth-of-type(2n+1):before{background-color:#EEF;content:'';height:100%;left:0;margin-left:-100vw;position:absolute;top:0;width:200vw;z-index:-1}.esh-orders-item{font-weight:300}.esh-orders-item--hover{opacity:0;pointer-events:none}.esh-orders-items:hover .esh-orders-item--hover{opacity:1;pointer-events:all}.esh-orders-link{color:#83D01B;text-decoration:none;transition:color .35s}.esh-orders-link:hover{color:#75b918;transition:color .35s}.esh-orders_new-header{background-color:#00A69C;height:4rem}.esh-orders_detail-image,.esh-orders_new-image{height:8rem}.esh-orders_new-back{color:rgba(255,255,255,.4);line-height:4rem;text-decoration:none;text-transform:uppercase;transition:color .35s}.esh-orders_new-back:hover{color:#FFF;transition:color .35s}.esh-orders_new-section{padding:1rem 0}.esh-orders_new-placeOrder{background-color:#83D01B;border:0;border-radius:0;color:#FFF;display:inline-block;font-size:1rem;font-weight:400;margin-top:1rem;padding:1rem 1.5rem;text-align:center;text-transform:uppercase;transition:all .35s}.esh-orders_detail-item--mark,.esh-orders_new-item--mark{color:#83D01B}.esh-orders_new-placeOrder:hover{background-color:#4a760f;transition:all .35s}.esh-orders_new-titles{padding-bottom:1rem;padding-top:2rem}.esh-orders_new-title{font-size:1.25rem}.esh-orders_detail-item,.esh-orders_new-item{font-size:1rem;font-weight:300}.esh-orders_new-items--border{border-bottom:1px solid #EEE;padding:.5rem 0}.esh-orders_new-items--border:last-of-type{border-color:transparent}.esh-orders_new-item--middle{line-height:8rem}@media screen and (max-width:768px){.esh-orders_new-item--middle{line-height:1rem}}.esh-orders_detail-section{padding:1rem 0}.esh-orders_detail-section--right{text-align:right}.esh-orders_detail-titles{padding-bottom:1rem;padding-top:2rem}.esh-orders_detail-title{text-transform:uppercase}.esh-orders_detail-items--border{border-bottom:1px solid #EEE;padding:.5rem 0}.esh-orders_detail-items--border:last-of-type{border-color:transparent}.esh-orders_detail-item--middle{line-height:8rem}.esh-catalog-hero{background-image:url(../../images/main_banner.png);background-size:cover;height:260px;width:100%}.esh-catalog-title{position:relative;top:74.29px}.esh-catalog-filters{background-color:#00A69C;height:65px}.esh-catalog-filter{background-color:transparent;border-color:#00d9cc;color:#FFF;cursor:pointer;margin-right:1rem;margin-top:.5rem;outline-color:#83D01B;min-width:140px;-webkit-appearance:none;padding:1.5rem .5rem 0}.esh-catalog-filter option{background-color:#00A69C}.esh-catalog-label{display:inline-block;position:relative;z-index:0}.esh-catalog-label::before{color:rgba(255,255,255,.5);content:attr(data-title);font-size:.65rem;margin-top:.65rem;margin-left:.5rem;position:absolute;text-transform:uppercase;z-index:1}.esh-catalog-button,.esh-catalog-send{color:#FFF;transition:all .35s;cursor:pointer}.esh-catalog-label::after{background-image:url(../../images/arrow-down.png);height:7px;content:'';position:absolute;right:1.5rem;top:2.5rem;width:10px;z-index:1}.esh-catalog-send{background-color:#83D01B;font-size:1rem;transform:translateY(.5rem);padding:.5rem}.esh-catalog-send:hover{background-color:#4a760f;transition:all .35s}.esh-catalog-items{margin-top:1rem}.esh-catalog-item{text-align:center;margin-bottom:1.5rem;width:33%}@media screen and (max-width:1024px){.esh-catalog-item{width:50%}}@media screen and (max-width:768px){.esh-orders_detail-item--middle{line-height:1rem}.esh-catalog-item{width:100%}}.esh-catalog-thumbnail{max-width:370px;width:100%}.esh-catalog-button{background-color:#83D01B;border:none;font-size:1rem;height:3rem;margin-top:1rem;width:80%}.esh-catalog-button:hover{background-color:#4a760f;transition:all .35s}.esh-catalog-name{font-size:1rem;font-weight:300;margin-top:.5rem;text-align:center;text-transform:uppercase}.esh-catalog-price{text-align:center;font-weight:900;font-size:28px}.esh-catalog-price::before{content:'$'}.esh-basket-titles{padding-bottom:1rem;padding-top:2rem}.esh-basket-titles--clean{padding-bottom:0;padding-top:0}.esh-basket-title{text-transform:uppercase}.esh-basket-items--border{border-bottom:1px solid #EEE;padding:.5rem 0}.esh-basket-items--border:last-of-type{border-color:transparent}.esh-basket-item{font-size:1rem;font-weight:300}.esh-basket-item--middle{line-height:8rem}@media screen and (max-width:1024px){.esh-basket-item--middle{line-height:1rem}}.esh-basket-item--mark{color:#00A69C}.esh-basket-checkout,.esh-basketstatus-badge{color:#FFF;text-align:center;transition:all .35s}.esh-basket-image{height:8rem}.esh-basket-input{line-height:1rem;width:100%}.esh-basket-checkout{border:none;border-radius:0;background-color:#83D01B;display:inline-block;font-size:1rem;font-weight:400;margin-top:1rem;padding:1rem 1.5rem;text-transform:uppercase}.esh-basket-checkout:hover{background-color:#4a760f;transition:all .35s}.esh-basketstatus{cursor:pointer;float:right;position:relative;transition:all .35s}.esh-basketstatus.is-disabled{opacity:.5;pointer-events:none}.esh-basketstatus-image{height:36px;margin-top:.5rem}.esh-basketstatus-badge{background-color:#83D01B;border-radius:50%;display:block;height:1.5rem;left:50%;position:absolute;top:0;transform:translateX(-38%);width:1.5rem}.esh-basketstatus:hover .esh-basketstatus-badge{background-color:transparent;color:#75b918;transition:all .35s} \ No newline at end of file