im trying to make compatible this template on chrome, the main problem is that every time i refresh the page, items are changing position this is the site zygi.loginet.gr and it works fine on mozilla.
/* reset/default rules */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, address, acronym, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, thead, tr, th, td {
margin: 0;
padding: 0;
font-size: 100%;
vertical-align: baseline;
border: 0;
outline: 0;
background: transparent;
font-family: 'open_sansregular';
}
blockquote, q {
quotes: none;
}
:focus {
outline: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
a img, :link img, :visited img {
border: 0;
}
img {
max-width: 100%;
height: auto;
}
q:before, q:after, blockquote:before, blockquote:after {
content: "";
}
a, .inputbox {
outline-width:0;
}
a {
/*transition: all 0.5s ease;*/
text-decoration: none;
color: #90AF63;
}
a:hover {
color: #B1BC42;
text-decoration: none;
}
body {
margin: 0px;
padding: 0px;
height: 100%;
width: 100%;
background: #fff;
color: #777;
}
html {
height:100%;
width:100%;
}
p {
font-size: .9em;
font-weight: 400;
line-height: 1.8;
}
.block {
display: inline-block;
width: 100%;
padding: 2.5em 0;
}
.block-clients {
background-color: #f6f6f6;
display: inline-block;
width: 100%;
padding: 2.5em 0;
}
.block-clients h3 {
font-size: 2em;
font-weight: 300;
letter-spacing: -1px;
padding-bottom: 1em;
text-align: center;
}
.block-services {
display: inline-block;
width: 99%;
padding: .5em 0 1.5em 0;
}
.innerBlock, .contentTop .vendor-store-desc p, .contentTop .vendor-store-desc .page-header, .contentTop .topten-view, .contentTop .category-view .row {
max-width: 1210px;
margin: 0 auto;
}
/* /reset/general rules */
/*---------------------------------------------------------------------------------------*/
/* base typography */
h1{ font-size: 1.6em }
h2{ font-size: 1.4em; line-height: 1.4em; }
h3{ font-size: 1.3em }
h4{ font-size: 1.2em }
h5{ font-size: 1.1em }
h6{ font-size: 1em }
/* /base typography */
/* buttons */
button, .button, .btn, .btn-primary, #input .button {
padding: .3em 1em;
color: #fff;
border-radius: 2px;
margin-top: .5em;
transition: all .2s linear;
}
input.button:not([type="checkbox"]) {
border-top: none;
border-right: none;
border-left: none;
color: #fff;
}
a.button{
display: inline-block;
}
/* colors for diferent buttons */
.button.common {
background: transparent;
border: 2px solid rgba(255, 255, 255, .65);
}
.button.common:hover, .button.common:focus {
border: 2px solid rgba(255, 255, 255, 1);
}
/* /colors for diferent buttons */
.form-actions {
background: none;
}
/* slider / bg image */
.slider {
background-image: url(../images/mainIntroImg.jpg);
margin-top: -3px;
padding: 2em 0;
position: relative;
text-align: center;
line-height: 2.4em;
color: #fff;
background-size: auto;
}
.slider .innerBlock > .moduletable {
background: url(../images/sliderInnerBg.png) no-repeat bottom right;
}
.slider a {
display: inline-block;
color: #fff;
}
.slider a:hover {
color: #cdcdcd;
}
.slider h1 {
border-bottom: 1px solid #fff;
color: #fff;
font-size: 2.5em;
font-weight: bold;
padding: 3% 0 2% 0;
text-align: left;
width: 50%;
}
.slider p {
font-size: 1.4em;
font-weight: 100;
line-height: 1.8em;
}
.slider-content {
display: inline-block;
margin-bottom: 5px;
width: 100%;
text-shadow: 5px 5px 10px #888;
}
.slider-content-desc {
width: 53%;
}
ul.slider-services {
background: rgba(125, 167, 217, .7);
padding: 29.5px 2%;
width: 48.6%;
}
ul.slider-services li {
display: inline-block;
}
ul.slider-services li::after {
content: "//";
color: #B4A16D;
text-shadow: 0px 1px 1px #333;
padding: 0 4px;
}
.blog .item {
text-align: center;
transition: all .2s linear;
margin: 1em 1%;
padding: 1em 0;
}
.blog .item:hover, .services ul li:hover {
background: #eee;
}
.blog .item h2 {
font-size: 1em;
}
.blog .item-image.pull-left {
float: none;
}
.blogPreview .servicesImg {
text-align: center;
}
.services ul li, .contentCustomers ul li, .blogPreview ul li {
padding: .25%;
margin: 0 .25%;
text-align: center;
display: inline-block;
vertical-align: top;
}
.services ul li {
width: 23.7%;
transition: all .2s linear;
padding-bottom: .5em;
}
.blogPreview ul li {
width: 23.7%;
transition: all .2s linear;
padding-bottom: .5em;
}
.contentCustomers ul li {
width: 15.3%;
}
.servicesImg, .blogPreview ul li > img {
display: inline-block;
width: 100%;
transition: .2s linear all;
border-radius: 50%;
}
.blogPreview .servicesImg img, .logiBlog .leadingArt > .item-image img {
/*max-height: 171px;*/
max-width: 100%;
height: auto;
padding: 6px;
background: #fff;
border: 1px solid #ddd;
box-sizing: border-box;
}
.blogPreview li:hover .servicesImg img {
border: 1px solid #999;
}
.mod-articles-category-title {
color: #343433;
transition: color 0.2s linear 0s;
line-height: 1em;
padding: .3em 0;
margin-bottom: .4em;
display: inline-block;
}
a.mod-articles-category-title:hover {
color: #71A45B;
}
p.mod-articles-category-introtext{
font-size: .9em;;
font-weight: 400;
line-height: 1.6;
min-height: 6.3em;
}
.services .mod-articles-category-title {
font-size: 1.3em;
}
/* /services */
/* blogPreview */
.blogPreview li a, .blogPreview li span {
text-align: left;
display: inline-block;
width: 100%;
}
.blogPreview a.mod-articles-category-title {
color: #6190be;
font-size: .9em;
line-height: 1.2em;
font-weight: 700;
}
.blogPreview a.mod-articles-category-title:hover {
color: #444;
}
.blogPreview .mod-articles-category-date {
font-size: .8em;
}
/* /blogPreview */
/* content blocks and particular (.)block - sections styling */
.contentTop {
padding: 0 0;
}
.xselling a, .xselling {
color: #000;
text-align: center;
}
..xselling a {
margin: .2em 0;
}
.xselling {
padding: 1em 0;
float: left;
border-top: 1px solid #000;
}
.page-header, .topten-view h4, .xselling h3 {
font-size: 1.8em;
font-weight: 300;
letter-spacing: -1px;
text-align: center;
padding: 0;
border: none;
position: relative;
}
.page-header, .topten-view h4 {
margin: 2em auto!important;
}
.page-header h2 {
display: inline;
line-height: 0;
padding: 0 .5em;
}
.topten-view h4:before, .topten-view h4:after, .xselling h3:before, .xselling h3:after {
background: #90AF5F;
}
.page-header:before, .page-header:after{
background: #000;
}
.page-header:before, .page-header:after,
.topten-view h4:before, .topten-view h4:after,
.xselling h3:before, .xselling h3:after {
content: "";
display: block;
width: 30%;
height: 2px;
position: absolute;
top: 40%;
}
.page-header:before,
.topten-view h4:before,
.xselling h3:before {
left: 0;
}
.page-header:after,
.topten-view h4:after,
.xselling h3:after {
right: 0;
}
.block h3 {
font-size: 2em;
font-weight: 300;
letter-spacing: -1px;
text-align: center;
padding-bottom: .5em;
}
.pxBg {
background-attachment: fixed;
background-position: center 0;
background-repeat: no-repeat;
background-size: cover;
}
.whiteTrans {
background: rgba(255,255,255,.45);
padding: 2.5em 0;
text-align: center;
}
.vendor-store-desc {
background-image: url(../images/shopBg.jpg);
margin: 0;
color: #000;
}
.communication {
background: #6190BE;
text-align: center;
display: inline-block;
margin: auto;
width: 100%;
padding: 2% 0;
}
.communicationCont {
display: inline-block;
margin: auto;
width: 48%;
}
.communicationText {
display: block;
margin: auto;
color: #fff;
font-size: 2em;
line-height: 2em;
}
.communicationImg {
display: block;
float: left;
}
.communicationImg img {
}
.bgContThree, .contentHeader {
background-image: url(../images/logiPxBg1.jpg);
color: #fff;
font-size: 1.4em;
line-height: 1.2em;
}
.bgContThree {
background: #6190BE;
}
/* content blocks and particular (.)block - sections styling */
/* preFooter */
.preFooter {
background: #6190be;
color: #fff;
text-align: center;
font-size: 1.2em;
line-height: 1.6em;
font-style: italic;
margin-bottom: -4px;
}
.preFooter img {
vertical-align: middle;
}
/* pre foter quote + contnent header*/
.bottomQuote {
color: #fff;
}
.contentHeader, .bottomQuote {
text-align: center;
}
.contentHeader h1 {
padding-bottom: .3em;
margin-bottom: .3em;
}
.bottomQuote p, .contentHeader p {
font-weight: 100;
line-height: 1.25;
padding-bottom: 20px;
display: inline-block;
width: 100%;
}
.bottomQuote p {
font-size: 1.4em;
}
/* /preFooter */
/* Footer */
.footTop > div {
display: block;
float: left;
border-right: 1px solid #91B062;
width: 24%;
margin-right: 1%;
}
.footer.block {
display: block;
}
.footTop > div:last-child {
border: none;
margin-right: 0;
}
.footerBottom .innerBlock > div {
display: inline-block;
width: 48%;
}
.footer3 span, .footer4 p > *{
display: block;
float: left;
width: 65%;
margin-left: 20%;
padding: .5em;
}
.footAdd:before, .footPhone:before {
content: '';
display: block;
width: 17px;
height: 20px;
margin-right: .4em;
background-image: url(../images/miniSprite.png);
background-repeat: no-repeat;
float: left;
}
.footAdd:before {
background-position: 0 0;
}
.footPhone:before {
background-position: -17px 0;
}
a.footFbLnk {
background: #fff;
color: #4C4C4C;
border-radius: 4px;
font-weight: 700;
}
.copyYear {
float: right;
text-align: right;
}
/* SOCIAL ICONS */
.social, .social > li {
display: inline-block;
}
.social > li.skype {
width: 100%;
text-align: center;
}
.social > li > a {
background: #fff;
border-radius: 50%;
color: #000;
display: inline-block;
font: 1.3em/2.3em 'icons';
height: 2.3em;
width: 2.3em;
position: relative;
text-align: center;
transition: all 0.4s ease-out 0s;
text-decoration: none;
margin: .2em;
}
.social > li a:hover {
background: #000;
color: #fff;
}
.social i {
font: 1em/2em 'icons';
}
/* footer */
.footer{
background: #363636;
color: #91B062;
padding: 1em 0;
font-size: 90%;
}
.footer .logo {
width: 100%;
}
.footer h3 {
color: #91B062;
margin-bottom: .5em;
}
.footTop {
padding: 1em 0;
}
.footer ul.menu li a {
color: #91B062;
font-size: .9em;
margin-bottom: .2em;
}
.footer ul.menu li a:hover, .footer ul.menu li a:focus {
background: transparent;
}
/** mailchimp form **/
#mc_embed_signup {
background: #202020;
display: inline-block;
width: 90%;
padding: 1.2em 5% 1.7em;
text-align: left;
border-radius: 3px;
}
#mc_embed_signup h2 {
font-size: .8em;
color: #ccc;
}
#mc_embed_signup label {
display: none;
}
#mc_embed_signup input#mce-EMAIL {
color: #ecebe9;
float: left;
margin: 0 18px 0 0;
max-width: 100%;
position: relative;
width: 280px;
color: #444;
z-index: 10;
}
#mc_embed_signup input.button {
vertical-align: top;
display: inline-block;
float: right;
max-width: 20%;
margin: 0;
}
.mc-field-group {
position: relative;
max-width: 50%;
}
.mce_inline_error {
}
/** /mailchimp form **/
/* /footer */
/* footer bottom */
.footerBottom {
padding: 1em 0;
margin: .7em 0;
}
/* /footer bottom */
/* Contact Form additions */
.contact {
width: 70%;
text-align: center;
padding-bottom: 1em;
}
.contact h2 {
border-bottom: 1px solid #E8E8E8;
color: #676767;
line-height: 0;
margin: 1.5em 0 1em;
font-size: 2em;
font-weight: 300;
letter-spacing: 0.5px;
}
.contact h2 span {
background: #fff;
padding: 0 1em;
}
.contact, .contactRight {
display: inline-block;
vertical-align: top;
}
.contactRight {
width: 28%;
margin: 9.55em 0 0 1.5%;
}
.contact h3 {
font-size: 2em;
padding: 1em 0;
margin: .5em 0;
}
input:not([type='checkbox']),input:not([type='submit']), textarea {
-moz-border-bottom-colors: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
border-radius: 0;
background-color: #efefef;
border-color: -moz-use-text-color -moz-use-text-color #fff;
border-image: none;
border-style: none none solid;
border-width: 0 0 1px;
box-shadow: 1px 5px 9px rgba(0, 0, 0, 0.09) inset;
color: #555;
font-size: .8em;
font-weight: 400;
line-height: 1.2em;
padding: .8em 1%;
transition: all 0.2s linear 0s;
width: 98%;
}
input:not([type='checkbox']):focus, input:not([type='submit']):focus, textarea:focus {
box-shadow: 0!important;
}
/** contact form labels **/
.contact-form label {
display: inline-block;
width: 100%;
text-align: left;
padding-bottom: .3em;
}
.contact-form .form-horizontal .control-label {
display: inline-block;
width: 100%;
}
.contact-form .form-horizontal .controls {
margin: 0;
}
.contact-form .form-horizontal .form-actions {
padding: 0;
border: none;
text-align: left;
}
/** /contact form labels **/
/** contact block inside the sidebar **/
.sidebar > .contactSidebar h3 {
text-align: center;
}
.sidebar > .contactSidebar {
padding: 2em;
box-sizing: border-box;
border: 1px solid #e3e3e3;
text-align: center;
}
/** /contact block inside the sidebar **/
/* /normal blog layout - using the parent class .logiBlog */
/* bootstrap overrides and additional exceptions */
.contactRight .dl-horizontal dt {
width: auto;
}
.contactRight .dl-horizontal dd {
margin-left: 2em;
}
dl.contact-address {
padding: 0 0 1em 0;
margin: .5em 0;
}
dl.contact-address span {
display: inline-block;
width: 100%;
}
dl.contact-address > dt, dl.contact-address > dd {
display: inline-block;
padding: .3em 0;
}
dl.contact-address > dd {
width: 80%;
}
.item-page ol, .item-page ul {
margin: 0 0 10px 25px;
padding: 0;
font-size: 0.9em;
font-weight: 400;
line-height: 1.8;
}
#portfolioMini ul, .portfolioSide ul, ul.latestnews {
margin: 0;
list-style: none;
}
/* bootstrap overrides */
/* career page */
ul.careerDpts {
display: block;
width: 100%;
margin: 0 auto;
position: relative;
height: 100%;
min-height: 40em;
}
ul.careerDpts li {
width: 20%;
height: 100%;
min-height: 4.5em;
display: inline-block;
padding: 1em 0;
color: #fff;
border-radius: 20px;
background: #ccc;
margin: 4%;
position: absolute;
height: 3em;
text-align: center;
font-size: 1.2em;
font-weight: 700;
line-height: 1.4em;
transition: .2s all linear;
cursor: pointer;
}
ul.careerDpts li span {
display: inline-block;
vertical-align: middle!important;
width: 70%;
height: 100%;
margin-top: 6%;
}
ul.careerDpts li:nth-child(6) span, ul.careerDpts li:nth-child(2) span {
width: 65%;
}
ul.careerDpts li:nth-child(4) span {
width: 60%;
}
ul.careerDpts li:nth-child(1) span, ul.careerDpts li:nth-child(5) span, ul.careerDpts li:nth-child(6) span {
margin: 0;
}
ul.careerDpts li:hover, ul.careerDpts li:hover:after {
background: #ccc!important;
color: #6190be;
}
ul.careerDpts li:after {
content: "";
display: block;
height: 9.25em;
background: #6190be;
width: .2em;
border-radius: 5px;
position: absolute;
}
ul.careerDpts li:nth-child(1):after {
height: 5.2em;
right: 49%;
bottom: -6em;
}
ul.careerDpts li:nth-child(2):after {
right: 138%;
top: -109px;
transform: rotate(-78deg);
}
ul.careerDpts li:nth-child(3):after {
left: 138%;
top: -109px;
transform: rotate(78deg);
}
ul.careerDpts li:nth-child(4):after {
left: 138%;
bottom: -109px;
transform: rotate(-78deg);
}
ul.careerDpts li:nth-child(5):after {
right: 138%;
bottom: -109px;
transform: rotate(78deg);
}
ul.careerDpts li:nth-child(6):after {
height: 0;
width: 0;
}
ul.careerDpts li:nth-child(1) {
background: #E80719;
top: 0;
left: 36%;
}
ul.careerDpts li:nth-child(2) {
background: #0156EF;
bottom: 0;
right: 0;
}
ul.careerDpts li:nth-child(3) {
background: #EF7700;
bottom: 0;
left: 0;
}
ul.careerDpts li:nth-child(4) {
background: #01AF00;
top: 15%;
left: 0;
}
ul.careerDpts li:nth-child(5) {
background: #7101D2;
top: 15%;
right: 0;
}
ul.careerDpts li:nth-child(6) {
top: 40%;
left: 36%;
color: #6190be;
/* elements revealing effects */
.checkElm {
transition: .5s all linear;
}
.hiddenElm {
opacity: 0;
}
.hiddenElm.checkedElm {
opacity: 1;
}
.revealElm {
opacity: 1;
}
/* elements revealing effects */
/* VM Related */
.browseProductImage {
max-width: 100%;
max-height: inherit;
height: auto;
}
.contentTop .category-view .row .category .spacer h2 a img {
max-width: 125px;
height: auto;
}
.innerRight .xselling h3 {
margin: .3em 0;
}
.topten-view h4, .xselling h3 {
color: #90AF5F;
}
.contentTop block .innerBlock ,.xselling .moduletable h3{
background-color:#8ec640;
color:#fff;
height:25px;
text-align:center;
vertical-align:top;
border-radius:10px;
}
.contentTop block .innerBlock ,.xselling .moduletable h3:before, .xselling .moduletable h3:after{
display:none;
text-align:center;
}
.contentTop block .innerBlock ,.xselling .moduletable .vmgroup{
padding-top:17px;
}
.topten-view {
padding: 0 0 2em 0;
}
.contentTop div.product {
border: none;
position: relative;
}
.contentTop div.vm-details-button {
display: none;
position: absolute;
top: 0;
transition: .3s all linear;
}
.contentTop div.vm-details-button a.product-details {
background: none;
border: 2px solid #fff;
color: #fff;
margin-top: 57%;
}
.contentTop div.product:hover div.vm-details-button {
display: block;
background: rgba(145,176,98,.65);
height: 70%;
width: 100%;
}
.contentTop .vm3pr-0 .addtocart-area {
min-height: inherit;
}
.contentTop .horizontal-separator {
background: #959595;
}
/* vm hom categories layout */
.simple.category-view .category {
max-width: 25%;
margin: .3em 4%;
}
.category-view .category h2 {
padding: .3em 6%;
}
.slider.category-view {
float: left;
width: 100%;
}
.slider.category-view .category {
float: left;
max-width: 25%;
background: rgba(0,0,0,.65);
}
.slider.category-view .category {
}
.slider.category-view .category img {
max-height: 120px;
}
.slider.category-view .category:first-child {
margin-left: 25%;
}
.slider.category-view .category:nth-child(3){
margin-right: 6%;
padding: 0 20% 0 15%;
}
.slider.category-view .category:nth-child(6) {
padding: 0 3%;
}
.slider.category-view .category:nth-child(7) {
padding: 0 3% 0 6%;
margin-right: 20%;
}
.slider.category-view .category:nth-child(8) {
padding: 0 10% 0 10%;
margin-left: 14%;
}
.slider.category-view .category:nth-child(10) {
padding: 0 9% 0 21%;
}
.slider.category-view .category:nth-child(11) {
padding: 0 4% 0 11%;
margin-left: 37%;
}
.slider.category-view .category:last-child {
padding: 0 17% 0 0;
}
.slider.vm-product-descr-container-0 h2 a {
color: #000;
font-size: 1.2em;
}
.slider.vm-product-descr-container-0 {
text-align: center;
}
.breadCr {
color: #ebebeb;
padding: .4em 0;
background: #EBEBEB;
box-shadow: inset 0 0 10px #000;
font-size: 1.3em;
}
.contentTop .breadcrumb {
background: none;
margin: 0;
padding: 0;
color: #ebebeb;
}
.contentTop .breadcrumb li.active span {
color: #90AF63;
}
.contentTop .breadcrumb > li {
}
/* /vm hom categories layout */
/* VM product details */
.contentTop .vm-product-container .vm-product-media-container {
float: right;
width: 40%;
}
.contentTop .vm-product-container .vm-product-details-container {
float: left;
width: 56%;
margin-right: 4%;
}
.vm-product-details-container span.title {
display: block;
width: 100%;
margin-bottom: .5em;
font-size: 1.5em;
color: #000;
}
.product-description {
padding-bottom: 2em;
min-height: 14.3em;
}
.product-description, .product-description span {
color: #000;
font-size: 1em;
line-height: 1.5em;
}
.product-fields {
margin-top: 1em;
background-color:#e5f1d4;
border-radius:12px;
padding-left:10px;
}
.productdetails .product-fields .product-field {
margin: 0;
/*border-bottom: 1px solid #000;*/
}
.product-fields > div span.product-fields-title-wrapper {
float: left;
min-width: 45%;
}
.product-fields > div div.product-field-display {
float: left;
padding: 8px 0;
}
.product-fields > div:first-child {
/*border-top: 1px solid #000;*/
}
.product-fields > div:last-child {
border-bottom: none;
}
.product-fields > div:nth-child(odd) {
background: #e5f1d4;
border-radius:12px;
}
/* VM product details */
.product h2 a {
color: #000;
}
.product .vm-product-descr-container-0 {
text-align: center;
}
.product div.vm-details-button a {
width: 94%;
padding: 11px 3%;
}
.productdetails h1 {
color: #90AF63;
font-size: 1.45em;
font-weight: 700;
text-align: left;
border-top: 2px solid #000;
padding: .5em 0;
}
.innerRight {
padding-top: 1em;
}
/* VM product details */
/* VM Cat sidebar */
.innerRight {
width: 77%;
display: inline-block;
vertical-align: top;
}
#media screen and (min-width: 1081px) {
.slider.category-view .category, .simple.category-view .category {
width: 25%!important;
max-width: 25%!important;
}
}
Related
I am trying to make my page mobile responsive but something is off. I had to change position of my nav-menu from absolute to relative for nav menu to go to the right top corner but now im having issues with the responsive part as well as the collapse of menu. i have been in tutorial hell trying to understand relative and absolute. I thought I had it but this proves i do not
/* make for mobile*/
.mobile-nav-toggle {
position: fixed;
right: 15px;
top: 15px;
z-index: 9998;
border: 0;
background: none;
font-size: 24px;
transition: all 0.4s;
outline: none !important;
line-height: 1;
cursor: pointer;
text-align: right;
}
.mobile-nav-toggle i {
color: #ffff;
}
.mobile.nav {
position: fixed;
top: 55px;
right: 15px;
bottom: 15px;
z-index: 0;
overflow-y: auto;
background: rgba(0,0,0,0.7);
}
The rest of the script :
body {
font-family: "open sans",sans-serif;
background-color: #040404;
color: #fff;
position: relative;
background: transparent;
}
body::before {
content: "";
position: fixed;
background: #040404;
left: 0;
background-size: cover;
right: 0;
top: 0;
height: 100vh;
z-index: -1;
}
#media (min-width: 1024px){
body::before {
background-attachment: fixed;
}
}
a {
color: #18d26e;
}
a:hover {
color: #18d26e;
text-decoration: none;
}
h1,h2,h3,h4,h5,h6 {
font-family: "Railewa", sans-serif;
}
/*==========Header=======*/
#header {
transition: ease-in-out 0.3s;
position: relative;
height: 100vh;
display: flex;
align-items: center;
z-index: 997;
overflow-y: auto;
}
#header * {
transition: ease-in-out 0.3s;
}
#header h1 {
font-size: 48px;
margin: 0;
padding: 0;
line-height: 1;
font-weight: 700;
font-family: "poppins",sans-serif;
}
#header h1 a,
#header h1 a:hover {
color: #fff;
line-height: 1;
display: inline-block;
}
header h2 {
font-size: 24px;
margin-top: 20px;
color: rgba(255,255,255,0.8);
}
#header h2 span {
color: #fff;
border-bottom: 2px solid #18d26e;
padding-bottom: 6px;
}
#header h2 span:hover {
color: #ffff;
border-bottom: 2px solid #ff28f4;
padding-bottom: 6px;
}
#header .social-links {
margin-top: 40px;
display: flex;
}
#header .social-links a {
font-size: 16px;
display: flex;
justify-content: center;
align-items: center;
background: rgba(255, 255, 255,0.1);
color: #ffff;
line-height: 1;
margin-right: 8px;
border-radius: 50%;
width: 40px;
height: 40px;
}
#header .social-links a:hover {
background: #18d26e;
}
/*make it resposive*/
#media (max-width:992px) {
#header h1 {
font-size: 36px;
}
#header h2 {
font-size: 20px;
line-height: 30px;
}
#header .social-links {
margin-top: 15px;
}
#header .container {
display: flex;
flex-direction: column;
align-items: center;
}
}
I'm trying to move the Navigation position "menu" to the top, check the pic:
.site-header-layout-two .main-navigation {
position: absolute;
bottom: 0;
right: 20px;
margin: 0;
top: 1px;
}
But if I change the top value or bottom value automatically the menu will stuck at the bottom.
Am I doing it wrong! or there is other code line conflict with this one! Here is my full code if you want to check other things:
html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
body {
margin: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
display: block;
}
audio,
canvas,
progress,
video {
display: inline-block;
vertical-align: baseline;
}
audio:not([controls]) {
display: none;
height: 0;
}
[hidden],
template {
display: none;
}
a {
background-color: transparent;
}
a:active,
a:hover {
outline: 0;
}
abbr[title] {
border-bottom: 1px dotted;
}
b,
strong {
font-weight: bold;
}
dfn {
font-style: italic;
}
mark {
background: #ff0;
color: #000;
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
img {
border: 0;
}
svg:not(:root) {
overflow: hidden;
}
figure {
margin: 1em 40px;
}
hr {
box-sizing: content-box;
height: 0;
}
pre {
overflow: auto;
}
code,
kbd,
pre,
samp {
font-family: monospace, monospace;
font-size: 1em;
}
button,
input,
optgroup,
select,
textarea {
color: inherit;
font: inherit;
margin: 0;
}
button {
overflow: visible;
}
button,
select {
text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button;
cursor: pointer;
}
button[disabled],
html input[disabled] {
cursor: default;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
input {
line-height: normal;
}
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box;
padding: 0;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
height: auto;
}
input[type="search"] {
-webkit-appearance: textfield;
box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
legend {
border: 0;
padding: 0;
}
textarea {
overflow: auto;
}
optgroup {
font-weight: bold;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
padding: 0;
}
/*---------
# Typography
----------*/
body,
button,
input,
select,
textarea {
color: #808080;
font-size: 16px;
font-size: 14px;
line-height: 1.5;
}
h1,
h2,
h3,
h4,
h5,
h6 {
clear: both;
}
p {
margin: 0 0 25px;
}
dfn,
cite,
em,
i {
font-style: italic;
}
blockquote {
margin: 0 1.5em;
}
address {
margin: 0 0 1.5em;
}
pre {
background: #eee;
font-family: "Courier 10 Pitch", Courier, monospace;
font-size: 15px;
font-size: 0.9375rem;
line-height: 1.6;
margin-bottom: 1.6em;
max-width: 100%;
overflow: auto;
padding: 1.6em;
}
code,
kbd,
tt,
var {
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
font-size: 15px;
font-size: 0.9375rem;
}
abbr,
acronym {
border-bottom: 1px dotted #666;
cursor: help;
}
mark,
ins {
background: #fff9c0;
text-decoration: none;
}
big {
font-size: 125%;
}
/*---------
# Elements
----------*/
html {
box-sizing: border-box;
}
*,
*:before,
*:after { /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
box-sizing: inherit;
}
body {
background: #FFF; /* Fallback for when there is no custom background color defined. */
background-position: center top;
background-size: cover;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: "";
}
blockquote,
q {
quotes: "" "";
}
hr {
background-color: #ccc;
border: 0;
height: 1px;
margin-bottom: 1.5em;
}
ul,
ol {
margin: 0 0 25px 20px;
padding: 0 0 0 10px;
}
ul li,
ol li {
margin: 0 0 12px;
}
ul {
list-style: disc;
}
ol {
list-style: decimal;
}
li > ul,
li > ol {
margin-bottom: 0;
margin-left: 1.5em;
}
dt {
font-weight: bold;
}
dd {
margin: 0 1.5em 1.5em;
}
img {
height: auto; /* Make sure images are scaled correctly. */
max-width: 100%; /* Adhere to container width. */
}
figure {
margin: 0;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
table {
margin: 0 0 1.5em;
width: 100%;
}
th {
font-weight: bold;
}
h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
font-weight: 300;
line-height: 1.0em;
word-wrap: break-word;
color: #5E5E5E;
margin-top: 0;
}
h1 {
font-size: 32px;
margin-bottom: .55em;
}
h2 {
font-size: 28px;
margin-bottom: .65em;
}
h3 {
font-size: 22px;
margin-bottom: .8em;
}
h4 {
font-size: 20px;
margin-bottom: 1.1em;
}
h5 {
font-size: 16px;
margin-bottom: 1.3em;
}
h6 {
font-size: 14px;
margin-bottom: 1.4em;
}
.entry-content code {
display: block;
background: #f7f7f7;
border: 1px solid #D8D8D8;
padding: 10px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.09);
margin: 5px 0;
overflow-x: auto;
}
/*------------
# Navigation
------------*/
/*-----------
## Links
---------------*/
a {
text-decoration: none;
outline: none;
box-shadow: none;
}
a:visited {
}
a:hover,
a:focus,
a:active {
}
a:focus {
}
a:hover,
a:active {
outline: 0;
}
/*---------
## Menus
---------*/
.main-navigation ul {
display: block;
list-style: none;
margin: 0;
padding: 0;
}
.main-navigation li {
position: relative;
float: left;
margin: 0 5px;
text-transform: uppercase;
}
.main-navigation li a {
display: block;
text-decoration: none;
font-weight: 400;
color: #FFF;
}
.main-navigation li a span {
display: none;
}
.main-navigation ul ul {
background-color: rgba(0, 0, 0, 0.9);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
float: left;
position: absolute;
top: 57px;
left: -999em;
z-index: 99999;
display: none;
}
.main-navigation ul ul a {
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
white-space: nowrap;
text-align: left;
width: 100%;
padding: 15px 25px 15px 20px;
min-width: 190px;
float: none;
}
.main-navigation ul ul ul {
top: 1px;
}
.main-navigation ul ul li {
float: none;
width: 100%;
display: block;
margin: 0;
}
.main-navigation li:hover > a,
.main-navigation li.focus > a {
}
.main-navigation ul ul :hover > a,
.main-navigation ul ul .focus > a {
}
.main-navigation ul ul a:hover,
.main-navigation ul ul a.focus {
}
.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
left: 0;
display: block;
}
.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
right: 100%;
}
.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_ancestor > a {
}
/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
display: block;
}
#main-menu:after {
display: block;
content: '';
clear: both;
}
.header-menu-button {
display: none;
}
.menu-dropdown-btn {
display: none;
position: absolute;
top: 0;
right: 0;
background-color: rgba(255, 255, 255, 0.1);
color: #838383;
margin: 0;
padding: 10px 14px;
/* box-shadow: -1px 0 0 rgba(0, 0, 0, 0.08); */
height: 35px;
line-height: 15px;
text-align: center;
font-size: 14px;
z-index: 9;
cursor: pointer;
}
.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
margin: 0 0 1.5em;
overflow: hidden;
}
.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
float: left;
width: 50%;
}
.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
float: right;
text-align: right;
width: 50%;
}
/* Small menu */
.menu-toggle {
display: none;
}
.main-menu-close {
display: none;
}
/*-----------
# Accessibility
-------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
}
.screen-reader-text:hover,
.screen-reader-text:active,
.screen-reader-text:focus {
background-color: #f1f1f1;
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto !important;
color: #21759b;
display: block;
font-size: 14px;
font-size: 0.875rem;
font-weight: bold;
height: auto;
left: 5px;
line-height: normal;
padding: 15px 23px 14px;
text-decoration: none;
top: 5px;
width: auto;
z-index: 100000; /* Above WP toolbar. */
}
/*--------------
# Alignments
---------------*/
.alignleft {
display: inline;
float: left;
margin-right: 1.5em;
}
.alignright {
display: inline;
float: right;
margin-left: 1.5em;
}
.aligncenter {
clear: both;
display: block;
margin-left: auto;
margin-right: auto;
}
/*-------------
# Clearings
--------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
content: "";
display: table;
}
.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
clear: both;
}
/* -------- Header Elements -------- */
.site-header {
background-color: rgba(0, 0, 0, 0.8);
position: relative;
color: #FFF;
}
.site-header-layout-two .site-header {
box-shadow: 0 -6px 0 rgba(0, 0, 0, 0.6) inset;
padding: 0 0 5px;
}
.site-header .site-container {
position: relative;
max-width: 1280px;
}
.header-container {
position: relative;
z-index: 4;
}
.header-social-icon {
font-size: 15px;
color: inherit;
margin: 2px 0 0 10px;
display: inline-block;
vertical-align: top;
}
.site-branding {
float: left;
position: relative;
z-index: 12;
padding: 30px 0;
}
.site-branding-img {
padding: 0;
}
.site-branding a {
display: block;
line-height: inherit;
}
.site-branding a img {
display: block;
}
.site-title {
margin: 0;
padding: 0 0 10px;
font-size: 40px;
line-height: 50px;
font-weight: 300;
text-transform: uppercase;
}
.site-description {
margin: 0;
padding: 0;
font-size: 15px;
line-height: 16px;
font-weight: 300;
text-transform: uppercase;
color: inherit;
}
.site-header-right {
position: absolute;
top: 50%;
right: 20px;
margin: -70px 0 0;
text-align: right;
}
.site-header-right-txt {
margin: -52px 0 0;
}
.site-header-right-no-txt {
margin: -70px 0 0;
}
.site-header-right-no-ss {
margin: -38px 0 0;
}
.site-header-right-no-sst {
margin: -58px 0 0;
}
.site-header-signup {
}
.site-header-cart {
}
.site-header-right-top {min-height: 36px;}
.site-topbar-right-no {
font-size: 15px;
border-bottom: 1px dashed #FFF;
padding: 0 0 5px;
}
.site-topbar-right-no i.fa {
font-size: 14px;
margin: 0 2px 0 4px;
}
.site-topbar-right-no span {
font-size: 24px;
margin: 0 0 0 30px;
}
.site-header-right-bottom {
padding: 6px 0 0;
}
.site-header-social {
padding: 2px 0 0;
}
.social-pinterest span {
font-size: 11px;
position: relative;
top: -2px;
margin: 0 0 0 4px;
}
.header-cart {
display: inline-block;
vertical-align: middle;
padding: 0;
}
.header-cart a {
display: inline-block;
vertical-align: middle;
color: inherit;
text-transform: uppercase;
}
a.header-cart-contents {
color: inherit !important;
}
.header-cart-amount {
}
.header-cart-checkout {
margin: 0 0 0 4px;
font-size: 16px;
}
#main-menu {
text-align: center;
}
.main-navigation {
padding: 0;
-webkit-transition: right 0.4s ease 0s;
-moz-transition: right 0.4s ease 0s;
-ms-transition: right 0.4s ease 0s;
-o-transition: right 0.4s ease 0s;
transition: right 0.4s ease 0s;
}
.site-header-layout-one .main-navigation {
background-color: rgba(0, 0, 0, 1);
position: relative;
z-index: 4;
}
.site-header-layout-one .main-navigation li a {
padding: 18px 20px 18px;
}
.site-header-layout-one .main-navigation ul ul li a {
padding: 14px 25px 16px;
}
.main-navigation ul ul li {
position: relative;
}
.main-navigation ul ul ul {
}
.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
right: auto;
left: 0;
}
.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
right: auto;
left: 100%;
}
/* -------- Header Layout Two -------- */
.site-top-bar {
background-color: rgba(0, 0, 0, 0.6);
}
.site-top-bar-left {
float: left;
padding: 2px 0 0;
min-height: 31px;
}
.site-top-bar-right {
float: right;
padding: 2px 0 0;
min-height: 31px;
}
.site-header-layout-two {
}
.site-header-layout-two .header-social-icon {
margin: 0 10px 0 0;
}
.site-header-layout-two .site-topbar-right-no {
display: inline-block;
font-size: inherit;
vertical-align: middle;
margin: 0 12px 0 0;
padding: 0;
border: 0;
}
.site-header-layout-two .site-topbar-right-no span {
font-size: inherit;
}
.site-header-layout-two .main-navigation {
position: absolute;
bottom: 0;
right: 20px;
margin: 0;
}
.site-header-layout-two .main-navigation li {
margin: 0;
}
.site-header-layout-two .main-navigation li a {
padding: 55px 25px 60px;
}
.site-header-layout-two .main-navigation ul li:last-child a {
padding: 55px 0 60px 25px;
}
.site-header-layout-two .main-navigation ul ul li a {
padding: 14px 25px 16px !important;
}
.site-header-layout-two .main-navigation ul ul {
top: 130px;
border-top: 6px solid #000;
}
.site-header-layout-two .main-navigation ul ul ul {
top: 1px;
border: 0;
}
.sabino-header-nav {
display: inline-block;
vertical-align: middle;
margin: -1px 8px 0 0;
}
.sabino-header-nav ul {
margin: 0;
padding: 0;
}
.sabino-header-nav ul li {
display: inline-block;
vertical-align: middle;
list-style-type: none;
margin: 0;
padding: 0;
}
.sabino-header-nav ul li a {
display: block;
text-transform: uppercase;
padding: 0px 3px;
margin: 0 2px;
color: inherit;
}
.sabino-header-nav ul li:first-child a {
padding: 0px 3px 0 0;
margin: 0 2px 0 0;
}
body.show-site-search .search-block {
display: block;
}
/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation, /* Older / Newer Posts Navigation (always hidden) */
.infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */
display: none;
}
/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
display: block;
}
/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
margin-bottom: 1.5em;
}
.gallery-item {
display: inline-block;
text-align: center;
vertical-align: top;
width: 100%;
}
.gallery-columns-2 .gallery-item {
max-width: 50%;
}
.gallery-columns-3 .gallery-item {
max-width: 33.33%;
}
.gallery-columns-4 .gallery-item {
max-width: 25%;
}
.gallery-columns-5 .gallery-item {
max-width: 20%;
}
.gallery-columns-6 .gallery-item {
max-width: 16.66%;
}
.gallery-columns-7 .gallery-item {
max-width: 14.28%;
}
.gallery-columns-8 .gallery-item {
max-width: 12.5%;
}
.gallery-columns-9 .gallery-item {
max-width: 11.11%;
}
.gallery-caption {
display: block;
}
#media only screen and (max-width: 960px) {
.menu-dropdown-btn {
display: block;
}
.header-menu-button {
display: block;
padding: 14px 0 16px;
text-transform: uppercase;
font-size: 17px;
cursor: pointer;
text-align: center;
}
.header-menu-button i {
font-size: 17px;
vertical-align: middle;
}
.header-menu-button span {
vertical-align: middle;
margin: 0 0 0 6px;
}
.site-header-layout-two .header-menu-button {
padding: 48px 0 60px 80px;
}
.main-navigation #main-menu {
color: #FFFFFF;
position: fixed;
top: 0;
right: -280px;
width: 280px;
max-width: 100%;
-ms-box-sizing: border-box;
box-sizing: border-box;
padding: 82px 22px 30px 22px;
background: #000000;
z-index: 99998;
height: 100%;
overflow: auto;
transition: right 0.4s ease 0s;
}
.main-navigation li {
display: block;
float: none;
}
.main-navigation li a {
display: block;
float: none;
padding: 8px 0 !important;
color: #C5C5C5 !important;
text-align: left;
}
.main-navigation ul ul {
position: relative !important;
top: 0 !important;
left: 0 !important;
float: none !important;
background-color: rgba(255, 255, 255, 0.14) !important;
padding: 0;
margin: 0;
display: none !important;
}
.main-navigation ul ul li:last-child a,
.main-navigation ul ul li a {
padding: 7px 10px;
width: auto;
}
.main-navigation ul ul li a {
background: none !important;
}
#primary-menu {
display: block;
}
.main-menu-close {
display: block;
border-radius: 4px;
position: absolute;
top: 10px;
right: 10px;
font-size: 30px;
color: #898989;
text-align: center;
padding: 0 8px 0 12px;
height: 40px;
line-height: 38px;
cursor: pointer;
z-index: 99;
}
.main-menu-close .fa-angle-left {
position: relative;
left: -4px;
}
li.open-page-item > ul.children,
li.open-page-item > ul.sub-menu {
display: block !important;
}
body.admin-bar .main-menu-close {
top: 52px;
}
body.admin-bar .header-cart {
top: 55px;
}
}
#media only screen and (max-width: 880px) {
.post-loop-thumbnail {
float: none !important;
width: 100% !important;
}
.post-loop-content {
float: none !important;
width: 100% !important;
padding: 20px 5px 0 !important;
}
.content-layout-blocks .sabino-blog-breakup .post-loop-thumbnail {
position: relative !important;
height: 400px !important;
}
.content-layout-blocks .sabino-blog-breakup .post-loop-content {
margin: 0 !important;
padding: 20px !important;
}
.content-layout-blocks .sabino-blog-breakup .blog-top-layout .post-loop-thumbnail {
height: auto !important;
}
}
#media only screen and (max-width: 782px) {
.page-template-default .content-area,
.woocommerce #container,
.woocommerce-page #container,
.content-area {
box-shadow: none;
width: 100%;
float: none;
padding: 25px 0 30px;
}
.content-layout-blocks.content-joined-widgets .content-area,
.content-layout-blocks.content-joined-widgets #container,
.content-layout-blocks.content-broken-widgets .content-area,
.content-layout-blocks.content-broken-widgets #container {
box-shadow: none;
width: 100%;
float: none !important;
padding: 25px 20px 30px;
}
.content-layout-blocks .site-container-main {
padding: 0 20px;
}
.page-template-default .widget-area,
.widget-area,
.content-layout-blocks.content-broken-widgets .widget-area {
box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.08);
width: 100%;
float: none;
padding: 0 0 5px !important;
margin: 0 0 10px;
}
.page-template-template-left-sidebar-php .content-area {
box-shadow: none;
width: 100%;
float: none;
padding: 25px 0 30px;
}
.page-template-template-left-sidebar-php .widget-area,
.page-template-template-left-sidebar-php .content-layout-blocks.content-broken-widgets .widget-area {
box-shadow: none;
width: 100%;
float: none;
padding: 0 0 5px;
margin: 0 0 10px;
}
/*--------------------------------------------------------------
Header One Styling
--------------------------------------------------------------*/
.site-branding {
float: none;
padding: 10px 0;
text-align: center;
}
.site-header-right {
position: relative;
margin: 0;
top: auto;
right: auto;
text-align: center;
}
.site-header-right-top {
min-height: initial;
}
.site-header-right-bottom {
padding: 0 0 5px;
}
.site-header-layout-two .main-navigation {
position: relative;
right: auto;
}
.site-header-layout-two .header-menu-button {
padding: 5px 0 15px;
}
.site-top-bar-left {
float: none;
text-align: center;
min-height: 20px;
}
.site-top-bar-right {
float: none;
text-align: center;
padding: 2px 0 2px;
}
.search-block {
position: relative;
top: 0 !important;
right: 0;
padding: 12px;
}
.search-block .search-field {
width: 100%;
}
.site-footer-standard .site-footer-widgets .site-container > ul {
display: block;
}
.site-footer-standard .site-footer-widgets .site-container > ul > li {
display: block;
width: 100%;
padding: 10px 0 20px !important;
}
.site-footer-bottom-bar-left,
.site-footer-bottom-bar-right {
float: none;
text-align: center;
}
}
body.show-main-menu #main-menu {
right: 0px !important;
}
body.show-main-menu #page {
right: 280px !important;
}
change below class, reduce the padding
.site-header-layout-two .main-navigation li a {
padding: 19px 25px 6px;
}
and remove below code
.site-header-layout-two .main-navigation ul li:last-child a {
padding: 55px 0 60px 25px;
}
Maybe try setting float: left; on the "Martcor" logo, and float: right; on you navigation items on the right side.
/* =============================================================================
Global settings
========================================================================== */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section {
display: block;
}
audio,
canvas,
video {
display: inline-block;
*display: inline;
*zoom: 1;
}
audio:not([controls]) {
display: none;
}
[hidden] {
display: none;
}
html {
font-size: 100%;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
html,
button,
input,
select,
textarea {
font-family: sans-serif;
color: #222;
}
body {
margin: 0;
font-size: 1em;
line-height: 1.4;
}
::-moz-selection {
background: #fe57a1;
color: #fff;
text-shadow: none;
}
::selection {
background: #fe57a1;
color: #fff;
text-shadow: none;
}
a {
color: #00e;
}
a:visited {
color: #551a8b;
}
a:hover {
color: #06e;
}
a:focus {
outline: thin dotted;
}
a:hover,
a:active {
outline: 0;
}
abbr[title] {
border-bottom: 1px dotted;
}
b,
strong {
font-weight: bold;
}
blockquote {
margin: 1em 40px;
}
dfn {
font-style: italic;
}
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1em 0;
padding: 0;
}
ins {
background: #ff9;
color: #000;
text-decoration: none;
}
mark {
background: #ff0;
color: #000;
font-style: italic;
font-weight: bold;
}
pre,
code,
kbd,
samp {
font-family: monospace, serif;
_font-family: 'courier new', monospace;
font-size: 1em;
}
pre {
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
}
q {
quotes: none;
}
q:before,
q:after {
content: "";
content: none;
}
small {
font-size: 85%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
ul,
ol {
margin: 0;
padding: 0;
}
dd {
margin: 0 0 0 40px;
}
nav ul,
nav ol {
list-style: none;
list-style-image: none;
margin: 0;
padding: 0;
}
img {
border: 0;
-ms-interpolation-mode: bicubic;
vertical-align: middle;
}
svg:not(:root) {
overflow: hidden;
}
figure {
margin: 0;
}
form {
margin: 0;
}
fieldset {
border: 0;
margin: 0;
padding: 0;
}
label {
cursor: pointer;
}
legend {
border: 0;
*margin-left: -7px;
padding: 0;
white-space: normal;
}
button,
input,
select,
textarea {
font-size: 100%;
margin: 0;
vertical-align: baseline;
*vertical-align: middle;
}
button,
input {
line-height: normal;
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
cursor: pointer;
-webkit-appearance: button;
*overflow: visible;
}
button[disabled],
input[disabled] {
cursor: default;
}
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box;
padding: 0;
*width: 13px;
*height: 13px;
}
input[type="search"] {
-webkit-appearance: textfield;
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
box-sizing: content-box;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
-webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
textarea {
overflow: auto;
vertical-align: top;
resize: vertical;
}
input:valid,
textarea:valid {} input:invalid,
textarea:invalid {
background-color: #f0dddd;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
td {
vertical-align: top;
}
.chromeframe {
margin: 0.2em 0;
background: #ccc;
color: black;
padding: 0.2em 0;
}
.ir {
display: block;
border: 0;
text-indent: -999em;
overflow: hidden;
background-color: transparent;
background-repeat: no-repeat;
text-align: left;
direction: ltr;
*line-height: 0;
}
.ir br {
display: none;
}
.hidden {
display: none !important;
visibility: hidden;
}
.visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
width: auto;
}
.invisible {
visibility: hidden;
}
.clearfix:before,
.clearfix:after {
content: "";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
*zoom: 1;
}
/* =============================================================================
Fonts
========================================================================== */
/* =============================================================================
Theme Global settings
========================================================================== */
#container {
min-height: 100%;
}
.content {
position: relative;
display: block;
width: 1024px;
margin: 0 auto;
}
.nav_hover {
background: #fff;
}
/* =============================================================================
Header
========================================================================== */
header {
position: relative;
width: 100%;
height: 100px;
background: url('../images/feral/header-bg.png') repeat-x;
}
header #logo {
float: left;
width: 33%;
padding: 18px 0 0 0;
margin-right: 25px;
}
/* =============================================================================
Nav
========================================================================== */
nav {
float: left;
width: 33%px;
height: 100px;
}
nav #site_tools {
float: left;
margin-left: 25px;
margin-right: 50px;
}
nav #site_tools a {
font-size: 14px;
color: #fff;
padding: 10px 10px 0 0;
text-decoration: none;
text-shadow: 0px 2px 1px #000;
}
nav #site_tools,
nav #display_search {
padding: 10px 0 0 10px;
}
nav #display_search input[type=text] {
width: 200px;
height: 10px;
font-size: 12px;
font-weight: bold;
padding: 10px;
margin: 0;
}
nav #display_search input[type=submit] {
width: 21px;
height: 21px;
background: url('../images/feral/search-icon.png') repeat-x;
border: none;
padding: 0;
margin: 0 0 0 5px;
}
#callus {
padding-top: 10px;
}
#top_nav {
height: 40px;
background: #8e744f;
}
#top_nav #display_menu_1 {
width: 1024px;
margin: 0 auto;
}
/* =============================================================================
Body
========================================================================== */
#main {
position: relative;
width: 100%;
background: #f4f4f4;
overflow: hidden;
}
#main #left_nav {
width: 214px;
background: #e5e4e4;
}
#main #left_nav h3 {
height: 26px;
font-size: 15px;
color: #fff;
background: #c2c0c0;
padding: 6px 0 0 15px;
}
#main #left_nav #display_menu_2 a {
color: #301f14;
}
#main #left_nav #display_menu_2 a:hover {
color: #fff;
background: #002284 left center no-repeat;
}
#main #content_area {
margin: 0;
padding: 6px 6px 15px 19px;
text-align: left;
width: 810px;
background: #fff;
}
#main #div_articleid_1 ul,
#main #div_articleid_5 ul {
margin-left: 0;
padding-left: 18px;
}
#main #div_articleid_1,
#main #div_articleid_4,
#main #div_articleid_5 {
line-height: 22px;
}
#main #div_articleid_4 strong {
margin-bottom: 10px;
}
table ul {
margin: 0 0 0 25px;
}
#slideshow {
position: relative;
height: 350px;
}
#slideshow A {
position: absolute;
top: 0;
left: 15px;
z-index: 8;
opacity: 0.0;
}
#slideshow A.active {
z-index: 10;
opacity: 1.0;
}
#slideshow A.last-active {
z-index: 9;
}
.special-products {
margin: 0 0 0 40px;
}
/* =============================================================================
Footer
========================================================================== */
footer {
position: relative;
width: 100%;
background: #575450;
border-top: 4px solid #900101;
}
footer .content {
height: 140px;
padding-top: 30px;
}
footer .content .left,
footer .content .center,
footer .content .text {
float: left;
width: 18%;
}
footer .content .left {
padding: 0 0 0 20px;
}
footer .content .center {
width: 80%;
font-size: 14px;
color: #fff;
}
footer .content .center a {
font-size: 14px;
color: #fff;
}
footer .content .center ul,
footer .content .text ul {
float: left;
}
footer .content .center ul {
margin-left: 25px;
}
footer .content .center ul li,
footer .content .text ul li {
list-style: none;
}
footer .content .center ul li.title {
font-weight: bold;
}
footer .content .text {
width: 100%;
clear: both;
text-align: center;
}
footer .content .text ul {
float: none;
margin: 40px 0 0 250px;
}
footer .content .text ul li {
float: left;
color: #fff;
font-size: 12px;
margin-right: 15px;
}
/* =============================================================================
Print
========================================================================== */
#media print {
* {
background: transparent !important;
color: black !important;
box-shadow: none !important;
text-shadow: none !important;
filter: none !important;
-ms-filter: none !important;
}
a,
a:visited {
text-decoration: underline;
}
a[href]:after {
content: " (" attr(href)")";
}
abbr[title]:after {
content: " (" attr(title)")";
}
.ir a:after,
a[href^="javascript:"]:after,
a[href^="#"]:after {
content: "";
}
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
thead {
display: table-header-group;
}
tr,
img {
page-break-inside: avoid;
}
img {
max-width: 100% !important;
}
#page {
margin: 0.5cm;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
}
.productnamecolorLARGE > span:nth-child(1) {
font: 20px Arial;
}
This is our css template. I've been told there is something within the css that is interfering with a default function that would allow one to click on a drop-down suggestion from the search results and be redirected to the relevant page.
The links in the dropdown seem to work fine, you might be referring to the cursor.
Add
Located: jquery-ui.css line 101
.ui-menu .ui-menu-item a{
cursor: pointer !important;
}
or change
Located: jquery-ui.css line 69
.ui-autocomplete {
cursor:pointer
}
On the mobile devices, I need to hide li when scroll or pressing any area of screen. This is on the fixed header menu and how can I achieve this ? Thank you for your help.
HTML:
<ul class="profilenav">
<li id="settingslink">
<div id="settingslist">
<ul class="sub">
<li>AAAAA</li>
<li>AAAAA</li>
<li>AAAAA</li>
</ul>
</div>
</li>
<li>BBBBB</li>
<li>CCCCC</li>
</ul>
</header>
</div>
CSS:
body #Head h1 {
border: 0 none;
display: inline-block;
font-weight: bold;
margin: 0;
padding: 0 10px 0 0;
}
ul { list-style: none; }
img { border: 0; }
p { font-size: 1.3em; line-height: 1.25em; color: #666; margin-bottom: 15px; }
#wrap { display: block; margin: 0 auto; padding: 0px 40px; }
#settingslink { position: relative; }
#settingslink:hover { background: #fff !important; }
#settingslink:hover a { color: #3f6998; }
.HeaderWrap {
width: 100%;
background: #F5F5F5;
border:1px solid #D8D8D8;
border-width:1px 0;
}
header {
width: 98%;
margin-left: auto;
margin-right: auto;
display: block;
position: relative;
height: 35px;
border: 0;
}
.logo { float: left; color: #fff; display: block; margin-left: 10px; font-size: 24px; letter-spacing: normal; line-height: 35px; }
.profilenav { position: absolute; right: 0; }
.profilenav li { display: block; font-size: 1.2em; float: left; }
.profilenav a { display: block; line-height: 25px; font-size: 18px; color: #333333; text-decoration: none; padding: 0 10px; z-index: 10; }
.profilenav a:hover { color: #b6cadd; }
.profilenav li:hover #settingslist { display: block; position: absolute; }
#settingslist { background: #fff; display: none; position: absolute; padding-top: 7px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); z-index: 100; }
#settingslist .sub { background: #fff; }
#settingslist .sub li { font-size: 10px; font-weight: ; background: #fff; text-align: left; }
#settingslist .sub li a { background: #fff; display: block; line-height: 25px; padding: 3px 6px; color: #596774; width: 120px; }
#settingslist .sub li a:hover { background: #537db9; color: #fff; }
#avatar { float: right; display: block; width: 240px; }
#avatar img { padding: 3px; border: 1px solid #cbcbcb; }
#body { display: block; background: #fff; min-height: 200px; margin-top: 50px; padding: 11px 20px; padding-bottom: 30px; }
.clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; }
.clearfix { display: inline-block; }
html[xmlns] .clearfix { display: block; }
* html .clearfix { height: 1%; }
I have my first responsive design website here
I tried resizing my window using Chrome and FF and i see that the responsiveness is working ... But when i viewed it on my phone it looks the same as i see it in my desktop.
Here's my CSS
#import url(http://fonts.googleapis.com/css?family=Roboto);
#import url(http://fonts.googleapis.com/css?family=Lato:300,700);
html {
font-family: 'Roboto', sans-serif;
font-size: 14px;
line-height: 1.2em;
background-color: #FFF;
color: rgb(68, 68, 68);
font-weight: normal;
!important;
-webkit-font-smoothing: antialiased;
}
.side-container {
margin: 0;
padding: 0;
padding-right: 0;
}
.sidebar {
width: auto;
position: fixed;
overflow-x: auto;
overflow-y: auto;
background-color: transparent;
float: left;
border-left: 740px solid transparent;
padding: 50px 0 0 0;
}
.main-content-wrapper {
margin: 0;
width: 620px;
padding: 60px 60px 200px 60px;
position: absolute;
}
.postcont.main-content-wrapper, .main-content-wrapper {
margin: 0;
}
::selection {
background: #202020;
color: #fff;
text-shadow: none;
}
.ease {
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
.prettyprint {
background-color: rgb(46, 46, 46);
display: inline-block;
padding: 2px 8px;
border: 1px solid rgb(0, 0, 0);
font-size: 0.9em;
}
.profile {
padding: 60px 20px 20px 60px;
width: 250px;
}
.profile .avatar {
max-width: 80px;
height: auto;
opacity: 0;
}
.profile .avatar-wrapper {
display: block;
margin: 0 0 20px 0;
-moz-border-radius: 50px;
-webkit-border-radius: 50px;
border-radius: 50px;
background-position: center center;
background-size: 80px 80px;
width: 80px;
height: 80px;
}
.profile .username {
text-decoration: none;
color: rgb(68, 68, 68);
font-family: 'Lato', sans-serif;
font-weight: normal;
}
.profile .Med.bio {
font-size: 14px;
line-height: 1.5em;
font-family: 'Lato', sans-serif;
}
.profile .Tiny.location {
color: #999;
font-family: 'Lato', sans-serif;
}
.profile p {
margin: 0.2em 0;
color: rgb(68, 68, 68);
}
.profile .twitter-handle a {
background-image: url(../images/twitter-bird-black-bgs.png);
background-repeat: no-repeat;
display: block;
opacity: 0.2;
background-position: top left;
width: 26px;
height: 26px;
background-size: 26px 26px;
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
margin: 10px 0;
}
.profile .twitter-handle a:hover {
opacity: 0.6;
}
.profile .twitter-handle span {
display: none;
}
.mini-profile {
padding: 30px 0;
margin: 20px 0 0 0;
border-top: 1px solid #FFF;
border-bottom: 1px solid rgb(214, 214, 214);
-moz-box-shadow: 0 1px 0 rgb(255, 255, 255), 0 -1px 0 rgb(214, 214, 214);
-webkit-box-shadow: 0 1px 0 rgb(255, 255, 255), 0 -1px 0 rgb(214, 214, 214);
box-shadow: 0 1px 0 rgb(255, 255, 255), 0 -1px 0 rgb(214, 214, 214);
}
.mini-profile .avatar-wrapper, .mini-profile .avatar {
max-width: 50px;
height: auto;
display: inline-block;
vertical-align: top;
}
.mini-profile .avatar-wrapper {
float: left;
}
.mini-profile .profile-about {
display: block;
padding-left: 20px;
margin-left: 50px;
}
.mini-profile .username, .mini-profile .bio, .mini-profile .twitter-handle {
margin: 0;
padding: 0;
}
.mini-profile .username {
font-weight: bold;
line-height: 1em;
padding-bottom: 6px;
}
.mini-profile .twitter-handle {
font-weight: bold;
}
.mini-profile .location {
display: none;
}
.mini-profile .twitter-handle a {
background-image: url(../images/twitter-bird-light-bgs.png);
opacity: 1;
}
.jplnav {
list-style-type: none;
margin: 0;
padding: 0 0 0 60px;
}
.jplnav li a {
display: block;
margin: 0;
}
.jplnav a {
text-decoration: none;
display: block;
padding: 5px 0;
}
.jplnav a:hover {
text-decoration: none;
color: rgb(111, 152, 190);
}
.jplnav li.active a {
color: #CCC;
}
.section-trigger {
background-color: transparent;
}
ul.sections {
margin: 0;
padding: 0;
}
.menu, .expand-profile {
width: 44px;
display: none;
position: absolute;
right: 10%;
top: 30px;
opacity: 0.3;
text-align: center;
background-color: rgb(179, 179, 179);
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
border-radius: 8px;
padding-top: 10px;
padding-bottom: 6px;
color: #000;
}
.menu:hover, .expand-profile:hover {
cursor: pointer;
opacity: 0.5;
}
.close-menu {
font-family: Arial !important;
font-size: 50px;
display: none;
line-height: 30px;
vertical-align: middle;
}
.wedge {
height: 4px;
margin: 0 8px 5px 8px;
background-color: #000;
display: block;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
}
.expand-profile {
right: 25%;
font-family: Georgia, Roboto, "Droid Serif", serif;
font-style: italic;
font-weight: bold;
font-size: 36px;
line-height: 0.8em;
}
.pager-footer {
margin: 40px 0;
padding: 10px 0;
}
.pager {
}
.pager span, .pager a {
display: inline-block;
padding: 2px;
}
.Loading {
text-align: center;
padding: 30px;
display: block;
margin-top: -50px;
margin-left: -1px;
}
.Loading img {
display: none;
margin: 0 auto;
}
h1 {
color: #202020;
font-size: 52px;
line-height: 1em;
font-weight: 300;
font-family: 'Lato', sans-serif;
text-transform: uppercase;
text-shadow: 0 2px 0 #FFF;
}
h1 a {
color: inherit;
}
h2, h3, h4, h5, h6 {
color: #202020;
font-family: 'Lato', sans-serif;
font-weight: bold;
}
.jplnav a {
font-size: 18px;
color: #91b6e4;
}
.jplnav li a {
font-family: 'Lato', sans-serif;
}
.Lrg {
font-size: 20px;
color: #202020;
font-weight: bold;
}
.Lrg a {
color: inherit;
}
.Med {
font-size: 16px;
line-height: 1.8em;
color: rgb(68, 68, 68);
}
.Sml {
font-size: 13px;
line-height: 1.4em;
color: rgb(68, 68, 68);
}
.Tiny {
font-size: 12px;
font-weight: normal;
color: rgb(68, 68, 68);
}
a {
color: rgb(96, 167, 207);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.post-header {
padding: 0 0 30px 0;
}
.post-header h1 {
margin: 0 0 10px 0;
padding: 0;
}
.post-date {
padding-top: 0;
margin-bottom: 0;
display: block;
color: #bfbfbf;
}
.entry {
padding: 0;
}
.entry span {
background-color: transparent !important;
}
.entry img {
max-width: 520px;
height: auto;
}
.entry blockquote {
font-style: normal;
margin: 10px 0;
padding: 20px;
background-color: #FFF;
display: block;
}
.entry blockquote.quote {
border-left: 0;
font-size: 1.2em;
color: #202020;
}
.entry blockquote.quote:before {
content: "“";
font-family: Georgia;
font-size: 40px;
line-height: 30px;
}
.post-footer {
padding: 0 0 50px 0;
margin-bottom: 50px;
border-bottom: 1px solid rgb(214, 214, 214);
-moz-box-shadow: 0 1px 0 rgb(255, 255, 255);
-webkit-box-shadow: 0 1px 0 rgb(255, 255, 255);
box-shadow: 0 1px 0 rgb(255, 255, 255);
}
.post-origin {
padding-bottom: 6px;
margin: 20px 0 20px 0;
display: block;
}
.image-block {
vertical-align: bottom;
padding: 10px;
}
.image-block img {
opacity: 0;
}
.image-block a {
display: inline-block;
}
.photo-detail {
-moz-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
display: inline-block;
margin: 0 auto;
padding: 0;
}
body.dribbble .postcont.main-content-wrapper, body.dribbble .main-content-wrapper {
margin-top: 0;
}
body.dribbble-shot .entry {
max-width: none;
text-align: center;
}
body.dribbble-shot .post-header h1 {
width: 400px;
margin: 0 auto;
}
body.dribbble-shot .photo-detail {
/* width: 400px; */
}
body.dribbble-shot .suppliment-group {
text-align: left;
width: 400px;
margin: 0 auto;
padding-top: 40px;
}
body.dribbble-shot .suppliment {
display: block;
margin-top: 6px;
}
body.dribbble-shot .mini-profile {
display: none;
}
body.flickr .postcont.main-content-wrapper, body.flickr .main-content-wrapper {
/* margin-top:0; */
}
body.flickr-photo .main-content-wrapper {
width: auto;
position: relative;
padding-top: 20px;
}
body.flickr-photo .sidebar {
width: auto;
position: relative;
float: none;
border-left: none;
padding: 30px 0;
}
body.flickr-photo .jplnav {
margin-left: 90px;
}
body.flickr-photo .jplnav li {
display: inline-block;
margin-right: 10px;
}
body.flickr-photo .profile {
width: auto;
padding: 10px 60px;
}
body.flickr-photo .profile .avatar-wrapper {
float: left;
width: 50px;
height: 50px;
background-size: 50px 50px;
}
body.flickr-photo .profile-about {
margin-left: 90px;
display: none;
}
body.flickr-photo .section-trigger {
display: none;
}
body.flickr-photo .post-header {
margin-top: 0;
padding-top: 50px;
}
body.flickr-photo .breadcrumb {
line-height: normal;
padding-top: 0;
margin-bottom: 10px;
color: #CCC;
}
body.flickr-photo .breadcrumb a {
color: inherit;
}
body.flickr-photo .post-header h1 {
max-width: none;
font-size: 38px;
margin: 0 0 0px 0;
color: rgb(185, 185, 182);
max-width: 600px;
}
body.flickr-photo .entry {
max-width: none;
}
body.flickr-photo .entry .description {
max-width: 600px;
margin-top: 50px;
}
body.flickr-photo .photo-detail {
text-align: center;
}
body.flickr-photo .entry img {
max-width: 100%;
width: auto;
margin: 0 auto;
}
body.flickr-photo .mini-profile {
display: none;
}
body.flickr-photo .post-footer {
border-bottom: 0;
margin-top: 50px;
max-width: 600px;
}
body.flickr-photoset .post-header {
padding: 20px 0 0 10px;
}
.video-block {
margin: 10px 0;
}
/* hide hastags */
.ot-hashtag {
display: none;
}
.link a {
background-color: rgb(224, 240, 255);
display: inline-block;
padding: 4px 8px;
}
.map {
display: block;
margin: 10px 0;
}
.googleplus-post .post-footer {
border-bottom: none;
padding-top: 50px;
}
/*
* Etsy
*/
body.etsy-section .post-header {
padding: 20px 0 0 10px;
}
body.etsy-listing .post-header {
padding: 60% 50px 0 0;
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
}
body.etsy-listing .post-header h1 {
background-color: rgba(255,255,255,0.9);
display: inline-block;
padding: 30px 30px 30px 44px;
margin: 0;
}
body.etsy-listing .post-header p.Lrg {
background-color: rgba(255,255,255,0.8);
display: inline-block;
padding: 4px 12px;
margin: 0;
height: auto;
line-height: 1em !important;
margin: 0;
display: inline-block;
vertical-align: bottom;
}
body.etsy-listing .photo-detail {
margin-bottom: 20px;
}
body.instagram-photo .mini-profile {
display: none;
}
.postcont.achievement, .postcont.portfolio, rticle.reviews {
margin-bottom: 50px;
}
.postcont.achievement header, .postcont.portfolio header, .postcont.reviews header {
padding-bottom: 0;
}
.angellist-grid, .angellist-grid ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.angellist-grid-content {
display: inline-block;
margin: 0 6px 0 0;
}
.angellist-grid-content .angellist-company-name a:before {
content: " / ";
rgb(78, 78, 78);
}
.angellist-grid-content:first-child .angellist-company-name a:before {
content: "";
}
.angellist-company-image {
display: none;
}
.angellist-company-concept {
display: none;
}
.angellist-grid-content:hover .angellist-company-concept {
display: block;
position: absolute;
}
.angellist-grid-content .angellist-company-concept {
position: absolute;
background-color: #FFF;
padding: 20px 20px 5px 20px;
width: 200px;
margin-left: -65px;
margin-top: 10px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
opacity: 0;
display: block;
visibility: hidden;
white-space: normal;
text-align: center;
-moz-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.angellist-company-image-popup {
width: 60px;
height: 60px;
display: block;
margin: 0 auto;
-webkist-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
background-position: center center;
background-size: 60px 60px;
background-repeat: no-repeat;
background-color: #FFF;
padding: 6px;
-moz-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.angellist-company-image-popup img {
display: none;
}
.angellist-grid-content .angellist-company-concept:after {
top: -5px;
right: 110px;
bottom: auto;
left: auto;
border-width: 0 5px 5px;
border-color: rgb(255,255,255) transparent;
content: "";
position: absolute;
border-style: solid;
display: block;
width: 0;
}
.angellist-company-concept p.Sml {
color: #202020;
}
.angellist-grid-content:hover .angellist-company-concept {
visibility: visible;
opacity: 1;
margin-top: 0;
-webkit-transition: opacity 0.2s ease-in-out 0.3s, margin-top 0.2s ease-in-out 0.3s;
-moz-transition: opacity 0.2s ease-in-out 0.3s, margin-top 0.2s ease-in-out 0.3s;
-o-transition: opacity 0.2s ease-in-out 0.3s, margin-top 0.2s ease-in-out 0.3s;
transition: opacity 0.2s ease-in-out 0.3s, margin-top 0.2s ease-in-out 0.3s;
}
.github-languages {
margin-bottom: 50px;
margin-top: 0;
}
.github-social-stats {
list-style-type: none;
margin: 0;
padding: 0;
}
.github-social-stats li {
float: left;
margin-right: 10px;
}
.github-social-stats span.Lrg {
font-weight: bold;
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial;
display: block;
}
.portfolio .post-header h1, .github-languages .post-header h1 {
font-size: 1.4em;
}
.portfolio .post-header, .github-languages .post-header, .github-repo .post-header {
padding-bottom: 0;
}
.github-repo .post-header h1 {
font-size: 1.8em;
}
.github-repo .entry p {
margin: 0;
padding: 0;
}
.github-starred {
font-size: 0.8em;
}
.github-starred .Lrg {
font-size: 1em;
}
.github-main-language {
font-size: 0.8em;
}
.github-main-language .Lrg {
font-weight: bold;
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial;
font-size: 1em;
}
body.feed .entry h1 {
text-shadow: none;
font-size: 1.2em;
text-transform: capitalize;
color: #202020;
font-family: 'Lato', sans-serif;
font-weight: bold;
}
.feed .entry img {
max-width: 100%;
height: auto;
}
body.page h1 {
margin: 0 0 10px 0;
padding: 0;
}
/* * * * * * * * * * * * * * * * * * * * * * * *
* Responsive Styles
* * * * * * * * * * * ** * * * * * * * * * * * */
/* Large desktop */
#media (min-width: 1200px) { /* */
}
/* Portrait tablet to landscape and desktop */
#media (min-width: 768px) and (max-width: 979px) { /* */
}
/* Shrink Navigation */
#media (max-height: 798px) {
/*
*
*
* Vertical Responsive Profile
*
*
*/
.profile {
padding-top: 20px;
padding-bottom: 20px;
}
.profile .avatar-wrapper {
/* display: none; */
}
/*
*
*
* Vertical Responsive Site Navigation
*
*
*/
.jplnav a {
font-size: 18px;
}
.jplnav {
margin: 40px 0 0 0;
}
.jplnav li {
padding: 15px 0;
}
.jplnav a {
padding: 0;
}
}
/* Landscape phone to portrait tablet */
#media (max-width: 767px) {
.sidebar {
float: none;
width: 100%;
overflow-x: auto;
overflow-y: auto;
background-color: #fff;
position: relative;
border: 0;
padding: 20px 0;
}
.main-content-wrapper {
margin: 0;
padding: 60px 60px 200px 60px;
position: relative;
width: auto;
}
.postcont.main-content-wrapper, .main-content-wrapper {
margin: 0;
}
/*
*
*
* Responsive: Site Navigation
*
*
*/
.jplnav {
padding: 10px 0;
display: none;
}
.jplnav li {
display: block;
padding: 0;
margin: 0;
margin-left: 10%;
margin-right: 10%;
text-align: left;
}
.jplnav a {
padding: 10px;
font-size: 20px;
border-top: 1px solid rgba(0,0,0,0.1);
}
/*
*
*
* Responsive: Sub Navigation
*
*
*/
.section-trigger {
margin: 0;
list-style-type: none;
position: relative;
top: auto;
left: auto;
right: auto;
border-bottom: 0;
-webkit-box-shadow: none;
-moz-box-shadow: none;
-o-box-shadow: none;
box-shadow: none;
padding: 10px;
text-align: left;
z-index: 99;
}
.sections {
text-align: center;
position: relative;
}
.section-trigger > ul.sections {
display: block;
opacity: 1;
filter: alpha(opacity=1);
position: relative;
bottom: auto;
margin: 0;
padding: 0;
}
.sections li {
display: block;
margin: 0 0 8px 0;
padding: 0;
}
.sections a {
display: block;
padding: 10px;
margin: 10px;
border: 3px solid rgba(0,0,0,0.1);
text-align: center;
font-weight: bold;
}
.section-block {
float: none;
margin: 0;
padding: 0;
}
/*
*
*
* Responsive: Image Block Styling
*
*
*/
.image-block {
vertical-align: bottom;
padding: 10px;
}
.image-block img {
opacity: 1;
display: block !important;
width: auto !important;
max-width: 100% !important;
min-width: 100% !important;
height: auto !important;
}
.image-block a {
display: block;
}
/*
*
*
* Responsive: Single Photo image styling
*
*
*/
.photo-detail {
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
display: block;
margin: 0 auto;
border: 0;
}
.photo-detail img {
width: 100%;
height: auto;
}
/*
*
*
* Responsive Pager
*
*
*/
.pager-footer {
margin: 25px 10px 50px 10px;
padding-top: 25px;
border-top: 1px solid #000;
}
.pager {
}
.pager span, .pager a {
display: block;
padding: 10px;
margin: 10px;
border: 3px solid rgba(0,0,0,0.1);
text-align: center;
font-weight: bold;
}
.menu, .expand-profile {
display: block;
}
/*
*
*
* Responsive: Generic Font Treatments
*
*
*/
.Lrg {
font-size: 24px;
}
.Med {
font-size: 18px;
}
.Sml {
font-size: 18px;
}
/*
*
*
* Responsive: User Profile
*
*
*/
.profile {
padding: 0;
margin: 0 0 20px 0;
float: none;
width: auto;
}
.profile .avatar-wrapper {
display: block;
margin-top: 20px;
margin-left: 10%;
background-repeat: no-repeat;
background-size: 60px 60px;
width: 60px;
height: 60px;
}
.profile .avatar {
max-width: 60px;
height: auto;
display: block;
}
.profile p {
margin: 0 auto;
padding: 0;
width: 80%;
}
.profile p.username {
margin: 10% 0 0 10%;
line-height: normal;
display: inline-block;
}
.profile .Med.bio {
font-size: 22px;
line-height: 1.5em;
color: #d4d4d4;
}
.profile .twitter-handle a {
margin: 0;
opacity: 0.3;
background-size: 36px 36px;
width: 36px;
height: 36px;
position: absolute;
right: 40%;
top: 34px;
}
.profile .twitter-handle span {
display: none;
}
.profile p.username, .profile .bio, .profile .location, .profile p {
display: none;
}
.profile p.twitter-handle {
display: block;
}
/*
*
*
* Responsive Loading image
*
*
*/
.Loading {
left: 0;
right: 0;
top: 50%;
display: block;
background-color: rgba(255, 255, 255, 0.9);
}
.Loading img {
display: block;
margin: 0 auto;
}
/*
*
*
* Responsive: Post Styling
*
*
*/
.post-header {
padding: 10% 10% 0 10%;
}
.post-header h1 {
word-break: normal;
font-size: 30px;
}
.post-footer {
padding: 0 10% 10% 10%;
}
.entry {
padding: 0 10% 10% 10%;
}
.entry img {
max-width: 100%;
}
.entry {
}
iframe, embed, object {
max-width: 260px;
}
/*
*
*
* Responsive: Flickr, Dribbble Styling Overrides
*
*
*/
body.dribbble-shot .entry, body.flickr-photo .entry {
padding: 10px;
}
body.dribbble-shot .post-header, body.flickr-photo .post-header {
margin-top: 0;
padding-top: 10px;
}
body.dribbble-shot .post-header h1, body.flickr-photo .post-header h1 {
opacity: 1;
font-size: 1em;
}
/*
*
*
* Flickr Responsive Profile
*
*
*/
body.flickr-photo .sidebar {
padding: 0;
}
body.flickr-photo .jplnav {
margin-left: 0;
}
body.flickr-photo .jplnav li {
display: block;
margin-right: 0;
}
body.flickr-photo .profile {
padding: 0;
}
body.flickr-photo .profile .avatar-wrapper {
float: none;
background-size: 60px 60px;
width: 60px;
height: 60px;
}
body.flickr-photo .profile-about {
display: block;
padding: 0;
}
.profile .profile-about {
display: block;
padding: 0;
}
/*
*
*
* Responsive: Etsy Overrides
*
*
*/
body.etsy-listing .post-header {
padding: 400px 0 0 0;
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
}
body.etsy-listing .post-header h1 {
display: block;
padding: 20px 10% 20px 10%;
margin: 0;
font-size: 20px;
line-height: 1.3em !important;
text-shadow: none;
background-color: rgb(255,255,255);
}
body.etsy-listing .post-header p.Lrg {
background-color: rgb(255,255,255);
display: inline-block;
padding: 4px 12px;
margin: 0;
height: auto;
line-height: 1em !important;
margin: 0;
display: inline-block;
vertical-align: bottom;
}
}
/* Landscape phones and down */
#media (max-width: 480px) {
.main-content-wrapper {
margin: 0;
padding: 0 0 200px 0;
position: relative;
width: auto;
}
/*
*
*
* Responsive: Section Navigation
*
*
*/
.sections a {
display: block;
padding: 0 4px 4px 0;
color: inherit;
font-size: 20px;
}
/*
*
*
* Responsive: User Profile Navigation
*
*
*/
.expand-profile {
right: 30%;
}
.profile .twitter-handle a {
right: 50%;
}
/*
*
*
* Responsive: Generic Font Treatments
*
*
*/
.Lrg {
font-size: 24px;
}
.Med {
font-size: 18px;
}
.Sml {
font-size: 14px;
}
}
This has to go in your head element
<meta name="viewport" content="width=device-width, initial-scale=1">
You can read more here
https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
Add this within your head tag.
Add this to your <head> section:
<meta name="viewport" content="width=device-width">