/* Resets */
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
body,
html,
p,
blockquote,
fieldset,
input {
margin: 0;
padding: 0;
}
a img {
border: 0;
}
a {
text-decoration: none;
}
/* Global */
body {
position: relative;
width: 100%;
background: #000000;
color: #000000;
font-family: 'Lato', sans-serif;
font-size: 16px;
font-weight: normal;
line-height: 1.8em;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a {
color: #66ff00;
-webkit-transition: color 200ms ease-in;
-moz-transition: color 200ms ease-in;
-ms-transition: color 200ms ease-in;
-o-transition: color 200ms ease-in;
transition: color 200ms ease-in;
}
a:hover,
.wsite-com-link:hover .wsite-com-link-text {
color: #66ff00;
}
h2 {
padding-bottom: 10px;
color: #ff6600;
font-family: 'Lato', sans-serif;
font-size: 24px;
font-weight: 300;
line-height: 1.3em;
}
p,
div.paragraph {
line-height: 1.8em;
}
blockquote {
position: relative;
display: inline;
color: #ff0000;
padding: 0 1.5em;
border-left: 0 !important;
font-size: 1.35em;
line-height: 1.65em;
}
blockquote:before,
blockquote:after {
position: absolute;
display: inline-block;
font-size: 60px;
line-height: .95em;
color: #66ff00;
}
blockquote:before {
content: '\201C';
left: 0;
top: 0;
}
blockquote:after {
content: '\02EE';
right: 0;
bottom: -0.45em;
margin-left: 5px;
}
input[type="radio"],
input[type="checkbox"] {
width: 16px;
height: 16px;
background: #ff0000;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: none;
text-shadow: none;
}
input[type="radio"] {
border-radius: 8px;
}
input[type="checkbox"] {
border-radius: 0;
}
input[type="radio"]:after {
display: block;
border-radius: 8px;
box-sizing: border-box;
content: "";
}
input[type="radio"]:checked:after {
width: 16px;
height: 16px;
background: #linkcolor;
border: 4px solid #e8e8e8;
}
input[type="checkbox"]:after {
position: relative;
top: 2px;
left: 5px;
width: 3px;
height: 6px;
border: solid #LinkColor;
border-width: 0 2px 2px 0;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}
input[type="checkbox"]:checked:after {
display: block;
content: " ";
}
select {
text-indent: .01px;
text-overflow: '';
outline: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
select::-ms-expand {
display: none;
}
::-webkit-input-placeholder,
:-moz-placeholder,
::-moz-placeholder,
:-ms-input-placeholder {
color: #ff0000;
font-family: 'Lato', sans-serif;
font-size: 14px;
font-weight: normal;
line-height: normal;
}
.wrapper {
position: relative;
right: 0;
background: #000000;
-webkit-transition: right 610ms cubic-bezier(0, 0.8, 0.55, 1);
-moz-transition: right 610ms cubic-bezier(0, 0.8, 0.55, 1);
-ms-transition: right 610ms cubic-bezier(0, 0.8, 0.55, 1);
-o-transition: right 610ms cubic-bezier(0, 0.8, 0.55, 1);
transition: right 610ms cubic-bezier(0, 0.8, 0.55, 1);
}
.container {
width: 100%;
max-width: 960px;
margin: 0 auto;
}
/* Header */
.wsite-header-section {
position: relative;
background: url(images/default-bg.jpg) no-repeat;
background-size: cover;
}
.wsite-header-section:before,
.splash-page .header-wrap:before {
position: absolute;
top: 0;
left: 0;
z-index: 0;
display: block;
width: 100%;
min-height: 100%;
height: inherit;
background: rgba(0, 0, 0, 0.2);
content: '';
}
.wsite-section-bg-color:before {
display: none;
}
.header-wrap #logo {
padding: 10px 0!important;
text-align: center;
font-family: 'Cookie', cursive;
font-size: 20px;
font-weight: normal;
line-height: 1.1;
}
.header-wrap #logo a {
color: black;
-webkit-transition: all 300ms ease-in;
-moz-transition: all 300ms ease-in;
-ms-transition: all 300ms ease-in;
-o-transition: all 300ms ease-in;
transition: all 300ms ease-in;
}
.header-wrap #logo a:hover {
opacity: 0.5;
}
.header-wrap #logo img {
display: block;
overflow: hidden;
max-width: 200px;
max-height: 40px;
}
.header-wrap #logo #wsite-title {
display: block;
max-width: 400px;
}
.header-wrap #logo img {
max-height: 40px;
}
.header-wrap .wsite-logo {
padding: 30px 0 0px;
}
.header-wrap .nav-wrap {
position: relative;
z-index: 6;
width: 100%;
background: rgba(0, 0, 0, 0.95);
border-bottom: 1px solid #ff6600;
text-align: center;
}
.header-wrap label.hamburger {
display: none;
}
/* Nav */
.menu {
font-size: 12px;
text-transform: uppercase;
font-weight: 700;
border-top: 1px solid rgba(255, 102, 0, 0.95);
}
.menu ul {
list-style: none;
}
.menu li {
display: inline-block;
padding: 7px 0;
margin-right: 40px;
}
.menu a {
color: #ff6600;
}
.menu .wsite-menu-default li a {
border-bottom: 3px solid transparent;
padding-bottom: 11px;
transition: 0.2s ease-in border-bottom;
letter-spacing: .03em;
}
.menu .wsite-menu-default li a:hover,
.menu .wsite-menu-default li#active a {
border-bottom: 1px solid #ff6600;
}
.menu .wsite-menu-default span li {
margin-right: 40px!important;
}
.menu .wsite-menu-default span:last-child li,
.menu .wsite-menu-default li:last-child {
margin-right: 0;
}
/* Search */
.search {
float: right;
margin-left: 40px;
}
.search .wsite-search + .menu {
text-align: left;
}
.search .wsite-search-input {
width: 140px;
height: auto;
padding: 13px 10px !important;
background: transparent;
color: #66ff00;
border: none;
font-family: 'Lato', sans-serif;
font-size: 1.1em;
font-weight: 400;
line-height: normal;
}
.search .wsite-search-button {
width: 18px;
height: 18px;
background: url(images/search.svg) no-repeat;
background-size: 15px;
margin: 15px 7px 0 3px;
}
#wsite-header-search-form {
border-left: 1px solid rgba(116, 116, 116, 0.15);
border-right: 1px solid rgba(116, 116, 116, 0.15);
}
/* Social */
.wsite-social-item,
#wsite-com-product-social-sharing a {
width: 24px;
height: 24px;
margin-right: 12px;
}
.wsite-social-item:hover,
#wsite-com-product-social-sharing a:hover {
color: #66ff00;
}
.navmobile-wrapper {
display: none;
}
/* Subnav */
#wsite-menus .wsite-menu {
margin-top: 0px!important;
}
#wsite-menus .wsite-menu li a {
font-family: 'Lato-light', sans-serif;
font-size: 15px;
color: #ff6600;
font-weight: 700;
text-transform: uppercase;
padding: 5px 0 !important;
background: rgba(0, 0, 0, 0.50);
border: none;
}
#wsite-menus .wsite-menu li {
border: 0px solid #ff6600;
}
#wsite-menus .wsite-menu li + li {
border-top: none;
}
#wsite-menus .wsite-menu-arrow {
position: absolute;
top: 14px;
right: 0px;
display: inline-block !important;
padding: 0 5px 0 10px;
font-size: 0;
line-height: 0;`enter code here`
}
I need to change subnav dropdown box background highlight color having no luck.I beleive it defaults to a white color and I would like to change it to a black solid color. I would be most grateful of any help provided. Thanks in advance!
Here is the link to my site to allow you to see it in action.http://www.727customz.info/
Try this:
#weebly-menus .weebly-menu li a:hover, #wsite-menus .wsite-menu li a:hover {
background: #xxx;
}
The current style is:
#weebly-menus .weebly-menu li a:hover, #wsite-menus .wsite-menu li a:hover {
background: #e3e3e3;
}
If this doesn't fix it, try adding !important to it like this:
#weebly-menus .weebly-menu li a:hover, #wsite-menus .wsite-menu li a:hover {
background: #xxx !important;
}
#wsite-menus .wsite-menu li a:hover {
color: #66ff00;
background: rgba(0, 0, 0, 0.2);
}
#wsite-menus .wsite-menu li #active a
{
border-bottom: 1px solid #ff6600;
color: #66ff00; this is the text used to correct the issue!
}
Related
Learning over here. Creating a nav bar for my teams Wiki site and having issues with getting the submenu to display to the right of the right caret. The submenu instead shows up at the bottom of the dropdown menu but cannot be clicked on.
Any help is appreciated. My HMTL is below and then the CSS is below that.
<li class="dropdown">
For HM's<span class="caret"></span>
<ul class="dropdown-menu">
<li class="dropdown-submenu">
<b>Campus</b>
<ul class="dropdown-menu">
<li>Intern HM Self Service Portal</li>
<li>Talent Management and Planning</li>
<li>Requisition Management</li>
<li class="dropdown-submenu">Managing an Intern</li>
<ul class="dropdown-menu">
<li>Intern Mentors Under Resources Tab</li>
</ul>
`
:root {
--awsui-grey-100: rgb(250,250,250); /* Oxygen */
--awsui-grey-200: rgb(234,237,237); /* Chromium */
--awsui-grey-300: rgb(213,219,219); /* Zinc */
--awsui-grey-400: rgb(170,183,184); /* Silver */
--awsui-grey-500: rgb(134,149,150); /* Platinum */
--awsui-grey-600: rgb(84,91,100); /* Mercury */
--awsui-grey-900: rgb(22,25,31); /* Lead */
--awsui-orange-500: rgb(236,114,17); /* Copper */
--awsui-orange-600: rgb(235,95,7); /* Bromine */
--awsui-blue-500: rgb(0,161,201); /* Argon */
--awsui-blue-600: rgb(0,125,188); /* Cobalt */
--awsui-green-500: rgb(106,175,53); /* Fluorine */
--awsui-green-600: rgb(30,137,0); /* Phosphorous */
--awsui-squid-ink: rgb(35,47,62); /* Squid Ink */
--awsui-squid-ink-transparent: rgba(35,47,62,.5); /* Squid Ink half opacity */
--awsui-amazon-orange: rgb(255,153,0); /* Amazon Orange */
--awsui-amazon-orange-transparent: rgb(255,153,0,0.5); /* Amazon Orange */
--base-type: var(--awsui-grey-200);
--base-header: var(--awsui-grey-100);
--base-inverted: var(--awsui-grey-900);
}
#sitewide-announcement-banner .hidden-print {
background: rgb(241, 250, 255)!important;
border: 1px solid var(--awsui-blue-600)!important;
color: var(--awsui-grey-900)!important;
padding: 14px 20px!important;
margin: 20px 0!important;
}
/*permissions thing, messes with header*/
#xdocPrimaryOwner {display: none;}
.main,
#docextrapanes {
/* background: var(--awsui-grey-200); */
}
.navbar #nav-links div {
color: #000000;
}
.navbar ul.nav.navbar-nav li a.icon-navbar:focus,
.navbar ul.nav.navbar-nav li a.icon-navbar:hover {
/* background-color:#36729e; */
background-color:#888888;
outline: initial;
}
.navbar #companylogo, .navbar #nav-create-page, .navbar #nav-search {
display: inline-block;
vertical-align: middle;
}
#menuview .navbar {
background: white;
box-shadow: 0 1px 1px 0 rgba(0,28,36,.5);
}
#headerglobalsearchinput {
height: 30px;
border: 1px solid var(--awsui-grey-600);
}
/* MISC STUFF */
/* Disabled the edit button because the WYSIWYG destroys content when transcluding the header */
#tmEdit {
display: none!important;
}
/*Edit buttons override */
.thisIsAPageView > .document-header {
width: 400px !important;
}
/* Disables a paragraph that gets injected between the header and navigation by the wiki */
.airwolf-header + p {
display: none;
}
.navbar #nav-create-page {
display: none;
}
/* TYPOGRAPHY */
body, p, a, li, h1, h2, h3, h4, h5, h6 {
font-family: "Amazon Ember", Helvetica, Arial, sans-serif;
}
body,
#body p,
#body a,
#body li,
#body h1,
#body h2,
#body h3,
#body h4,
#body h5,
#body h6 {
font-family: "Amazon Ember", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 20px;
}
#body h1,
#body h2,
#body h3,
#body h4,
#body h5,
#body h6 {
padding: 5px 0;
border-bottom: 1px solid rgba(0,0,0,0);
}
#body .special {font-size: 44px; line-height: 50px; font-weight: 300;}
#body h1:first-of-type {font-size: 28px; line-height: 40px; margin-top: 0px;}
#body h1 {font-size: 28px; line-height: 40px; font-weight: 700;}
#body h2 {font-size: 22px; line-height: 20px; font-weight: 700;}
#body h3 {font-size: 18px; line-height: 20px; font-weight: 700;}
#body h4 {font-size: 15px; line-height: 20px;}
#body h5 {font-size: 15px; line-height: 20px;}
#body h6 {font-size: 14px; line-height: 20px;}
/* WIKI MODS */
/* ========================================================================== */
/* Main content column */
#body #contentcontainer .main {
padding: 0 20px 20px;
}
.airwolf-header {
margin: 0 -20px!important;
width: auto!important;
}
/* Breadcrumbs*/
#hierarchy {
margin: 0 -20px;
padding: 10px 20px;
border-radius: 0;
background-color: var(--awsui-squid-ink);
position: relative;
z-index: 20;
box-shadow: 0 2px 0 2px rgba(0,0,0,.2);
}
#mainContentArea > .xcontent {
margin-top: 0;
}
.breadcrumb > li + li:before {color: var(--awsui-grey-300);}
.breadcrumb a {color: var(--awsui-grey-200);}
.breadcrumb > .active:last-of-type a {color: var(--awsui-grey-100);}
/* Document meta */
.xdocLastModification {
font-size: 10px;
position: absolute;
top: -60px;
margin: 0;
display: none;
}
.xdocLastModification .wikilink,
#body .xdocLastModification .wikilink a {
font-size: 10px;
}
.titleDivider {
display: none;
}
.document-header {
margin: 0;
position: relative;
z-index: 25;
top: -38px;
width: 250px;
float: right;
}
.document-header .document-menu,
.document-header .document-info {
margin: 0 auto;
padding: 0;
}
.document-header .document-menu {
width: 100%;
opacity: 0.1;
transition: .2s opacity ease;
}
.document-header .document-menu:hover {
opacity: 1;
}
.document-header .document-info {
pointer-events: none;
}
#document-title {
display: none;
}
#document-title h1 {
background: none;
}
#xwikicontent {
position: relative;
top: -35px;
}
#xwikicontent,
#docextrapanes {
/* background: var(--awsui-grey-200); */
}
.btn, input.button {
background-image: none;
background-color: var(--awsui-grey-100);
color: var(--awsui-grey-900);
border: 1px solid var(--awsui-grey-600);
font-weight: 700;
padding: 4px 20px;
}
.btn:hover, input.button:hover {
background-color: var(--awsui-grey-200);
background-image: none;
border: 1px solid var(--awsui-grey-900);
color: var(--awsui-grey-900);
}
.edit_section {
overflow: visible;
top: -11px;
opacity: 0.2;
transition: .2s opacity ease;
}
.edit_section:hover {
opacity: 1;
}
.edit_section + * {
clear: both;
}
.wikimodel-emptyline {
display: block;
}
#footerglobal {
z-index: 1;
}
/* Limits content to a fake content column */
#media screen and (min-width: 1200px) {
.airwolf-header ~ *:not(.navbar-inverse) {
max-width: 900px;
margin-left: auto;
margin-right: auto;
}
}
#media screen and (max-width: 768px) {
#menuview, #sitewide-announcement-banner {
display: none;
}
.btn-demo {
display: none;
}
.amazon-wiki-toc {
display: none;
}
.edit_section {
display: none;
}
.document-header {
opacity: 0;
pointer-events: none;
}
.navbar-collapse {
background-color: #121821!important;
margin: 2px -20px 0 -30px;
border: none!important;
padding-left: 50px;
}
.dropdown-header {
color: #aaaaaa!important;
}
}
#media (min-width: 768px) {
.navbar-collapse {
background-color: transparent!important;
}
}
/************************************
* Airwolf header - stripe animation
************************************/
.airwolf-header {
margin: 0 auto;
background-color: rgb(35,47,62);
position: relative;
width: 100%;
height: 170px;
overflow: hidden;
}
.airwolf-header::after {
z-index: 1;
box-shadow: 0 0 240px 240px rgba(0,0,0,.5);
content: '';
background: red;
width: 340px;
height: 340px;
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border-radius: 50%;
}
.airwolf-header-title {
z-index: 2;
font-family: "Amazon Ember", Helvetica, Arial, sans-serif;
letter-spacing: 2px;
position: absolute;
color: rgb(250,250,250);
top: 40px;
left: 50%;
transform: translate(-50%, -50%);
font-size: 50px;
line-height: 1.4;
font-weight: 700;
}
.airwolf-header-title::after {
z-index: 2;
display: block;
content: '';
width: 100%;
height: 1px;
background: rgb(255,153,0);
}
.airwolf-header-subtitle {
z-index: 2;
font-family: "Amazon Ember", Helvetica, Arial, sans-serif;
letter-spacing: 2px;
position: absolute;
color: rgb(250,250,250);
top: 99px;
left: 50%;
transform: translate(-50%, -50%);
font-size: 20px;
line-height: 1.4;
font-weight: 700;
}
.airwolf-header-stripe-shine {
position: absolute;
content: '';
background: white;
width: 100%;
height: 20px;
transform: rotate(-70deg);
animation-duration: 6s;
animation-name: shine;
animation-iteration-count: infinite;
}
.airwolf-header-stripe-shine.two {
height: 10px;
animation-duration: 3s;
}
.airwolf-header-stripe-fade {
display: block;
width: 1000px;
height: 50px;
background: rgb(236,114,17);
margin-left: -50px;
margin-top: -50px;
transform: rotate(-20deg);
animation-duration: 6s;
animation-name: fadeInOut;
animation-iteration-count: infinite;
}
.airwolf-header-stripe-fade.one {
background: rgb(255,153,0);
margin-bottom: 10px;
animation-duration: 6s;
}
.airwolf-header-stripe-fade.two {
background: rgb(236,114,17);
margin-bottom: 75px;
animation-duration: 17s;
}
.airwolf-header-stripe-fade.three {
background: rgb(236,114,17);
margin-bottom: 10px;
animation-duration: 7s;
}
.airwolf-header-stripe-fade.four {
animation-name: fadeInOutDark;
background: rgb(35,47,62);
margin-bottom: 30px;
animation-duration: 9s;
}
.airwolf-header-stripe-fade.five {
background: rgb(255,153,0);
margin-bottom: 150px;
animation-duration: 13s;
}
#keyframes shine {
0% {
transform: rotate(-90deg);
left: -100%;
background: rgba(255,255,255,0);
}
15% {
transform: rotate(-70deg);
}
25% {
left: 50%;
background: rgba(255,255,255,0.05);
}
100% {
transform: rotate(-90deg);
left: 150%;
background: rgba(255,255,255,0);
}
}
#menuview .navbar-brand {
width: 100px;
height: 25px;
margin-left: 5px;
display: block;
background-size: 100%;
}
#menuview .navbar-brand img {
display: none;
}
.navbar li.navbar-help-menu > a.dropdown-toggle {
color: var(--awsui-grey-900);
}
#keyframes fadeInOut {
0% {
opacity: 0;
}
50% {
opacity: 0.9;
}
100% {
opacity: 0;
}
}
#keyframes fadeInOutDark {
0% {
opacity: 0;
}
50% {
opacity: .5;
}
100% {
opacity: 0;
}
}
/************************************
* Navbar
************************************/
li {
display: block;
transition-duration: 0.5s;
}
li:hover {
cursor: pointer;
}
ul li ul {
visibility: hidden;
opacity: 0;
position: absolute;
transition: all 0.5s ease;
margin-top: 1rem;
left: 0;
display: none;
}
ul li:hover > ul,
ul li ul:hover {
visibility: visible;
opacity: 1;
display: block;
}
ul li ul li {
clear: both;
width: 100%;
}
.navbar-nav.navbar-center {
position: relative;
left: 50%;
transform: translatex(-50%);
}
.navbar-inverse {
width: 100%;
display: inline-block;
top: -45px;
background-color: transparent!important;
background-image: none!important;
border: none;
z-index: 2;
}
/* Menu Hover */
.navbar-inverse .navbar-nav > li > a {
color: #fff!important;
padding-top: 5px;
padding-bottom: 5px;
}
/* Menu Hover */
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus,
.navbar-inverse .navbar-nav > li > a:active {
background: rgb(236,114,17);
color: #000!important;
}
/* Menu Click After */
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
background: rgb(236,114,17);
color: #000!important;
}
.dropdown-menu {
margin: 2px 0 0 -1px;
}
/* Dropdown Menu Hover */
.dropdown-menu li > a:active,
.dropdown-menu li > a:focus,
.dropdown-menu li > a:hover {
position: relative;
background: rgb(236,114,17);
color: #000!important;
outline: initial;
}
.dropdown-header {
font-weight: 900;
color: #232f3e;
text-transform: uppercase;
margin-left: -5px!important;
}
/* Menu Collapsed Mode */
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {
background: rgb(236,114,17);
color: #000!important;
outline: initial;
}
.dropdown-submenu>a:after {
display: block;
content: " ";
padding-left: 5px;
float: right;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
border-width: 5px 0 5px 5px;
border-left-color: #ccc;
margin-top: 5px;
margin-right: -10px;
}
li {
display: block;
transition-duration: 0.5s;
}
li:hover {
cursor: pointer;
}
ul li ul {
visibility: hidden;
opacity: 0;
position: absolute;
transition: all 0.5s ease;
margin-top: 1rem;
left: 0;
display: none;
}
ul li:hover > ul,
ul li ul:hover {
visibility: visible;
opacity: 1;
display: block;
}
ul li ul li {
clear: both;
width: 100%;
}
/************************************
* TOC flyout modal
************************************/
.modal.left .modal-dialog,
.modal.right .modal-dialog {
position: fixed;
margin: auto;
width: 320px;
height: 100%;
-webkit-transform: translate3d(0%, 0, 0);
-ms-transform: translate3d(0%, 0, 0);
-o-transform: translate3d(0%, 0, 0);
transform: translate3d(0%, 0, 0);
}
.modal.left .modal-content,
.modal.right .modal-content {
height: 100%;
overflow-y: auto;
}
.modal.left .modal-body,
.modal.right .modal-body {
padding: 15px 15px 80px;
}
/*Modal fly from left*/
.modal.left.fade .modal-dialog{
left: -320px;
-webkit-transition: opacity 0.3s linear, left 0.3s ease-out;
-moz-transition: opacity 0.3s linear, left 0.3s ease-out;
-o-transition: opacity 0.3s linear, left 0.3s ease-out;
transition: opacity 0.3s linear, left 0.3s ease-out;
}
.modal.left.fade.in .modal-dialog{
left: 0;
}
/* Modal style */
.modal-content {
border-radius: 0;
border: none;
top: 201px;
}
.modal-header {
background-color: #dddddd;
color: #000000;
margin-top: -30px;
text-align: center;
font-weight: 700;
padding: 10px 10px 0px 10px;
}
.modal-body {
margin-top: -30px;
}
/* TOC button */
.btn-demo {
margin: 0px;
padding: 10px 15px;
border-radius: 0;
font-size: 16px;
background-color: #232f3e;
color: #ffffff;
left: 0!important;
position: fixed;
width: 170px;
height: 50px;
top: 40%;
transform: rotate(-90deg);
margin-left: -60px;
}
.btn-demo:hover,
.btn-demo:focus {
outline: 0;
background: rgb(236,114,17)!important;
color: #000000;
}
I wrote a little html page that contains some buttons. What I want to do is to have them look like this :
I'm not good at all at css, I tried some combination but what I get is to have them "below the blue line" like this :
Here is my html code :
<div class="module form-module">
<div class="flex-container">
<article class="article">
<table>
<tr>
<td>
<button>Configurations</button>
</td>
<td>
<button>Create User </button>
</td>
<td>
<button>Update User</button>
</td>
<td>
<button>Create Group</button>
</td>
<td>
<button>Update Group</button>
</td>
</tr>
</table>
</article>
</div>
</div>
You can find my css code in that plunker : https://plnkr.co/edit/sCcBBFfWRiCwGz8hs8oR?p=catalogue
Can you please help me to fix this little problem in html ?
CSS changes:
.form-module {
border-bottom: 5px solid #33b5e5;
position: relative;
background: #ffffff;
width: 100%;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
margin: 0 auto;
align: right;
}
.flex-container > * {
padding: 15px;
-webkit-flex: 1 100%;
flex: 1 100%;
}
table {
border-spacing:0px;
}
td {
padding:0px;
}
Changes expalined:
The blue line is a border, and was set on the button's parent container. It was set to top when you wanted it to be on the bottom, so that's first change.
Then you had padding, which was separating the buttons from the edges of the container, that's second change, set it to 0px.
Finally, both the table and each button had a 1px border which would separate it from the edges of the container, third change was setting those borders to 0px.
Small suggestion:
In case you're not aware: it's really helpful to use browser inspector to better understand what's going on with CSS. Also, if you don't wish to make everything from scratch, I'd recommend you have a look at Bootstrap, it's quite easy and might save you a bunch of time.
Good luck.
In case it's useful, here's the complete CSS:
body {
background: #e9e9e9;
color: #666666;
font-family: 'RobotoDraft', 'Roboto', sans-serif;
font-size: 14px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
table {
border-spacing:0px;
}
td {
padding:0px;
}
/* Pen Title */
.pen-title {
padding: 50px 0;
text-align: center;
letter-spacing: 2px;
}
.pen-title h1 {
margin: 0 0 20px;
font-size: 48px;
font-weight: 300;
}
.pen-title span {
font-size: 12px;
}
.pen-title span .fa {
color: #33b5e5;
}
.pen-title span a {
color: #33b5e5;
font-weight: 600;
text-decoration: none;
}
/* Form Module */
.form-module {
position: relative;
background: #ffffff;
width: 100%;
border-bottom: 5px solid #33b5e5;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
margin: 0 auto;
align: right;
}
.form-module .toggle {
cursor: pointer;
position: absolute;
top: -0;
right: -0;
background: #33b5e5;
width: 30px;
height: 30px;
margin: -5px 0 0;
color: #ffffff;
font-size: 12px;
line-height: 30px;
text-align: center;
}
.form-module .toggle .tooltip {
position: absolute;
top: 5px;
right: -65px;
display: block;
background: rgba(0, 0, 0, 0.6);
width: auto;
padding: 5px;
font-size: 10px;
line-height: 1;
text-transform: uppercase;
}
.form-module .toggle .tooltip:before {
content: '';
position: absolute;
top: 5px;
left: -5px;
display: block;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-right: 5px solid rgba(0, 0, 0, 0.6);
}
.form-module .form {
display: none;
padding: 40px;
}
.form-module .form:nth-child(2) {
display: block;
}
.form-module h2 {
margin: 0 0 20px;
color: #33b5e5;
font-size: 18px;
font-weight: 400;
line-height: 1;
}
.form-module table {
width: 100%
}
.form-module input {
outline: none;
width: 80%;
border: 1px solid #d9d9d9;
padding: 10px 15px;
font-weight: 400;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
.form-module input:focus {
border: 1px solid #33b5e5;
color: #333333;
}
.form-module button {
cursor: pointer;
background: #33b5e5;
width: 90%;
border: 0;
padding: 10px 15px;
color: #ffffff;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
.form-module button:hover {
background: #178ab4;
}
.form-module select {
cursor: pointer;
width: 85%;
height:80%;
padding: 10px 15px;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
.flag button {
background: white;
color: #178ab4;
}
.flag button:hover {
background: white;
border: 20px;
border-color: #178ab4;
}
.flag {
cursor: pointer;
background: white;
width: 100%;
border: 0;
padding: 10px 15px;
border-color: #178ab4;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
.flag a {
cursor: pointer;
background: white;
width: 100%;
border: 0;
color: #33b5e5;
border-color: #178ab4;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
.flag a :hover {
background: white;
}
.form-module .cta {
background: #f2f2f2;
width: 100%;
padding: 15px 40px;
box-sizing: border-box;
color: #666666;
font-size: 12px;
text-align: center;
}
.form-module .cta a {
color: #333333;
text-decoration: none;
}
.flex-container {
display: -webkit-flex;
display: flex;
-webkit-flex-flow: row wrap;
flex-flow: row wrap;
align: right;
}
.flex-container > * {
padding: 0px;
-webkit-flex: 1 100%;
flex: 1 100%;
}
.article {
text-align: left;
}
.detail button {
width: 120px
}
.detail table {
border-collapse: separate;
border-spacing: 5px 10px;
width: 100%
}
.search table {
border-collapse: separate;
border-spacing: 5px 10px;
width: 70%
}
.search button {
width: 120px
}
.search input {
outline: none;
width: 90%;
border: 1px solid #d9d9d9;
padding: 10px 15px;
font-weight: 400;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
.search select {
cursor: pointer;
width: 90%;
padding: 10px 15px;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
.resultSearch table {
border-collapse: separate;
border-spacing: 5px 10px;
width: 80%
}
.dropbtn {
outline: none;
border:1;
width: 80%;
border: 1px solid #d9d9d9;
padding: 10px 15px;
font-size: 16px;
cursor: pointer;
}
.dropbtn:hover, .dropbtn:focus {
}
#myInput {
border-box: box-sizing;
background-image: url('searchicon.png');
background-position: 14px 12px;
background-repeat: no-repeat;
font-size: 16px;
outline: none;
width: 100%;
border: 1px solid #d9d9d9;
padding: 10px 15px;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f6f6f6;
min-width: 230px;
overflow: auto;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown a:hover {background-color: #ddd}
.show {display:block;}
#searchbox
{
width: 35px;
}
#media all and (min-width: 768px) {
.nav {text-align:left;-webkit-flex: 1 auto;flex:1 auto;-webkit-order:1;order:1;}
.article {-webkit-flex:5 0px;flex:5 0px;-webkit-order:2;order:2;}
footer {-webkit-order:3;order:3;}
}
.newUser button {
width: 120px
}
.newUser table {
border-collapse: separate;
border-spacing: 5px 10px;
width: 90%
}
.return table{
border-collapse: separate;
border-spacing: 5px 10px;
width: 90%;
}
.returnCheckBox input {
align: left;
width:0%;
}
.invoiceListTable table {
border-collapse: separate;
border-spacing: 5px 10px;
width: 90%
}
.sessionInfo table {
border-collapse: separate;
border-spacing: 5px 10px;
width: 100%;
align: right;
}
.sessionInfo {
display: -webkit-flex;
display: flex;
-webkit-flex-flow: row wrap;
flex-flow: row wrap;
align: right;
}
.sessionInfo > * {
padding: 15px;
-webkit-flex: 1 100%;
flex: 1 100%;
align: right;
}
.sessionInfo {
position: relative;
background: #ffffff;
width: 20%;
border-top: 5px solid #33b5e5;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
margin: 0 auto;
align: right;
}
.sessionInfo .toggle {
cursor: pointer;
position: absolute;
top: -0;
right: -0;
background: #33b5e5;
width: 30px;
height: 30px;
margin: -5px 0 0;
color: #ffffff;
font-size: 12px;
line-height: 30px;
text-align: center;
}
.sessionInfo .toggle .tooltip {
position: absolute;
top: 5px;
right: -65px;
display: block;
background: rgba(0, 0, 0, 0.6);
width: auto;
padding: 5px;
font-size: 10px;
line-height: 1;
text-transform: uppercase;
}
.sessionInfo .toggle .tooltip:before {
content: '';
position: absolute;
top: 5px;
left: -5px;
display: block;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-right: 5px solid rgba(0, 0, 0, 0.6);
}
.form-module .form {
display: none;
padding: 40px;
align:right;
}
UPDATE:
You mentioned the buttons should be outside and above the form-module, so the html needs to be changed and not just the css. We removed the flex-container div which was nested inside form-module div and placed it after this container is closed. Since the buttons were getting their layout properties from .form-module's style, it was necessary to create a new class "buttons". Basically now form-module and buttons are in different containers and with separated style properties.
To understand how container blocks work:
http://www.w3schools.com/html/html_blocks.asp
html:
<div class="flex-container buttons">
<article class="article">
<table>
<tr>
<td>
<button>Configurations</button>
</td>
<td>
<button>Create User </button>
</td>
<td>
<button>Update User</button>
</td>
<td>
<button>Create Group</button>
</td>
<td>
<button>Update Group</button>
</td>
</tr>
</table>
</article>
</div>
<div class="module form-module">
</div>
changed css:
body {
background: #e9e9e9;
color: #666666;
font-family: 'RobotoDraft', 'Roboto', sans-serif;
font-size: 14px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.buttons table {
width: 100%;
border-spacing:0px;
}
.buttons td {
padding:0px;
}
.buttons input {
outline: none;
width: 80%;
border: 1px solid #d9d9d9;
padding: 10px 15px;
font-weight: 400;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
.buttons input:focus {
border: 1px solid #33b5e5;
color: #333333;
}
.buttons button {
cursor: pointer;
background: #33b5e5;
width: 90%;
border: 0;
padding: 10px 15px;
color: #ffffff;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
.buttons button:hover {
background: #178ab4;
}
.buttons select {
cursor: pointer;
width: 85%;
height:80%;
padding: 10px 15px;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
complete css:
body {
background: #e9e9e9;
color: #666666;
font-family: 'RobotoDraft', 'Roboto', sans-serif;
font-size: 14px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.buttons table {
width: 100%;
border-spacing:0px;
}
.buttons td {
padding:0px;
}
.buttons input {
outline: none;
width: 80%;
border: 1px solid #d9d9d9;
padding: 10px 15px;
font-weight: 400;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
.buttons input:focus {
border: 1px solid #33b5e5;
color: #333333;
}
.buttons button {
cursor: pointer;
background: #33b5e5;
width: 90%;
border: 0;
padding: 10px 15px;
color: #ffffff;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
.buttons button:hover {
background: #178ab4;
}
.buttons select {
cursor: pointer;
width: 85%;
height:80%;
padding: 10px 15px;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
/* Pen Title */
.pen-title {
padding: 50px 0;
text-align: center;
letter-spacing: 2px;
}
.pen-title h1 {
margin: 0 0 20px;
font-size: 48px;
font-weight: 300;
}
.pen-title span {
font-size: 12px;
}
.pen-title span .fa {
color: #33b5e5;
}
.pen-title span a {
color: #33b5e5;
font-weight: 600;
text-decoration: none;
}
/* Form Module */
.form-module {
position: relative;
background: #ffffff;
width: 100%;
border-top: 5px solid #33b5e5;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
margin: 0 auto;
align: right;
}
.form-module .toggle {
cursor: pointer;
position: absolute;
top: -0;
right: -0;
background: #33b5e5;
width: 30px;
height: 30px;
margin: -5px 0 0;
color: #ffffff;
font-size: 12px;
line-height: 30px;
text-align: center;
}
.form-module .toggle .tooltip {
position: absolute;
top: 5px;
right: -65px;
display: block;
background: rgba(0, 0, 0, 0.6);
width: auto;
padding: 5px;
font-size: 10px;
line-height: 1;
text-transform: uppercase;
}
.form-module .toggle .tooltip:before {
content: '';
position: absolute;
top: 5px;
left: -5px;
display: block;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-right: 5px solid rgba(0, 0, 0, 0.6);
}
.form-module .form {
display: none;
padding: 40px;
}
.form-module .form:nth-child(2) {
display: block;
}
.form-module h2 {
margin: 0 0 20px;
color: #33b5e5;
font-size: 18px;
font-weight: 400;
line-height: 1;
}
.form-module table {
width: 100%
}
.form-module input {
outline: none;
width: 80%;
border: 1px solid #d9d9d9;
padding: 10px 15px;
font-weight: 400;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
.form-module input:focus {
border: 1px solid #33b5e5;
color: #333333;
}
.form-module button {
cursor: pointer;
background: #33b5e5;
width: 90%;
border: 0;
padding: 10px 15px;
color: #ffffff;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
.form-module button:hover {
background: #178ab4;
}
.form-module select {
cursor: pointer;
width: 85%;
height:80%;
padding: 10px 15px;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
.flag button {
background: white;
color: #178ab4;
}
.flag button:hover {
background: white;
border: 20px;
border-color: #178ab4;
}
.flag {
cursor: pointer;
background: white;
width: 100%;
border: 0;
padding: 10px 15px;
border-color: #178ab4;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
.flag a {
cursor: pointer;
background: white;
width: 100%;
border: 0;
color: #33b5e5;
border-color: #178ab4;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
.flag a :hover {
background: white;
}
.form-module .cta {
background: #f2f2f2;
width: 100%;
padding: 15px 40px;
box-sizing: border-box;
color: #666666;
font-size: 12px;
text-align: center;
}
.form-module .cta a {
color: #333333;
text-decoration: none;
}
.flex-container {
display: -webkit-flex;
display: flex;
-webkit-flex-flow: row wrap;
flex-flow: row wrap;
align: right;
}
.flex-container > * {
padding: 0px;
-webkit-flex: 1 100%;
flex: 1 100%;
}
.dropbtn {
outline: none;
border:1;
width: 80%;
border: 1px solid #d9d9d9;
padding: 10px 15px;
font-size: 16px;
cursor: pointer;
}
.dropbtn:hover, .dropbtn:focus {
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f6f6f6;
min-width: 230px;
overflow: auto;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown a:hover {background-color: #ddd}
.show {display:block;}
ul{
list-style-type:none;
width:500px;
}
li{
width:33%;
text-align:center;
float:left;
border-bottom:2px solid #33b5e5;
}
Maybe instead of a 'table' use a 'list' html element like ul or li.
plunker
New HTML:
<div class="module form-module">
<div class="flex-container">
<article class="article">
<ul>
<li>
<button>Configurations</button>
</li>
<li>
<button>Create User </button>
</li>
<li>
<button>Update User</button>
</li>
</ul>
</article>
</div>
</div>
and add the following CSS:
ul{
list-style-type:none;
width:500px;
}
li{
width:33%;
text-align:center;
float:left;
border-bottom:2px solid #33b5e5;
}
I'm trying to change my site-title font on weebly. But unfortunately, it won't work.
I've tried some youtube tutorials but they didn't help.
I would like to have this font as site-title. (https://www.onlinewebfonts.com/download/7ad138835c0cf9f05a9f0ab343247612)
Hereby my css code and a screenshot, so I hope you can help me :)
Thank you in advance!
Screenshot: http://i66.tinypic.com/znu1aa.png[/IMG
#import url(//fonts.googleapis.com/css?family=Fjalla+One);
#font-face {font-family: "PNS";
src: url("http://db.onlinewebfonts.com/t/7ad138835c0cf9f05a9f0ab343247612.eot");
src: url("http://db.onlinewebfonts.com/t/7ad138835c0cf9f05a9f0ab343247612.eot?#iefix") format("embedded-opentype"),
url("http://db.onlinewebfonts.com/t/7ad138835c0cf9f05a9f0ab343247612.woff2") format("woff2"),
url("http://db.onlinewebfonts.com/t/7ad138835c0cf9f05a9f0ab343247612.woff") format("woff"),
url("http://db.onlinewebfonts.com/t/7ad138835c0cf9f05a9f0ab343247612.ttf") format("truetype"),
url("http://db.onlinewebfonts.com/t/7ad138835c0cf9f05a9f0ab343247612.svg#ProximaNovaSoftW03-Bold") format("svg");
}
/* Resets */
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
body,
html,
p,
blockquote,
fieldset,
input {
margin: 0;
padding: 0;
}
/* Global Styles */
html {
height: 100%;
}
body {
width: 100%;
height: 100%;
background: #222121;
color: #666666;
font-family: 'Lato', sans-serif;
font-size: 16px;
font-weight: normal;
line-height: 24px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a {
color: #1cadeb;
text-decoration: none;
-webkit-transition: all 500ms ease;
-moz-transition: all 500ms ease;
-ms-transition: all 500ms ease;
-o-transition: all 500ms ease;
transition: all 500ms ease;
}
a:hover {
color: #1894c9;
}
a img {
border: 0;
}
ol,
ul {
list-style-type: none;
}
h2 {
padding-bottom: 15px;
color: #3b3b3b;
font-family: 'Fjalla One', sans-serif;
font-size: 36px;
font-weight: normal;
line-height: 1.2em;
}
p {
padding-bottom: 20px;
font-family: 'Lato', sans-serif;
font-size: 16px;
font-weight: normal;
line-height: 1.5em;
}
blockquote {
margin: 2em 0;
padding: 1em;
padding-left: 30px !important;
background: url("quotes.png") no-repeat 0px 25px;
color: #666666;
border-left: 0px !important;
font-family: 'Lato', sans-serif;
font-size: 18px;
font-weight: bold;
line-height: 28px;
}
::-webkit-input-placeholder,
:-moz-placeholder,
::-moz-placeholder,
:-ms-input-placeholder {
color: #666666;
}
input[type="text"],
input[type="email"],
textarea {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: none;
text-shadow: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
border: 0px solid #93c4d3;
}
textarea {
resize: none;
}
select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: none;
text-indent: 0.01px;
text-overflow: '';
}
input[type="radio"],
input[type="checkbox"] {
width: 16px;
height: 16px;
border: 1px solid #b2b2ad !important;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: none;
text-shadow: none;
}
input[type="radio"] {
border-radius: 8px;
}
input[type="checkbox"] {
background-color: #ffffff;
border-radius: 0;
}
input[type="radio"]:after {
display: block;
border-radius: 8px;
box-sizing: border-box;
content: " ";
}
input[type="radio"]:checked,
input[type="checkbox"]:checked {
border: 1px solid #1cadeb !important;
}
input[type="radio"]:checked:after {
background: #1cadeb;
border: 2px solid #ffffff;
width: 14px;
height: 14px;
}
input[type="checkbox"]:after {
position: relative;
top: 1px;
left: 4px;
width: 3px;
height: 6px;
border: solid #666666;
border-width: 0 2px 2px 0;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}
input[type="checkbox"]:checked:after {
display: block;
border-color: #1cadeb;
content: " ";
}
.container {
width: 960px;
margin: 0 auto;
}
/* Editor Overrides :: DO NOT REMOVE */
#icontent .wrapper .paris-header,
#preview-iframe .landing-page .wrapper .paris-header,
#icontent.landing-page .wrapper .paris-header,
#icontent .wrapper .banner,
#preview-iframe .landing-page .wrapper .banner,
#icontent.landing-page .wrapper .banner {
opacity: 1 !important;
}
#preview-iframe .landing-page .banner-wrap,
#icontent.landing-page .banner-wrap {
height: 95vh;
min-height: 95vh;
}
body.fade-in-nav .paris-header {
opacity: 1;
}
/* Mobile app */
body.wsite-checkout-page .paris-header,
body.wsite-native-mobile-editor .paris-header {
position: absolute !important;
}
/* Header + Navigation */
.paris-header {
position: fixed;
top: 0;
z-index: 12;
overflow-y: hidden;
width: 100%;
background: #93c4d3 ;
border-top: 5px solid #93c4d3 ;
opacity: 0;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
-webkit-transition: opacity 1000ms ease-in;
-moz-transition: opacity 1000ms ease-in;
-ms-transition: opacity 1000ms ease-in;
-o-transition: opacity 1000ms ease-in;
transition: opacity 1000ms ease-in;
}
.paris-header .container {
position: relative;
display: table;
width: 100%;
padding: 0 40px;
box-sizing: border-box;
}
.paris-header .logo {
display: table-cell;
padding-right: 25px;
vertical-align: middle;
color: #ffffff;
font-family: 'Fjalla One', sans-serif;
font-size: 24px;
font-weight: normal;
line-height: normal;
}
.paris-header .logo a {
overflow: hidden;
color: #ffffff;
letter-spacing: .05em;
text-transform: uppercase;
font-family: 'Fjalla One', sans-serif;
font-size: 24px;
font-weight: normal;
line-height: normal;
}
.paris-header .logo a img {
height: auto;
max-height: 50px;
}
.nav {
display: table-cell;
overflow: hidden;
vertical-align: middle;
text-align: center;
}
.nav ul {
float: right;
display: inline-block;
max-width: 1115px;
text-align: left;
}
.nav li {
display: block;
float: left;
-webkit-transition: background 500ms ease;
-moz-transition: background 500ms ease;
-ms-transition: background 500ms ease;
-o-transition: background 500ms ease;
transition: background 500ms ease;
}
.nav li a {
display: block;
color: #ffffff;
padding: 22px 20px;
letter-spacing: .05em;
text-transform: uppercase;
font-family: 'Lato', sans-serif;
font-size: 13px;
font-weight: bold;
line-height: normal;
}
.nav li.wsite-menu-item-wrap#active > a,
.nav li.wsite-menu-subitem-wrap#active > a,
.nav li.wsite-menu-item-wrap > a:hover,
.nav li.wsite-menu-subitem-wrap > a:hover {
background: #1cadeb;
}
.mobile-nav {
display: none;
}
/* Submenus */
#wsite-menus .wsite-menu li a {
padding: 10px 5px;
background: rgba(0, 0, 0, 0.9);
color: #ffffff;
border-bottom: 1px solid #303030;
border-left: none;
border-right: none;
font-family: 'Lato', sans-serif;
font-size: 13px;
font-weight: normal;
line-height: normal;
box-sizing: border-box;
}
#wsite-menus .wsite-menu li a:hover {
background: rgba(0, 0, 0, 0.9);
color: #ffffff;
border-left: 5px solid #1894c9;
}
#wsite-menus .wsite-menu-arrow {
color: transparent;
font-size: 0;
}
#wsite-menus .wsite-menu-arrow:before {
display: block;
color: #ffffff;
content: '\203A';
font-family: 'Lato', sans-serif;
font-size: 24px;
font-weight: normal;
line-height: 11px;
}
/* Mini cart */
#wsite-mini-cart {
position: fixed !important;
top: 80px !important;
overflow-y: scroll;
max-height: 600px;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
#wsite-mini-cart .wsite-css-aspect {
width: 50px;
height: 50px;
margin: 10px;
}
/* Banner */
.banner-wrap {
position: relative;
width: 100%;
padding: 55px 0;
box-sizing: border-box;
background: #ffffff url('default-bg.jpg') center center no-repeat;
background-size: cover;
}
.banner-wrap:before {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.1);
content: ' ';
}
.banner-wrap .container {
display: table;
overflow-y: hidden;
height: 100%;
}
.banner-wrap .banner {
position: relative;
display: table-cell;
vertical-align: middle;
text-align: center;
}
.banner-wrap .banner h2 {
padding-bottom: 30px;
color: #ffffff;
word-spacing: .1em;
text-transform: uppercase;
font-family: 'Fjalla One', sans-serif;
font-size: 100px;
font-weight: normal;
line-height: 1.1em;
}
.banner-wrap .banner p {
padding-bottom: 40px;
color: #ffffff;
letter-spacing: .03em;
text-transform: uppercase;
font-family: 'Lato', sans-serif;
font-size: 24px;
font-weight: normal;
line-height: 1.4em;
}
.banner-wrap .banner .button-wrap {
display: inline-block;
}
.banner-wrap .banner .wsite-button {
text-align: center !important;
}
.banner-wrap .banner .wsite-button .wsite-button-inner {
background: #1cadeb;
color: #ffffff !important;
}
.banner-wrap .banner .wsite-button:hover .wsite-button-inner {
background: #1894c9;
}
/* Content */
.main-wrap {
background: #ffffff;
}
.main-wrap .content-wrap {
padding: 40px 0 30px;
background: #ffffff;
}
/* Footer */
.footer-wrap {
width: 100%;
background: #222121;
font-size: 13px;
color: #ffffff;
}
.footer-wrap .wsite-footer {
width: 960px;
margin: 0 auto;
padding: 35px 0 20px;
}
.footer-wrap h2 {
color: #989794;
font-family: 'Lato', sans-serif;
font-size: 15px;
font-weight: bold;
line-height: normal;
}
.footer-wrap p {
font-size: 13px;
padding: 0 0 15px;
}
.footer-wrap blockquote {
background: url("quotes.png") no-repeat 0px 15px;
font-size: 15px;
color: #ffffff;
}
.footer-wrap .wsite-form-container {
text-align: left;
margin-top: 0 !important;
}
.footer-wrap .wsite-form-label,
.footer-wrap .form-radio-container {
color: #ffffff;
font-size: 13px;
}
/* Social */
.wsite-social .wsite-social-item {
font-size: 16px;
margin-right: 5px;
}
/* Buttons */
.wsite-button {
height: auto;
padding: 0;
background: none;
-webkit-transition: all 300ms ease;
-moz-transition: all 300ms ease;
-ms-transition: all 300ms ease;
-o-transition: all 300ms ease;
transition: all 300ms ease;
}
.wsite-button:focus {
outline: none;
}
.wsite-button .wsite-button-inner {
display: block;
height: auto;
padding: 12px 16px;
background: #cccbc6;
color: #333333 !important;
border-radius: 4px;
text-transform: uppercase;
letter-spacing: .1em;
white-space: normal;
font-family: 'Lato', sans-serif;
font-size: 14px;
font-weight: 700;
line-height: normal;
-webkit-transition: all 500ms ease;
-moz-transition: all 500ms ease;
-ms-transition: all 500ms ease;
-o-transition: all 500ms ease;
transition: all 500ms ease;
}
.wsite-button.wsite-button-large {
background: none;
}
.wsite-button.wsite-button-large .wsite-button-inner {
padding: 16px 24px;
border-radius: 6px;
font-family: 'Lato', sans-serif;
font-size: 16px;
font-weight: 700;
line-height: normal;
}
.wsite-button:hover .wsite-button-inner {
background: #b2b2ad;
}
.wsite-button.wsite-button-highlight {
background: none;
}
.wsite-button.wsite-button-highlight .wsite-button-inner {
background: #1cadeb;
color: #ffffff !important;
}
.wsite-button.wsite-button-highlight:hover .wsite-button-inner {
background: #1894c9;
}
.wsite-button-large.wsite-button-highlight {
background: none;
}
/* Forms */
.wsite-form-label {
display: inline-block;
color: #3b3b3b;
font-family: 'Lato', sans-serif;
font-size: 15px;
font-weight: normal;
line-height: normal;
}
.wsite-form-sublabel {
display: none;
}
.wsite-form-radio-container {
margin-bottom: 10px;
font-family: 'Lato', sans-serif;
font-size: 14px;
font-weight: normal;
line-height: normal;
}
.wsite-form-radio-container label {
position: relative;
top: 1px;
}
.wsite-form-input,
.wsite-search-element-input {
margin-bottom: 10px;
padding: 8px !important;
background: #ffffff;
border-radius: 0;
border: 1px solid #b2b2ad;
font-family: 'Lato', sans-serif;
font-size: 15px;
font-weight: normal;
line-height: normal;
-webkit-transition: border 300ms ease;
-moz-transition: border 300ms ease;
-ms-transition: border 300ms ease;
-o-transition: border 300ms ease;
transition: border 300ms ease;
}
.wsite-form-input:focus,
.wsite-search-element-input:focus {
border: 1px solid #1cadeb;
}
.form-select,
.wsite-form-field select,
.wsite-com-product-option-groups select {
height: auto;
padding: 8px;
background: #ffffff url(select-dropdown.png) 97% center no-repeat;
border-radius: 0;
border: 1px solid #b2b2ad;
font-family: 'Lato', sans-serif;
font-size: 15px;
font-weight: normal;
line-height: normal;
-webkit-transition: border 300ms ease;
-moz-transition: border 300ms ease;
-ms-transition: border 300ms ease;
-o-transition: border 300ms ease;
transition: border 300ms ease;
}
.form-select:focus,
.wsite-form-field select:focus,
.wsite-com-product-option-groups select:focus {
border: 1px solid #1cadeb;
}
.formlist,
.wsite-editor .formlist {
min-height: inherit;
}
.form-field-error .wsite-form-radio-container {
border: none;
}
.form-field-error .wsite-form-radio-container input[type="radio"],
.form-field-error .wsite-form-radio-container input[type="checkbox"] {
border: 1px solid red;
}
.wsite-search-element-submit,
.wsite-editor .wsite-search-element-submit {
top: 12px;
margin-top: 0;
}
/* Gallery */
.imageGallery {
overflow: hidden;
}
.imageGallery * {
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
}
.imageGallery .galleryCaptionHolder {
top: 0;
left: 0;
right: 0;
bottom: 0;
height: 100%;
}
.imageGallery .galleryCaptionHolder:hover .galleryCaptionHolderInnerBg {
background: #1894c9;
opacity: .8;
}
.imageGallery .galleryCaptionHolderInner {
height: 100%;
}
.imageGallery .galleryCaptionHolderInnerBg {
background-color: rgba(0, 0, 0, 0.2);
opacity: 1;
-webkit-transition: all 300ms ease;
-moz-transition: all 300ms ease;
-ms-transition: all 300ms ease;
-o-transition: all 300ms ease;
transition: all 300ms ease;
}
.imageGallery .galleryCaptionInnerTextHolder {
position: absolute;
bottom: 0;
width: 100%;
text-align: center;
box-sizing: border-box;
}
.imageGallery .fullImageGalleryCaption .galleryCaptionInnerTextHolder {
position: relative;
}
.imageGallery .galleryCaptionInnerText {
color: #ffffff;
letter-spacing: normal;
text-shadow: none;
font-family: 'Lato', sans-serif;
font-size: 16px;
font-weight: 400;
line-height: 24px;
}
/* Fancybox overrides */
.fancybox-skin {
background: transparent !important;
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
box-shadow: none !important;
}
.fancybox-title {
color: #ffffff;
font-family: 'Lato', sans-serif;
font-size: 15px;
font-weight: normal;
line-height: normal;
}
.fancybox-close,
.fancybox-next span,
.fancybox-prev span {
background: none !important;
width: auto;
height: auto;
}
.fancybox-close:before,
.fancybox-next span:before,
.fancybox-prev span:before {
color: #ffffff !important;
font-family: 'Lato', sans-serif;
font-size: 45px;
font-weight: normal;
line-height: 0.75em;
-webkit-transition: all 300ms ease;
-moz-transition: all 300ms ease;
-ms-transition: all 300ms ease;
-o-transition: all 300ms ease;
transition: all 300ms ease;
}
.fancybox-close:hover:before,
.fancybox-next:hover span:before,
.fancybox-prev:hover span:before {
color: #1cadeb !important;
}
.fancybox-prev span:before {
position: relative;
left: -10px;
content: '\3008';
}
.fancybox-next span:before {
position: relative;
right: -10px;
content: '\3009';
}
.fancybox-close {
top: 20px;
right: 20px;
}
.fancybox-close:before {
content: '\00D7';
}
/* Landing Page */
.landing-page .banner-wrap {
height: 100vh;
min-height: 100vh;
}
.landing-page .banner-wrap .banner {
opacity: 0;
-webkit-transition: all 1000ms ease;
-moz-transition: all 1000ms ease;
-ms-transition: all 1000ms ease;
-o-transition: all 1000ms ease;
transition: all 1000ms ease;
}
.landing-page #contentArrow {
position: absolute;
display: block;
left: 0;
right: 0;
bottom: 0;
width: 40px;
height: 40px;
margin: 0 auto;
border: 3px solid #ffffff;
border-radius: 100%;
opacity: 0.5;
cursor: pointer;
-webkit-transition: all 500ms ease;
-moz-transition: all 500ms ease;
-ms-transition: all 500ms ease;
-o-transition: all 500ms ease;
transition: all 500ms ease;
}
.landing-page #contentArrow span {
position: relative;
top: 8px;
left: 10px;
content: '\203A';
font-family: 'Lato', sans-serif;
font-size: 24px;
font-weight: normal;
line-height: 11px;
}
.landing-page #contentArrow span:before,
.landing-page #contentArrow span:after {
position: relative;
display: block;
background: #ffffff;
width: 4px;
height: 16px;
content: ' ';
}
.landing-page #contentArrow span:before {
top: 5px;
left: 4px;
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
transform: rotate(-45deg);
}
.landing-page #contentArrow span:after {
top: -11px;
left: 13px;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}
.landing-page #contentArrow:hover {
opacity: 1;
}
/* Fade In */
.landing-page.fade-in .banner {
opacity: 1;
}
/* Tall Header Page */
.tall-header-page .banner-wrap {
display: table;
width: 100%;
min-height: 450px;
padding-top: 50px;
text-align: center;
}
.tall-header-page .banner-wrap .container {
height: 450px;
}
.tall-header-page .banner-wrap .banner h2 {
font-size: 70px;
padding-top: 65px;
}
/* Short Header Page */
.short-header-page .banner-wrap {
display: table;
width: 100%;
min-height: 240px;
padding-top: 50px;
text-align: center;
}
.short-header-page .banner-wrap .container {
height: 240px;
}
.short-header-page .banner-wrap .banner h2 {
font-size: 60px;
padding-top: 65px;
}
/* No Header Page */
.no-header-page .main-wrap {
padding-top: 60px;
}
/* Splash Page */
.splash-page {
position: relative;
top: 0;
left: 0;
width: 100%;
height: 100%;
min-height: 100vh;
background: none;
box-sizing: border-box;
}
.splash-page .wrapper {
height: 100%;
}
.splash-page .main-wrap {
position: relative;
display: table;
width: 100%;
height: 100%;
min-height: 100vh;
background: url(default-bg.jpg) no-repeat;
background-attachment: fixed !important;
background-size: cover;
box-sizing: border-box;
}
.splash-page .main-wrap:before {
position: absolute;
top: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.1);
content: ' ';
}
.splash-page .main-wrap > .container {
position: relative;
display: table;
height: 100%;
padding: 6em 0 4em;
box-sizing: border-box;
}
.splash-page .main-wrap .content-wrap {
display: table-cell;
padding: 0;
vertical-align: middle;
background: none;
}
.splash-page .main-wrap .splash-content h2 {
color: #ffffff;
text-transform: uppercase;
font-size: 70px;
}
.splash-page .main-wrap .splash-content p {
padding: 0 0 25px;
color: #ffffff;
font-family: 'Lato', sans-serif;
font-size: 18px;
font-weight: normal;
line-height: 30px;
}
.splash-page .footer-wrap {
display: none;
}
/* Old styles */
#commentArea {
border-top: solid 1px #dadada;
padding-top: 20px;
}
#wsite-content #commentAreaTitle {
font-size: 26px;
}
#wsite-content #commentAreaTitle,
#wsite-content #commentReplyTitle,
#commentArea .blogCommentText p,
.main-wrap .blog-sidebar h2 {
padding: 0;
}
#commentAreaTitle {
font-family: 'fjalla-one', sans-serif;
}
.blogCommentHeading,
.blogCommentText p {
font-family: inherit;
}
.blogCommentWrap {
background: none;
}
.blogCommentWrap .blogCommentHeading,
.blogCommentWrap .blogCommentHeadingInner,
.blogCommentWrap .blogCommentAuthor {
background: none !important;
}
.blogCommentHeading .blogCommentAuthor span.name,
.blogCommentHeading .blogCommentAuthor span.email {
color: #2a92e5 !important;
float: none;
}
.blogCommentHeading {
padding: 0;
margin-bottom: 20px;
}
.blogCommentHeading .blogCommentAuthor,
.blogCommentHeading .blogCommentDate {
float: none;
text-align: left;
height: auto;
line-height: 1;
padding: 0;
}
.blogCommentHeading .blogCommentAuthor {
text-transform: uppercase;
}
.blogCommentHeading .blogCommentDate {
color: #999;
margin-left: 1em;
}
.blogCommentText {
padding: 0;
}
.blogCommentText p {
color: #666;
font-size: 14px;
}
.blogCommentHeading .blogCommentHeadingInner {
height: auto;
}
.blogCommentWrap .blogCommentHeading .blogCommentHeadingInner .blogCommentAuthor .name {
text-shadow: none;
height: auto;
line-height: 1;
color: #3b3b3b !important;
float: none;
}
.blogCommentHeading .blogCommentHeadingInner .blogCommentAuthor .link {
margin: 0 5px;
float: none;
display: inline-block;
}
.blogCommentHeading .blogCommentAuthor,
.blogCommentHeading .blogCommentDate {
float: none;
text-align: left;
height: auto;
line-height: 1;
padding: 0;
display: inline;
vertical-align: baseline;
text-transform: none;
}
I cut some of the code, it was to long to submit, but I only deleted the #mediascreen parts of it :)
It doesn't work because you aren't actually assigning the font:
h2 {
/* font-family: 'Fjalla One', sans-serif; */
font-family: 'PNS', sans-serif;
}
This may be a simple styling issue, but I am stuck. I tried setting a min-height on the LI elements of the dropdown, still no avail. Any assistance would be great. In the screenshot you can see a little white text showing under the logo. Those are obviously the links.
stylesheet:
body {
background-color: #eee;
color: #86888A;
font: 400 16px/28px "Open Sans", Helvetica, Arial, sans-serif;
word-wrap: break-word;
text-rendering: optimizelegibility;
overflow-x: hidden;
}
::selection {
background: #eaeaea;
}
#wrap {
max-width: 900px;
min-width: 280px;
margin: 90px auto;
}
/************************HEADER************/
h1 { color: white;}
#header {
background-color: #121314;
height: 160px;
padding-top: 36px;
}
#header a {
color: white;
text-decoration: none;
-webkit-transition: all 0.6s ease;
-moz-transition: all 0.6s ease;
transition: all 0.6s ease;
text-transform: uppercase;
letter-spacing: 8px;
}
#header a:hover {
color: #f44238;
}
.navbar-brand {
font-size: 2.00em;
}
#media (max-width: 510px) {
.navbar-brand {
letter-spacing: 8px;
font-size: 26px;
}
}
#media (max-width: 450px) {
.navbar-brand {
letter-spacing: 6px !important;
font-size: 18px;
}
}
.navbar-nav > li{
font-size: 0.8em;
}
.nav>li>a:hover {
background-color: transparent;
}
.icon-bar {
background-color: white;
}
.navbar-nav {
z-index: 999;
position: relative;
background-color:#121314
}
#media (max-width: 990px) {
.navbar-header {
float: none;
}
.navbar-left,.navbar-right {
float: none !important;
}
.navbar-toggle {
display: block;
z-index: 999;
}
.navbar-collapse {
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
padding: 0;
}
.navbar-collapse.collapse {
display: none!important;
padding: 0;
}
.navbar-nav {
float: none!important;
margin-top: 7.5px;
}
.navbar-nav>li {
float: none;
}
.navbar-nav>li>a {
padding-top: 10px;
padding-bottom: 10px;
}
.collapse.in{
display:block !important;
padding: 0;
}
}
/*********************************/
.row {
margin-left: 0px !important;
margin-right: 0px !important;
max-width: 900px;
min-width: 280px;
background-color: white;
}
#content {
padding-left: 0px !important;
padding-right: 0px !important;
}
.post {
margin-bottom: 10%;
}
.postheader {
font-size: 2.00em;
margin-bottom: 10px;
}
.postheader a {
text-decoration: none;
color: #21282E;
-webkit-transition: all 0.6s ease;
-moz-transition: all 0.6s ease;
transition: all 0.6s ease;
text-align: left !important;
}
.postheader a:hover {
color: #f44238;
cursor: pointer;
}
#media (max-width: 675px) {
.postheader {
font-size: 1.7em;
text-align: center;
}
}
#media (max-width: 500px) {
.postheader {
font-size: 1.2em;
text-align: center;
}
}
.meta {
font-size: 12px;
}
.postimg {
position: relative;
width:100%;
height: 0;
padding-bottom: 50%;
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
}
.postcontent {
margin: 0 auto;
width: 80%;
text-align: justify;
}
.postcontent p {
margin: 10px 0 40px;
}
.entity {
padding-top: 25px;
}
.more-link {
background-color: black;
width: 60px;
height: 30px;
color: white;
border-radius: 2px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
box-shadow: none;
text-align: center;
padding: 6px;
-webkit-transition: all 0.6s ease;
-moz-transition: all 0.6s ease;
transition: all 0.6s ease;
}
.more-link:hover {
background-color: #f44238;
text-decoration: none;
color: white;
}
hr {
margin-top: 40px;
background-color: none;
height: 1px;
border: none;
}
hr::after {
display: block;
width: 125%;
height: 1px;
background-color: tomato;
position: relative;
left: -25%;
top: 1px;
content: "/";
color: tomato;
text-align: right;
line-height: 0px;
}
hr::before {
display: block;
width: 125%;
height: 1px;
background-color: tomato;
position: relative;
left: -25%;
top: -1px;
content: "|";
color: tomato;
text-indent: -1px;
line-height: 6px;
}
.pagination>li>a {
color: #f44238;
}
.pagination>li>a:hover {
color:#f44238;
}
.pagination>.active>a {
background-color: black;
border: 0px;
}
.pagination>.active>a:hover {
background-color:black;
}
.portfolio-item {
margin-bottom: 25px;
margin-top: 35px;
}
.portfolio-item>h3 {
text-align: center;
}
.portfolio-item>p {
text-align: center;
}
add this to the media query
.navbar-collapse.in {
overflow-y: visible;
}
The Problem is, that if you resize the window to a really small size, the menu button breaks down to the space, which is required for the the dropdown.
A fix could be:
.navbar-toggle {
background-color: rgba(0, 0, 0, 0);
background-image: none;
border: 1px solid rgba(0, 0, 0, 0);
border-radius: 4px;
float: right;
margin-bottom: 8px;
margin-right: 15px;
margin-top: 8px;
padding: 9px 10px;
position: absolute; <--
right: 0; <--
}
.navbar-header {
position: relative;
}
and readd the overflow-x: hidden;
I have a css issue with a media queries menu, I want the dropdown menu to be 100% width but there is a css issue on the left hand side of the menu showing a gap.
Any help would be great!!
please see fiddle here
http://jsfiddle.net/kavbE/
body {
font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;
color: #444;
font-size: 62.5%;
text-rendering: optimizeLegibility;
background: #fff;
}
li {
list-style: none;
}
a:link, a:visited {
color: #4083a9;
outline: none;
text-decoration: none;
}
a:hover {
text-decoration: none;
color: #205f82;
}
#header {
width: 100%;
height: 50px;
background: #333;
background: rgba(47, 47, 47, 0.98);
z-index: 9997;
}
#header-inner {
position: relative;
margin: 0 auto;
padding: 0 12px;
max-width: 970px;
}
#logo {
float: left;
padding: 0px 20px 0 0;
}
#logo a {
display: block;
width: 82px;
height: 50px;
background-repeat: no-repeat;
background-position: 0 50%;
background-image: url(../img/assets/chartego-logo.png);
-webkit-transition: opacity 0.2s ease;
-moz-transition: opacity 0.2s ease;
-o-transition: opacity 0.2s ease;
transition: opacity 0.2s ease;
}
#logo img {
height: 0;
}
#logo a:hover {
opacity: .6;
}
#nav {
margin: 0 0px 0 20px;
color: #777;
}
#nav>li {
float: left;
font-size: 1.25em;
line-height: 1;
}
#nav>li>a {
display: block;
height: 50px;
padding: 0 10px;
line-height: 50px;
text-decoration: none;
color: #999;
}
#nav>li#user-profile {
float: right;
}
#nav>li img {
float: right;
position: relative;
top:13px;
}
#nav li ul.tabs {
width: 180px;
padding: 0 0 10px 0;
background: #333;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
-webkit-border-top-left-radius: 0;
-moz-border-radius-topleft: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
-webkit-box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
-webkit-background-clip: padding-box;
-moz-background-clip: padding-box;
background-clip: padding-box;
z-index: 999;
}
#nav li ul.tabs li a {
display: block;
padding: 5px 15px;
font-size: 12px;
font-weight: normal;
line-height: 2;
color: #999;
background: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
#nav li ul.tabs li a:hover {
color: #ddd;
background: rgba(255, 255, 255, 0.1);
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
#nav li:hover>a, #nav li>a:hover {
color: #ddd;
}
#nav li#user-profile ul.tabs li:first-child a {
font-weight: bold;
}
#toggle-nav {
display: none;
}
#nav li#user-profile span.profile-name {
display: none;
}
/* =============================================================================
NAVIGATION MEDIA MAX 800PX
========================================================================== */
#media screen and (max-width: 800px) {
#header {
position: fixed;
height: 40px;
}
#toggle-nav {
position: absolute;
top: 0;
left: 0px;
display: block;
width: 48px;
height: 40px;
text-indent: -9999px;
background-repeat: no-repeat;
background-position: 15px 50%;
background-image: url(../img/assets/icon-hamburger.png);
opacity: .5;
}
#logo a {
display: block;
height: 40px;
margin: 0 auto 0 auto;
}
#logo {
float: none;
padding-right: 0;
text-align: left;
}
#nav {
float: left;
width: 100%;
margin: 0 0 10px 0;
text-align: left;
}
#nav li {
position: relative;
float: none;
margin-right: 0;
text-align: left;
font-size: 12px;
background: rgba(47, 47, 47, 0.98);
}
#nav li ul.tabs {
display: block;
position: static;
float: none;
width: 100%;
left: 0;
margin: 0;
padding: 0;
background: none;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
#nav li ul.tabs li a {
padding: 15px;
font-size: 12px;
font-weight: normal;
line-height: 1;
text-transform: none;
}
#nav li#user-profile {
float: none;
}
#nav li#user-profile img {
float: left;
margin: 0 8px 0 0;
}
#nav li#user-profile span.profile-name {
display: inline;
}
#nav li a:hover {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
#nav li a:hover {
color: #fff;
}
#nav li ul.tabs li a:hover {
color: #999;
background: none;
}
#nav li#user-profile ul.tabs li:first-child {
display: none;
}
#header-inner {
width: auto;
padding: 0;
}
}
There's some browser-default padding on your #nav list.
Add padding: 0; to #nav and it should fix it.