Related
I'm trying to change the colors of my menu bar, making them black just like it shows up in here with the 3 horizontal black bars at the top right in the figure below. However, I don't know what to look for in my CSS. What field controls it?
Edit: adding my code here to facilitate
/*
* .scss template
*/
nav {
background-color: #f5f5f5;
ul a {
color: $textgray;
img {
height: 64px;
}
}
ul li {
list-style-type: none;
}
i.right {
float: right;
margin-left: -5px;
}
.navlogo img {
height: 64px;
padding: 5px;
}
.navlogo:hover {
background-color: rgba(0, 0, 0, 0.0);
}
}
#toc-sidebar {
#media screen and (min-width: 992px) {
position: absolute;
top: 85px;
right: 23px;
width: 22%;
}
#media screen and (max-width: 992px) {
display: none;
}
&.fix-scroll {
position: fixed;
top: 7px;
}
padding: 3px;
a {
color: #666
}
a:hover {
text-decoration: underline;
font-weight: bold;
}
ul {
li {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
margin-bottom: 0px;
.selected {
font-weight: bold;
}
.H1 {
margin-left: 0px;
}
.H2 {
margin-left: 10px;
}
.H3 {
margin-left: 20px;
}
}
}
.content {
background-color: dark;
padding-bottom: 64px;
margin-bottom: 64px;
ul {
margin-left: 1.2rem;
li {
list-style-type: disc;
}
}
dl {
margin-left:10px;
}
}
.dropdown-content li > a, .dropdown-content li > span {
color: $textgray;
}
h3 {
code {
font-size: 2.5rem;
}
}
#media only screen and (max-width : 600px) {
#index-banner .section {
top: 0;
}
}
.icon-block {
padding: 0 15px;
.material-icons {
font-size: inherit;
}
}
footer.page-footer {
margin: 0;
background-color: #f5f5f5;
}
.row {
a {
color: blue;
}
}
code {
font-family: Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, monospace;
font-size: 13px;
color: #333;
background: #efefef;
border: 1px solid #c7c7c7;
border-radius: 2px;
padding: 0px 1px;
}
pre {
color:#efefef;
background: #333;
padding:8px 15px;
border-radius: 3px;
border:1px solid #c7c7c7;
overflow: auto;
overflow-y: hidden;
code {
color:#efefef;
background: #333;
text-shadow: 0px 1px 0px #000;
margin: 0px;
padding: 0px;
border: none;
}
}
.center-image {
margin: 0 auto;
display: block;
}
table {
line-height: 1.0rem;
}
table.border {
thead {
border-bottom: none;
}
tbody {
border: 1px solid black;
}
}
html {
font-size: 90%;
}
body {
background: #ffffff;
color: $textgray;
line-height: 1.6;
}
.bread {
padding-top: 48px;
margin: 48px;
ul {
margin-left: 1.2rem;
li {
list-style-type: disc;
}
}
dl {
margin-left:10px;
}
}
img.flip {
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: "FlipH";
}
.transition,.play {
-webkit-transition: .5s;
-moz-transition: .5s;
transition: .5s;
-webkit-transition-timing-function: cubic-bezier(.4,0,.5,1);
-moz-transition-timing-function: cubic-bezier(.4,0,.5,1);
transition-timing-function: cubic-bezier(.4,0,.5,1);
}
.nodec a {
font-weight:normal;
text-decoration:none;
color:#444;
}
.topborder {
border-top-style: solid;
border-color: $textgray;
border-width: 2px;
}
.bottomborder {
border-bottom-style: solid;
border-color: $textgray;
border-width: 2px;
}
.button-collapse {
color: #textgray;
}
.compact td {
padding: 5px;
}
.panel-info {
border: 1px solid black;
.panel-heading {
background-color: $textgray;
color: white;
h3 {
font-size: 2rem;
margin-top: 0px;
}
}
.panel-body {
padding-left: 1em;
.row {
margin-bottom: 5px;
}
ul {
margin-top: 2px;
margin-bottom: 2px;
margin-left: 2rem;
}
}
}
thanks in advance
You can add this to your CSS and append the class of your navbar and alter the below code to make it dark.
<style>
/* Modify the background color */
.navbar-custom {
background-color: dark;
}
/* Modify text color */
.navbar-custom .navbar-text {
color: white;
}
</style>
This is a basic hamburger-menu:
div {
width: 35px;
height: 5px;
background-color: black;
margin: 6px 0;
}
<p>A menu icon:</p>
<div></div>
<div></div>
<div></div>
From: https://www.w3schools.com/howto/howto_css_menu_icon.asp
Just change the background-color to your color
(I'm not sure whether this answers your question - I'm sorry if not)
I'm confused. Was trying to get rid of render blocking css on my website.
So I followed an instruction of aoxao.co.
I use Wordpress and Autoptimize for minifying all my .css file to one file.
Now I generated a critical path file for my homepage on jonassebastianohlsson.com.
Unfortunately I get the error mentioned in the title.
You can find all of the code down below and the line which produces the error in between (the line with the charset rule.
Have I missed anything?
BTW: I already tried the solution of another post which said I should untick the "Validate: Styles" - option in Visual Studio Code.
Thanks for your help!
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%
}
body {
margin: 0
}
article,header,nav,section {
display: block
}
a {
background-color: transparent
}
strong {
font-weight: bold
}
img {
border: 0
}
button {
color: inherit;
font: inherit;
margin: 0
}
button {
overflow: visible
}
button {
text-transform: none
}
button {
-webkit-appearance: button
}
button::-moz-focus-inner {
border: 0;
padding: 0
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box
}
*:before,*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box
}
html {
font-size: 10px
}
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.42857143;
color: #333;
background-color: #fff
}
button {
font-family: inherit;
font-size: inherit;
line-height: inherit
}
a {
color: #337ab7;
text-decoration: none
}
img {
vertical-align: middle
}
.img-responsive {
display: block;
max-width: 100%;
height: auto
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0
}
h2,h4 {
font-family: inherit;
font-weight: 500;
line-height: 1.1;
color: inherit
}
h2 {
margin-top: 20px;
margin-bottom: 10px
}
h4 {
margin-top: 10px;
margin-bottom: 10px
}
h2 {
font-size: 30px
}
h4 {
font-size: 18px
}
p {
margin: 0 0 10px
}
ul {
margin-top: 0;
margin-bottom: 10px
}
ul ul {
margin-bottom: 0
}
.container {
margin-right: auto;
margin-left: auto;
padding-left: 15px;
padding-right: 15px
}
#media (min-width:768px) {
.container {
width: 750px
}
}
#media (min-width:992px) {
.container {
width: 970px
}
}
#media (min-width:1200px) {
.container {
width: 1170px
}
}
.row {
margin-left: -15px;
margin-right: -15px
}
.collapse {
display: none
}
.caret {
display: inline-block;
width: 0;
height: 0;
margin-left: 2px;
vertical-align: middle;
border-top: 4px dashed;
border-top: 4px solid \9;
border-right: 4px solid transparent;
border-left: 4px solid transparent
}
.dropdown {
position: relative
}
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 160px;
padding: 5px 0;
margin: 2px 0 0;
list-style: none;
font-size: 14px;
text-align: left;
background-color: #fff;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 4px;
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
-webkit-background-clip: padding-box;
background-clip: padding-box
}
.dropdown-menu>li>a {
display: block;
padding: 3px 20px;
clear: both;
font-weight: normal;
line-height: 1.42857143;
color: #333;
white-space: nowrap
}
.nav {
margin-bottom: 0;
padding-left: 0;
list-style: none
}
.nav>li {
position: relative;
display: block
}
.nav>li>a {
position: relative;
display: block;
padding: 10px 15px
}
.navbar {
position: relative;
min-height: 50px;
margin-bottom: 20px;
border: 1px solid transparent
}
#media (min-width:769px) {
.navbar {
border-radius: 4px
}
}
#media (min-width:769px) {
.navbar-header {
float: left
}
}
.navbar-collapse {
overflow-x: visible;
padding-right: 15px;
padding-left: 15px;
border-top: 1px solid transparent;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
-webkit-overflow-scrolling: touch
}
#media (min-width:769px) {
.navbar-collapse {
width: auto;
border-top: 0;
-webkit-box-shadow: none;
box-shadow: none
}
.navbar-collapse.collapse {
display: block!important;
height: auto!important;
padding-bottom: 0;
overflow: visible!important
}
.navbar-fixed-top .navbar-collapse {
padding-left: 0;
padding-right: 0
}
}
.navbar-fixed-top .navbar-collapse {
max-height: 340px
}
#media (max-device-width:480px) and (orientation:landscape) {
.navbar-fixed-top .navbar-collapse {
max-height: 200px
}
}
.container>.navbar-header,.container>.navbar-collapse {
margin-right: -15px;
margin-left: -15px
}
#media (min-width:769px) {
.container>.navbar-header,.container>.navbar-collapse {
margin-right: 0;
margin-left: 0
}
}
.navbar-fixed-top {
position: fixed;
right: 0;
left: 0;
z-index: 1030
}
#media (min-width:769px) {
.navbar-fixed-top {
border-radius: 0
}
}
.navbar-fixed-top {
top: 0;
border-width: 0 0 1px
}
.navbar-brand {
float: left;
padding: 15px 15px;
font-size: 18px;
line-height: 20px;
height: 50px
}
.navbar-brand>img {
display: block
}
#media (min-width:769px) {
.navbar>.container .navbar-brand {
margin-left: -15px
}
}
.navbar-toggle {
position: relative;
margin-right: 5px;
padding: 9px 10px;
margin-top: 8px;
margin-bottom: 8px;
background-color: transparent;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
-ms-border-radius: 4px;
-o-border-radius: 4px
}
.navbar-toggle .icon-bar {
display: block;
width: 22px;
height: 2px;
border-radius: 1px;
-webkit-border-radius: 1px;
-moz-border-radius: 1px;
-ms-border-radius: 1px;
-o-border-radius: 1px
}
.navbar-toggle .icon-bar+.icon-bar {
margin-top: 4px
}
#media (min-width:769px) {
.navbar-toggle {
display: none
}
}
.navbar-nav {
margin: 7.5px -15px
}
.navbar-nav>li>a {
padding-top: 10px;
padding-bottom: 10px;
line-height: 20px
}
#media (min-width:769px) {
.navbar-nav {
float: left;
margin: 0
}
.navbar-nav>li {
float: left
}
.navbar-nav>li>a {
padding-top: 15px;
padding-bottom: 15px
}
}
.navbar-nav>li>.dropdown-menu {
margin-top: 0;
border-top-right-radius: 0;
border-top-left-radius: 0
}
.navbar-default {
background-color: #f8f8f8;
border-color: #e7e7e7
}
.navbar-default .navbar-brand {
color: #777
}
.navbar-default .navbar-nav>li>a {
color: #777
}
.navbar-default .navbar-toggle {
border-color: #ddd
}
.navbar-default .navbar-toggle .icon-bar {
background-color: #888
}
.navbar-default .navbar-collapse {
border-color: #e7e7e7
}
.container:before,.container:after,.row:before,.row:after,.nav:before,.nav:after,.navbar:before,.navbar:after,.navbar-header:before,.navbar-header:after,.navbar-collapse:before,.navbar-collapse:after {
content: " ";
display: table
}
.container:after,.row:after,.nav:after,.navbar:after,.navbar-header:after,.navbar-collapse:after {
clear: both
}
#-ms-viewport {
width: device-width
}
h2 {
font-size: 37px
}
h4 {
font-size: 27px
}
#media (max-width:768px) {
h2 {
font-size: 28px
}
h4 {
font-size: 22px
}
}
body {
font-size: 14px
}
.navbar a {
font-size: 12px
}
#charset "UTF-8".navbar button.navbar-toggle { -webkit-box-shadow:
none; -moz-box-shadow: none; box-shadow: none }
.navbar .navbar-brand,.hestia-about p {
font-size: 18px
}
body {
font-size: 14px
}
.navbar,.navbar a {
font-size: 12px
}
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 300;
line-height: 1.618
}
ul {
line-height: 1.618
}
h2,h4 {
font-weight: 500;
line-height: 1.618
}
button {
font-size: 12px;
font-weight: 400
}
button {
font-size: inherit;
line-height: inherit
}
.navbar .navbar-brand {
line-height: 30px
}
.navbar .navbar-nav>li>a {
font-weight: 400
}
.navbar .dropdown-menu li>a {
font-size: 13px
}
.hestia-about {
font-weight: 300
}
.hestia-about h2,.hestia-about h4 {
font-weight: 700
}
#media (max-width:768px) {
.navbar .navbar-nav li .caret {
font-size: 20px
}
.navbar .navbar-nav .dropdown .dropdown-menu li a {
line-height: 20px
}
}
body {
direction: ltr;
color: #3c4858;
font-family: "Roboto", "Helvetica", "Arial", sans-serif
}
h2,h4 {
font-family: "Roboto", "Helvetica", "Arial", sans-serif
}
a {
color: #9c27b0
}
.container {
max-width: 100%
}
#media (min-width:749px) {
.container {
max-width: 748px
}
}
#media (min-width:768px) {
.container {
max-width: 750px
}
}
#media (min-width:992px) {
.container {
max-width: 970px
}
}
#media (min-width:1200px) {
.container {
max-width: 2000px
}
}
body {
direction: ltr;
background-color: #e5e5e5;
overflow-x: hidden
}
img,button {
max-width: 100%
}
img {
height: auto
}
ul {
margin-bottom: 30px
}
.container {
max-width: 100%
}
:focus,:active,::-moz-focus-inner {
outline: 0!important
}
button {
border: 0
}
button {
font-family: inherit;
padding: 7px
}
button {
position: relative;
margin: 10px 1px;
padding: 12px 30px;
border: none;
border-radius: 3px;
white-space: normal;
letter-spacing: 0;
text-transform: uppercase
}
button {
-webkit-box-shadow: 0 2px 2px 0 rgba(153, 153, 153, .14), 0 3px 1px -2px rgba(153, 153, 153, .2), 0 1px 5px 0 rgba(153, 153, 153, .12);
-moz-box-shadow: 0 2px 2px 0 rgba(153, 153, 153, .14), 0 3px 1px -2px rgba(153, 153, 153, .2), 0 1px 5px 0 rgba(153, 153, 153, .12);
box-shadow: 0 2px 2px 0 rgba(153, 153, 153, .14), 0 3px 1px -2px rgba(153, 153, 153, .2), 0 1px 5px 0 rgba(153, 153, 153, .12)
}
button {
-webkit-box-shadow: 0 2px 2px 0 rgba(156, 39, 176, .14), 0 3px 1px -2px rgba(156, 39, 176, .2), 0 1px 5px 0 rgba(156, 39, 176, .12);
-moz-box-shadow: 0 2px 2px 0 rgba(156, 39, 176, .14), 0 3px 1px -2px rgba(156, 39, 176, .2), 0 1px 5px 0 rgba(156, 39, 176, .12);
box-shadow: 0 2px 2px 0 rgba(156, 39, 176, .14), 0 3px 1px -2px rgba(156, 39, 176, .2), 0 1px 5px 0 rgba(156, 39, 176, .12)
}
button {
color: #fff;
background-color: #9c27b0
}
.navbar button.navbar-toggle {
color: #555
}
.navbar {
background-color: #fff;
color: #555;
border-radius: 0;
position: fixed;
border: none;
padding: 0;
-webkit-box-shadow: 0 1px 10px -6px rgba(0, 0, 0, .42), 0 1px 10px 0 rgba(0, 0, 0, .12), 0 4px 5px -2px rgba(0, 0, 0, .1);
box-shadow: 0 1px 10px -6px rgba(0, 0, 0, .42), 0 1px 10px 0 rgba(0, 0, 0, .12), 0 4px 5px -2px rgba(0, 0, 0, .1)
}
.navbar .navbar-collapse {
border: none
}
.navbar .title-logo-wrapper {
max-width: 250px;
display: flex;
align-items: center
}
.navbar>.container {
display: flex;
padding: 10px 15px;
vertical-align: middle;
align-items: center
}
.navbar.hestia_left .navbar-collapse {
margin-left: auto
}
.navbar.hestia_left>.container {
flex-direction: row
}
.navbar.hestia_left .navbar-nav {
display: flex;
flex-wrap: wrap;
justify-content: flex-end
}
.navbar .navbar-header .navbar-brand {
padding: 0 15px;
position: relative;
color: inherit;
height: auto
}
.navbar .navbar-header .navbar-brand img {
width: auto;
max-height: 50px
}
.navbar-toggle-wrapper {
margin-left: auto;
display: flex;
align-items: center;
flex-direction: row
}
.navbar .navbar-toggle {
float: none;
border: 0;
margin-right: 0
}
.navbar .navbar-toggle .icon-bar {
border: 1px solid;
position: relative
}
.navbar .navbar-nav>li {
margin: 0
}
.navbar .navbar-nav>li>a {
text-transform: uppercase
}
.navbar .navbar-nav>li a {
padding-top: 15px;
padding-bottom: 15px;
border-radius: 3px;
color: inherit
}
.navbar .navbar-nav>li .dropdown-menu {
margin-top: -5px;
border: none
}
.navbar .navbar-nav>li .dropdown-menu li {
color: #333;
position: relative
}
.navbar .navbar-nav>li .dropdown-menu li>a {
background-color: transparent;
margin: 0 5px;
padding: 10px;
border-radius: 2px
}
.navbar .navbar-nav>li:not(.btn)>a:before {
position: absolute;
z-index: -1;
top: 0;
right: 0;
bottom: 0;
left: 0;
border-radius: 3px;
background-color: rgba(255, 255, 255, .1);
content: "";
-webkit-transform: scaleX(0);
-ms-transform: scaleX(0);
transform: scaleX(0);
-webkit-transform-origin: 50%;
-ms-transform-origin: 50%;
transform-origin: 50%
}
#main-navigation ul.nav>li {
opacity: 1;
visibility: visible
}
.hestia-about {
padding: 65px 0 30px
}
.hestia-about {
background-attachment: fixed;
color: #999
}
.hestia-about h2,.hestia-about h4 {
color: #3c4858;
text-decoration: none;
word-wrap: break-word;
font-family: "Roboto Slab", "Times New Roman", serif
}
.blog-post {
word-wrap: break-word
}
.main {
position: relative;
background: #fff
}
.main-raised {
margin: -60px 30px 0;
border-radius: 6px 6px 0 0;
-webkit-box-shadow: 0 16px 24px 2px rgba(0, 0, 0, .14), 0 6px 30px 5px rgba(0, 0, 0, .12), 0 8px 10px -5px rgba(0, 0, 0, .2);
box-shadow: 0 16px 24px 2px rgba(0, 0, 0, .14), 0 6px 30px 5px rgba(0, 0, 0, .12), 0 8px 10px -5px rgba(0, 0, 0, .2)
}
.home .main-raised section:first-of-type {
border-radius: 6px 6px 0 0;
overflow: hidden
}
#media (max-width:1199px) {
.hestia-about .row {
padding: 0 15px
}
.main-raised {
margin: -60px 15px 0
}
}
#media (max-width:991px) {
.navbar .navbar-nav>li {
margin-right: 10px;
margin-left: 10px
}
.hestia-about .row {
padding: 0 10px
}
}
#media (min-width:992px) {
.navbar .navbar-collapse {
text-align: center
}
.navbar .navbar-nav>li {
margin: 0
}
}
#media (min-width:769px) {
.navbar.hestia_left .title-logo-wrapper {
min-width: 250px
}
.dropdown .dropdown-menu {
display: block;
visibility: hidden;
margin-top: -20px;
opacity: 0
}
}
#media (max-width:768px) {
.container .navbar-header {
width: 100%;
display: flex;
margin: 0 auto
}
.navbar>.container {
padding: 10px 15px;
align-items: center;
display: block
}
.navbar .nav.navbar-nav {
display: block
}
.navbar.navbar-fixed-top .navbar-collapse {
max-height: calc(100% - 70px);
margin-top: 70px;
overflow-y: auto;
position: fixed;
z-index: 9999;
background: #fff;
width: 100%;
left: 0;
top: 0;
margin-left: 0;
margin-right: 0;
-webkit-overflow-scrolling: auto
}
.navbar .navbar-nav {
margin: 7.5px 0
}
.navbar .navbar-nav li {
box-sizing: border-box;
float: left;
margin: 0;
padding: 0;
width: 100%;
text-align: left
}
.navbar .navbar-nav .dropdown a .caret {
border: 1px solid #555;
border-radius: 2px;
box-sizing: content-box;
color: #555;
display: inline-block;
font-family: "Font Awesome 5 Free";
font-weight: 900;
height: 30px;
margin-left: 0;
position: absolute;
right: 15px;
text-align: center;
top: 10px;
width: 30px;
z-index: 100
}
.navbar .navbar-nav .dropdown a .caret:before {
content: "\f107";
top: 5px;
position: relative;
display: inline-block
}
.navbar .navbar-nav .dropdown .dropdown-menu {
background: 0 0;
box-shadow: none;
position: static;
margin-top: 0;
padding: 0;
width: 100%
}
.navbar .navbar-nav .dropdown .dropdown-menu li a {
margin: 0;
padding: 15px 0 15px 30px
}
.navbar .navbar-header .navbar-brand {
padding-left: 0
}
.home .main-raised section:first-of-type {
border-radius: 0
}
.main-raised {
margin-right: 0;
margin-left: 0;
border-radius: 0
}
.hestia-about {
padding-top: 30px
}
.hestia-about h2 {
margin-top: 0
}
.home:not(.blog) .main-raised {
margin-top: 0
}
}
.elementor-page .hestia-about>.container {
width: 100%
}
.home.elementor-page .main-raised>section.hestia-about {
overflow: visible
}
.elementor-text-editor p {
font-size: inherit
}
a {
color: #002970
}
button {
background-color: #002970
}
h2,h4,.hestia-about h2,.hestia-about h4 {
font-family: Sanchez
}
body,ul {
font-family: Sanchez
}
.sr-only {
border: 0;
clip: rect(0, 0, 0, 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px
}
#font-face {
font-family: "Font Awesome 5 Free";
font-style: normal;
font-weight: 400;
font-display: auto;
src: url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-regular-400.eot);
src: url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-regular-400.eot?#iefix) format("embedded-opentype"), url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-regular-400.woff2) format("woff2"), url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-regular-400.woff) format("woff"), url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-regular-400.ttf) format("truetype"), url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-regular-400.svg#fontawesome) format("svg")
}
#font-face {
font-family: "Font Awesome 5 Free";
font-style: normal;
font-weight: 900;
font-display: auto;
src: url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-solid-900.eot);
src: url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-solid-900.eot?#iefix) format("embedded-opentype"), url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-solid-900.woff2) format("woff2"), url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-solid-900.woff) format("woff"), url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-solid-900.ttf) format("truetype"), url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-solid-900.svg#fontawesome) format("svg")
}
.elementor-clearfix:after {
content: "";
display: block;
clear: both;
width: 0;
height: 0
}
.elementor {
-webkit-hyphens: manual;
-ms-hyphens: manual;
hyphens: manual
}
.elementor *,.elementor:after,.elementor:before {
-webkit-box-sizing: border-box;
box-sizing: border-box
}
.elementor a {
-webkit-box-shadow: none;
box-shadow: none;
text-decoration: none
}
.elementor img {
height: auto;
max-width: 100%;
border: none;
-webkit-border-radius: 0;
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none
}
.elementor-section {
position: relative
}
.elementor-section .elementor-container {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
margin-right: auto;
margin-left: auto;
position: relative
}
.elementor-section.elementor-section-boxed>.elementor-container {
max-width: 1140px
}
.elementor-row {
width: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex
}
#media (max-width:1024px) {
.elementor-row {
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap
}
}
.elementor-column-wrap {
width: 100%;
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex
}
.elementor-widget-wrap {
position: relative;
width: 100%;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-align-content: flex-start;
-ms-flex-line-pack: start;
align-content: flex-start
}
.elementor:not(.elementor-bc-flex-widget) .elementor-widget-wrap {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex
}
.elementor-widget-wrap>.elementor-element {
width: 100%
}
.elementor-widget {
position: relative
}
.elementor-column {
position: relative;
min-height: 1px;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex
}
.elementor-column-gap-default>.elementor-row>.elementor-column>.elementor-element-populated {
padding: 10px
}
#media (min-width:768px) {
.elementor-column.elementor-col-100 {
width: 100%
}
}
#media (max-width:767px) {
.elementor-column {
width: 100%
}
}
.elementor-widget-heading .elementor-heading-title {
padding: 0;
margin: 0;
line-height: 1
}
.elementor-widget-heading .elementor-heading-title {
font-family: "Sanchez", Sans-serif;
font-weight: 600
}
.elementor-widget-text-editor {
font-family: "Sanchez", Sans-serif;
font-weight: 400
}
.elementor-386 .elementor-element.elementor-element-b5f43bf>.elementor-container {
max-width: 900px
}
.elementor-386 .elementor-element.elementor-element-b5f43bf {
margin-top: -40px;
margin-bottom: 0
}
.elementor-386 .elementor-element.elementor-element-6dfb8a4.elementor-widget-heading .elementor-heading-title {
color: #0c0c0c
}
.elementor-386 .elementor-element.elementor-element-6dfb8a4 .elementor-heading-title {
font-family: "Sanchez", Sans-serif;
font-weight: 700
}
.elementor-386 .elementor-element.elementor-element-5451f39>.elementor-container {
max-width: 900px
}
.elementor-386 .elementor-element.elementor-element-fe48f01 {
color: #0c0c0c;
font-size: 1.3em
}
.elementor-386 .elementor-element.elementor-element-14a2f0a>.elementor-container {
max-width: 900px
}
.elementor-386 .elementor-element.elementor-element-061141d.elementor-widget-heading .elementor-heading-title {
color: #0f0f0f
}
.elementor-386 .elementor-element.elementor-element-1284051>.elementor-container {
max-width: 900px
}
.elementor-386 .elementor-element.elementor-element-7755a44 {
color: #0c0c0c;
font-size: 1.3em
}
.elementor-386 .elementor-element.elementor-element-c88de32>.elementor-container {
max-width: 900px
}
.elementor-386 .elementor-element.elementor-element-7c59ba1.elementor-widget-heading .elementor-heading-title {
color: #0c0c0c
}
.elementor-386 .elementor-element.elementor-element-39a07a8>.elementor-container {
max-width: 900px
}
.elementor-386 .elementor-element.elementor-element-f0bdcd3 {
color: #0c0c0c;
font-size: 1.3em
}
.elementor-386 .elementor-element.elementor-element-d63182f>.elementor-container {
max-width: 900px
}
.elementor-386 .elementor-element.elementor-element-953030e .obfx-grid-col-image {
height: 230px;
border-radius: 15px;
margin: 0
}
.elementor-386 .elementor-element.elementor-element-953030e .obfx-grid-wrapper {
padding-right: calc(15px);
padding-left: calc(15px);
padding-bottom: 30px
}
.elementor-386 .elementor-element.elementor-element-953030e .obfx-grid-container {
margin-left: calc(-15px);
margin-right: calc(-15px)
}
#media (max-width:767px) {
.elementor-386 .elementor-element.elementor-element-b5f43bf {
margin-top: -15px;
margin-bottom: 0
}
.elementor-386 .elementor-element.elementor-element-6dfb8a4>.elementor-widget-container {
margin: 10px 0 0
}
.elementor-386 .elementor-element.elementor-element-fe48f01 {
font-size: 1.1em
}
.elementor-386 .elementor-element.elementor-element-7755a44 {
font-size: 1.1em
}
.elementor-386 .elementor-element.elementor-element-f0bdcd3 {
font-size: 1.1em
}
.elementor-386 .elementor-element.elementor-element-953030e .obfx-grid-wrapper {
padding-right: calc(0px);
padding-left: calc(0px);
padding-bottom: 10px
}
.elementor-386 .elementor-element.elementor-element-953030e .obfx-grid-container {
margin-left: calc(0px);
margin-right: calc(0px)
}
}
body.custom-background {
background-color: #686868
}
.navbar .navbar-header .navbar-brand img {
max-height: 60px
}
.navbar .navbar-nav>li>a {
font-size: 14px!important
}
a {
color: #1e8dfc
}
.lazyload {
opacity: 0
}
.obfx-grid:after {
display: block;
visibility: hidden;
clear: both;
height: 0;
font-size: 0;
content: " "
}
.obfx-grid-container {
display: -webkit-flex;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin-right: -15px;
margin-left: -15px;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap
}
.obfx-grid-wrapper {
padding-right: 15px;
padding-left: 15px
}
.obfx-grid .obfx-grid-col-image {
display: block;
overflow: hidden;
position: relative;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: 0 0 10px;
box-shadow: 0 3px 10px 0 rgba(181, 181, 181, 1)
}
.obfx-grid .obfx-grid-col-image {
display: inline-block;
width: 100%;
height: 200px
}
.obfx-grid .obfx-grid-col-image img {
display: block;
position: absolute;
top: 50%;
left: 50%;
width: 100%;
max-width: none;
height: auto;
max-height: none;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%)
}
.obfx-grid-desktop-1 .obfx-grid-wrapper {
width: 100%
}
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.
On my site, the items under home-boxes class on the mobile phone appear to have extra padding on the left. How can I avoid it?
<div class="container">
<div class="row space" >
<div class="col-md-3 col-xs-12 ">
<a href="http://www.inspuratesystems.com/clf/why-we-are-needed/">
<img class="center-block" src="http://www.inspuratesystems.com/clf/wp-content/uploads/2015/12/11.jpg">
<div class="col-xs-12" id="home-boxes">
<h3>Why we are needed</h3>
<p>More than half of Karachi’s population lives in low-resource densely-packed neighborhoods, where there are few or no qualified doctors conveniently located. Pollution is high, and diseases are rampant.</p>
</div>
</a>
</div>
<div class="col-md-3 col-xs-12 ">
<a href="http://www.inspuratesystems.com/clf/emergency-care-2/">
<img class="center-block" src="http://www.inspuratesystems.com/clf/wp-content/uploads/2015/12/21.jpg">
<div class="col-xs-12" id="home-boxes" >
<h3>Emergency Care</h3>
<p>During the floods of 2010, CNN correspondent Dr. Sanjay Gupta did a news segment on the dilapidated children’s emergency room (ER) at Civil Hospital, Karachi.</p>
</div>
</a>
</div>
<div class="col-md-3 col-xs-12">
<a href="http://www.inspuratesystems.com/clf/primary-care-2/">
<img class="center-block" src="http://www.inspuratesystems.com/clf/wp-content/uploads/2015/12/3.jpg">
<div class="col-xs-12" id="home-boxes">
<h3>Primary Care</h3>
<p>ChildLife Foundation initiated a partnership with SINA Trust in 2012 under the leadership of their common trustee, Dr. Naseeruddin Mahmood. Since 1998, SINA has been operating primary care clinics in low-income.</p>
</div>
</a>
</div>
<div class="col-md-3 col-xs-12">
<a href="http://www.inspuratesystems.com/clf/preventive-care/">
<img class="center-block" src="http://www.inspuratesystems.com/clf/wp-content/uploads/2015/12/5.jpg">
<div class="col-xs-12" id="home-boxes">
<h3>Preventive Care</h3>
<p>394,000 children in Pakistan die before their fifth birthdays. 122,000 of them did not make it past their first year of life. As a result, Pakistan has the third highest mortality rate in the world, primarily because of preventable... </p>
</div>
</a>
</div>
</div>
</div>
CSS:
/*
Theme Name: Child Life Foundation
Theme URI: http://underscores.me/
Author: Fahad Uddin
Author URI: http://underscores.me/
Description: Inspurate has created a website template for Child Life Foundation
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: child-life-foundation
Tags:
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
Child Life Foundation is based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Typography
# Elements
# Forms
# Navigation
## Links
## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
## Posts and pages
## Asides
## Comments
# Infinite scroll
# Media
## Captions
## Galleries
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
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;
color:#dbff98;
}
a:active,
a:hover {
outline: 0;
}
abbr[title] {
border-bottom: 1px dotted;
}
b,
strong {
font-weight: bold;
}
dfn {
font-style: italic;
}
h1 {
font-size: 2em;
margin: 0.67em 0;
}
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: #404040;
/* font-family: sans-serif;
*/
font-size: 16px;
font-size: 1rem;
line-height: 1.5;
}
h1,
h2,
h3,
h4,
h5,
h6 {
clear: both;
text-transform: uppercase;
color:#9bbd1b;
}
p {
margin-bottom: 1.5em;
}
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. */
}
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 1.5em 3em; */
/* margin: 0 0 1.5em 3em; */
/* margin: 0 0 1.5em -2em; */
}
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. */
}
table {
margin: 0 0 1.5em;
width: 100%;
}
/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
border: 1px solid;
border-color: #FFF;
border-radius: 0px;
background: #9bbd1b;
/* box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05); */
color: #FFF;
font-size: 12px;
font-size: 0.75rem;
line-height: 1;
padding: .6em 1em .4em;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
border-color: #ccc #bbb #aaa;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 15px 17px rgba(255, 255, 255, 0.8), inset 0 -5px 12px rgba(0, 0, 0, 0.02);
}
button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
border-color: #aaa #bbb #bbb;
box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15);
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
color: #666;
border: 0px solid #FFF;
border-radius: 0px;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
color: #111;
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"] {
padding: 3px;
}
textarea {
padding-left: 3px;
width: 100%;
}
/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a {
color: #dbff98;
}
/*
a:visited {
color: purple;
}
*/
a:hover,
a:focus,
a:active {
color: #FFFFFF;
}
a:focus {
outline: thin dotted;
}
a:hover,
a:active {
outline: 0;
}
/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.main-navigation {
clear: both;
display: block;
float: left;
width: 100%;
}
.main-navigation ul {
display: none;
list-style: none;
margin: 0;
padding-left: 0;
}
.main-navigation li {
float: left;
position: relative;
}
.main-navigation a {
display: block;
text-decoration: none;
}
.main-navigation ul ul {
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
float: left;
position: absolute;
top: 1.5em;
left: -999em;
z-index: 99999;
}
.main-navigation ul ul ul {
left: -999em;
top: 0;
}
.main-navigation ul ul a {
width: 200px;
}
.main-navigation ul ul li {
}
.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: auto;
}
.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
left: 100%;
}
.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_ancestor > a,
.main-navigation .current-menu-ancestor > a {
}
/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
display: block;
}
#media screen and (min-width: 37.5em) {
.menu-toggle {
display: none;
}
.main-navigation ul {
display: block;
}
}
.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%;
}
/*--------------------------------------------------------------
# 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: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. */
}
/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
outline: 0;
}
/*--------------------------------------------------------------
# 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;
table-layout: fixed;
}
.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
clear: both;
}
/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
margin: 0 0 1.5em;
}
/* Make sure select elements fit in widgets. */
.widget select {
max-width: 100%;
}
/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
.sticky {
display: block;
}
.hentry {
margin: 0 0 1.5em;
}
.byline,
.updated:not(.published) {
display: none;
}
.single .byline,
.group-blog .byline {
display: inline;
}
.page-content,
.entry-content,
.entry-summary {
margin: 1.5em 0 0;
}
.page-links {
clear: both;
margin: 0 0 1.5em;
}
/*--------------------------------------------------------------
## Asides
--------------------------------------------------------------*/
.blog .format-aside .entry-title,
.archive .format-aside .entry-title {
display: none;
}
/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
word-wrap: break-word;
}
.bypostauthor {
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;
}
/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
border: none;
margin-bottom: 0;
margin-top: 0;
padding: 0;
}
/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
max-width: 100%;
}
/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
margin-bottom: 1.5em;
max-width: 100%;
}
.wp-caption img[class*="wp-image-"] {
display: block;
margin-left: auto;
margin-right: auto;
}
.wp-caption .wp-caption-text {
margin: 0.8075em 0;
}
.wp-caption-text {
text-align: center;
}
/*--------------------------------------------------------------
## 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;
}
.site{
border-top: 10px solid #9bbd1b;
}
.line{
border-top: 5px solid #9bbd1b;
}
.site-header{
background-color:#ffffde;
}
/* Small devices (tablets, 768px and up) */
#media (min-width: 768px) {
.nav>li{
display: inline-block !important;
padding: 0 0 0 34px;
width: 160px;
}
.footerspace{
margin-top:65px;
}
}
.nav>li a{
font-size: 13px;
text-transform: uppercase;
color:#484848;
font-weight: bold;
font-family: HelveticaRounded;
}
.nav > li > a:hover{
background-color:#9bbd1b !important;
color:#FFF;
}
.nav li ul{
list-style-type: none;
}
.nav li li a{
font-size: 13px;
text-transform: uppercase;
color:#FFF;
font-weight: bold;
font-family: HelveticaRounded;
text-decoration:none;
margin-left:-10px;
width: 160px;
padding: 10px 15px 10px;
background-color:#9bbd1b !important;
}
.search{
height:50px;
width:50px;
}
#media screen and (min-width: 769px) {
/*
.navbar{
margin-top: 15px;
}
*/
.search{
margin-top: 100px; /* 10 pixel extra than navbar because in navbar there is a padding-top of 10 pixel on text. */
}
.donate{
margin-top: 60px;
}
.space{
margin: 50px 0;
}
.logo{
margin-top: 13px;
}
}
h3{
font-size:19px;
}
.navbar{
float:right;
}
.footerwidget{
font-size:14px; color:#989898; margin-top:33px;
}
.footerheading h2{
font-size: 18px;
color: #FFF;
text-transform: capitalize;
}
#media screen and (max-width: 769px) {
.nav {
margin-top:50px;
}
.footertext, .footertext a{
text-align:center;
}
}
.green{
background-color:#8ab51e;
margin: 0 auto;
}
.green h3{
color:#FFF;
}
.navbar{
margin-top: -7px;
margin-bottom: -12px;
}
.btn{
background-color:#9bbd1b;
}
.white, .white a {
color: #fff;
}
.btn-danger:hover{
background-color: #000000;
}
.greenIcon, .greenIcon a {
color: #9bbd1b;
}
.btn-white {
background: #FFF;
color: #ffffff;
}
.btn-white:hover {
background: #FFF;
color: #ffffff;
}
.input-group-btn:last-child>.btn, .input-group-btn:last-child>.btn-group{
background-color: #9bbd1b !important;
border: 1px solid #9bbd1b !important;
}
.primary-menu{
font-family: HelveticaRounded;
}
#home-boxes{
border: 1px solid #ddd; border-style: solid;
border-top: solid #8ab51e; height: 265px;
color:#404040;
}
#home-boxes:hover{
background-color:#8ab51e;
color:#FFF;
}
#home-boxes:hover h3{
background-color:#8ab51e;
color:#FFF;
}
#
.donate_bg{
background-image: url("http://www.inspuratesystems.com/clf/wp-content/uploads/2015/12/donate_image.png");
}
.donate_bg h3{
font-size: 25px;
font-family: HelveticaRounded;
}
.footertext, .footertext a{
color:#989898;
font-size:16px;
margin-top:30px;
}
.navbar .nav>li>a:focus, .navbar .nav>li>a:hover{
color:#FFFFFF;
}
.input-group .form-control, .input-group-addon, .input-group-btn{
height: 31px;
}
#secondary{
background-color: #FAFAFA;
}
.ubermenu-skin-grey-white .ubermenu-submenu, .ubermenu-skin-grey-white .ubermenu-submenu .ubermenu-target{
color:#FFF !important;
}
#media screen and (min-width: 769px) {
#main{
margin-top:50px;
}
#main a{
color:#9bbd1b;
}
#secondary a{
color:#808080;
}
#secondary li{
line-height: 20px;
padding: 15px 50px;
list-style-type: 009B;
font-size: 18px;
}
#secondary li:before {
content: "\00BB \0020";
}
#secondary ul {
list-style:none;
}
.col-md-9.donate .col-md-3 > a {
background: #D20059 none repeat scroll 0% 0%;
font-family: HelveticaRounded;
color: #fff;
font-size: 16px;
padding: 5px 20px;
display: inline-block;
}
.col-md-9.donate .col-md-3 > a > img
{
width: 20px;
}
#media only screen and (min-width:300px) and (max-width: 992px) {
.col-md-9.donate .col-md-3 > a {
width: 100% !important;
float: left;
margin: 10px 0;
border-radius: 5px;
text-align: center;
height:31px;
}
}
#media only screen and (max-width:992px){
.inner-sidebar{
display:none;
}
}
.mobile{
margin: 0;
}
html, body{
overflow-x: hidden;
}
#flexslider-title{
display:none;
}
#comment{
border: 1px solid #174946;
}
Fiddle.
Take a look with the developer tools of your browser.
Assuming that we're looking at the same elements, the extra 15px on the left side is due to this on the line 732 of bootstrap-combined.no-icons.min.css:
#media (max-width: 767px) {
.row, .thumbnails {
margin-left: 0;
}
}
which resets the negative margin on the left side but not on the right side. You could counter that with setting it back to -15px on .row:
#media (max-width: 767px) {
.row {
margin-left: -15px;
}
}
Just had a look at your site. It seams the the Bootstrap css file is adding 20px padding to left and right side of the Body element using a #media query after 767px.
All you need to do is override this in your own css file. Like this:
#media screen and (max-width: 767px) {
body {
padding-left: 0px !important;
padding-right: 0px !important;
}
}
The !important extensions will do as they say. It will override the styling no matter what the css hierarchy is. I'm putting these in to be safe as Bootstrap may override your custom css without !important extensions. Try the code above without !important extensions and see if it works also.
The background images for directional & navigational buttons are not loading. Firebug shows the images being overridden and states "the files are not being loaded". If I disable the "text-indent", I can see the plain old line items, but am looking for the images, so it looks nice and pretty!
I've been staring at this for too long now, can anyone help me see the problem? Thank you!
html
<div class="flex-container">
<div class="flexslider">
<ul class="slides">
<li><img src="images/tah_home.jpg" alt="taylor art house home page" width="600" height="320"/>
<p class="flex-caption">Taylor Art House Home Page</p></li>
<li><img src="images/tah_blog.jpg" alt="taylor art house blog page" width="600" height="320" />
<p class="flex-caption">We created a blog that fits seemlessly into Taylor Art House's look</p></li>
<li><img src="images/tah_artwork_page.jpg" alt="taylor art house art page" width="600" height="320" />
<p class="flex-caption">One of Taylor Art House's gallery pages, using a Wordpress plugin</p></li>
<li><img src="images/tah_arch_portfolio.jpg" alt="jon taylor architecture portfolio page" width="600" height="320" />
<p class="flex-caption">We created links to toggle from TAH to Jon Taylor Architecture</p></li>
</ul>
</div><!--end flexsider-->
</div><!--end flex-container-->
header script
<script src="jquery.flexslider.js"></script>
<script type="text/javascript" charset="utf-8">
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide",
slideshow: false,
controlNav: true,
manualControls: ".flex-control-nav li a",
controlsContainer: ".flex-container"
});
});
</script>
flexslider css
/*
* jQuery FlexSlider v1.8
* http://www.woothemes.com/flexslider/
*
* Copyright 2012 WooThemes
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
/* Browser Resets */
.flex-container a:active,
.flexslider a:active,
.flex-container a:focus,
.flexslider a:focus {outline: none;}
.slides,
.flex-control-nav,
.flex-direction-nav {margin: 0; padding: 0; list-style: none;}
/* FlexSlider Necessary Styles
*********************************/
.flexslider {
width: 100%;
margin: 0;
padding: 0;
}
.flexslider .slides > li {
display: none;
-webkit-backface-visibility: hidden;
}
/* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider .slides img {
max-width: 100%;
display: block;
}
.flex-pauseplay span {
text-transform: capitalize;
}
/* Clearfix for the .slides element */
.slides:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
html[xmlns] .slides {
display: block;
}
* html .slides {
height: 1%;
}
/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
* include js that eliminates this class on page load */
.no-js .slides > li:first-child {
display: block;
}
/* FlexSlider Default Theme
*********************************/
.flexslider {
width: 600px;
background: #fff;
border: 4px solid #999;
position: relative;
margin: 30px 0;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-o-border-radius: 5px;
border-radius: 5px; zoom: 1;
}
.flexslider .slides {
zoom: 1;
}
.flexslider .slides > li {
position: relative;
}
/* Suggested container for "Slide" animation setups. Can replace this with your own, if you wish */
.flex-container {
zoom: 1;
position: relative;
margin-left:100px;
}
/* Caption style */
/* IE rgba() hack */
.flex-caption {
background:none;
-ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4C000000,endColorstr=#4C000000);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4C000000,endColorstr=#4C000000);
zoom: 1;
}
.flex-caption {
width: 96%;
padding: 2%;
margin: 0;
position: absolute;
left: 0;
bottom: 0;
background: rgba(0,0,0,.3);
color: #fff;
text-shadow: 0 -1px 0 rgba(0,0,0,.3);
font-size: 14px;
line-height: 18px;
}
/* Direction Nav */
.flex-direction-nav {
height: 0;
}
.flex-direction-nav li a {
width: 52px;
height: 52px;
margin: -13px 0 0;
display: block;
background: url(theme/bg_direction_nav.png) no-repeat;
position: absolute;
top: 50%;
cursor: pointer;
text-indent: -999em;
}
.flex-direction-nav li .next {
background-position: -52px 0; right: -21px;
}
.flex-direction-nav li .prev {
left: -20px;
}
.flex-direction-nav li .disabled {
opacity: .3;
filter:alpha(opacity=30);
cursor: default;
}
/* Control Nav */
.flex-control-nav {
width: 100%;
position: absolute;
bottom: -30px;
text-align: center;
}
.flex-control-nav li {
margin: 0 0 0 5px;
display: inline-block;
zoom: 1;
*display: inline;
}
.flex-control-nav li:first-child {
margin: 0;
}
.flex-control-nav li a {
width: 13px;
height: 13px;
display: block;
background: url(theme/bg_control_nav.png) no-repeat;
cursor: pointer;
text-indent: -999em;
}
.flex-control-nav li a:hover {
background-position: 0 -13px;
}
.flex-control-nav li a.active {
background-position: 0 -26px;
cursor: default;
}
styles.css
/* CSS Document for Kajort Designs */
/* ----- RESETS ----- */
* {
margin: 0;
padding: 0;
}
img {
border: none;
}
a {
text-decoration: none;
color: #000;
}
li {
list-style-type: none;
}
h1 {
margin-bottom: 20px;
margin-top: 20px;
font-size: 20px;
color: #999;
}
h2 {
font-size: 18px;
}
/* ----- GENERAL ----- */
body {
line-height: 19px;
font-size: 12px;
text-align: center; /* centers everything in IE */
font: 16px Arial, Helvetica, sans-serif;
color: #8A8A8A;
/* background-image:url(../images/bg_kd2.jpg);
*/}
#wrapper {
width: 960px;
margin: 30px auto; /* centers wrapper in most browsers */
text-align:left; /* resets IE center hack */
background-color:rgba(255,255,255,0.8);
padding: 20px;
}
/* ----- HEADER ----- */
/*#header {
width:250px;
height: 40px;
float: left;
font-size:24px;
}
#header a:hover {
border-bottom: 2px solid #ddd;
}*/
/* ----- NAVIGATION ----- */
#navigation {
width: 430px;
height: 40px;
float: right;
margin-top: 30px;
}
#navigation a:hover {
border-bottom: 2px solid #ddd;
}
#navigation li {
display: inline;
list-style-type: none;
padding-right: 10px;
}
#navigation-items li.main-on a {
border-bottom: 2px solid #ddd;
font-size:18px;
}
/* ----- MIDDLE ----- */
#main {
width: 104%;
background: #fff;
background: -moz-linear-gradient(top, #fff, #fff);
background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#fff));
padding: 10px 20px;
margin-left: -40px;
margin-top: 80px;
position: relative;
-moz-box-shadow: 1px 1px 3px #292929;
-webkit-box-shadow: 1px 1px 3px #292929;
}
#main .arrow {
width: 0; height: 0;
line-height: 0;
border-left: 20px solid transparent;
border-top: 10px solid #999;
top: 100%;
left: 0;
position: absolute;
}
#homecontent {
margin: 25px 0 25px 200px;
}
#content {
width: 800px;
margin-left: 100px;
overflow: hidden;
}
#servicescontent {
width: 700px;
margin-left: 40px;
}
#tools {
background-color:#EDEBDE;
padding: 20px 0 10px 20px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
}
#seo {
background-color:#EDEBDE;
padding: 20px 0 10px 20px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
}
.service_list {
margin: 10px 0 15px 30px;
}
.service_list li {
padding-bottom: 10px;
list-style-type:circle;
}
#panels_nav_st {
color:#666;
font-size:16px;
border-top: 2px solid #669933;
padding-top: 10px;
margin-top: 10px;
}
#panels_nav_st a {
color:#666;
font-size:16px;
}
#panels_nav_st a:hover {
color:#669933;
font-size:16px;
}
#panels_nav_ain {
color:#666;
font-size:16px;
border-top: 2px solid #91A6C1;
padding-top: 10px;
margin-top: 10px;
}
#panels_nav_ain a {
color:#666;
font-size:16px;
}
#panels_nav_ain a:hover {
color:#91A6C1;
font-size:16px;
}
#panels_nav_bees {
color:#666;
font-size:16px;
border-top: 2px solid #FC0;
padding-top: 10px;
margin-top: 10px;
}
#panels_nav_bees a {
color:#666;
font-size:16px;
}
#panels_nav_bees a:hover {
color:#FC0;
font-size:16px;
}
#panels_nav_ptc {
color:#666;
font-size:16px;
border-top: 2px solid #a1c857;
padding-top: 10px;
margin-top: 10px;
}
#panels_nav_ptc a {
color:#666;
font-size:16px;
}
#panels_nav_ptc a:hover {
color:#a1c857;
font-size:16px;
}
#panels_nav_tah {
color:#666;
font-size:16px;
border-top: 2px solid #FF7C5F;
padding-top: 10px;
margin-top: 10px;
}
#panels_nav_tah a {
color:#666;
font-size:16px;
}
#panels_nav_tah a:hover {
color:#FF7C5F;
font-size:16px;
}
#visit {
margin: 20px 0 20px 0;
width: 600px;
float: left;
color: #666;
}
#visit a {
text-decoration:underline;
}
#visit_st a:hover {
text-decoration:none;
color: #669933;
}
#visit_ain a:hover {
text-decoration:none;
color: #91A6C1;
}
#visit_bees a:hover {
text-decoration:none;
color: #fc0;
}
#visit_ptc a:hover {
text-decoration:none;
color: #a1c857;
}
#visit_tah a:hover {
text-decoration:none;
color: #FF7C5F;
}
#thumbnails li {
display: inline;
margin: 0 40px 40px 0;
}
#thumbnails img {
border: 1px solid #666;
padding: 5px 5px 10px 5px;
}
/* ----- FOOTER ----- */
#footer {
clear: both;
height: 50px;
margin-bottom: 15px;
margin-top: 60px;
text-align: center;
font-size: small;
color: #776E6E;
/* padding-top: 15px;
border-top: 3px solid #999;
*/
}
#footer a {
text-decoration: none;
color: #776E6E;
}
#footer a:hover {
border-bottom: 2px solid #ddd;
}
/* ----- NOT USED, BUT SAVE IN CASE ----- */
/*
#sidebar {
float: left;
color: #666;
padding: 10px 0 50px 50px;
font-size: 16px;
}
#sidebar li {
/* padding-bottom: 20px;
margin: 0 5px 15px 15px;
}
#sidebar a:hover {
color: #ddd;
border-bottom: 2px solid #ddd;
}
#sidebar h3 {
margin-bottom: 30px;
color: #333;
}
*/
Thank you!
The flexslider css is referring to the directional & navigational images in the theme folder. See below...
.flex-direction-nav li a {
...
background: url(theme/bg_direction_nav.png) no-repeat;
...
}
.flex-control-nav li a {
...
background: url(theme/bg_control_nav.png) no-repeat;
...
}
Point the url's to the correct location of the images and it'll work.