This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
understrap/sass/understrap/understrap.scss

185 lines
2.9 KiB
SCSS
Raw Normal View History

2014-12-19 10:29:56 +00:00
// Some basic padding for all wrappers
2015-03-23 12:48:34 +00:00
.wrapper {
padding:$grid-gutter-width 0;
}
// Reset hero wrapper padding to 0
2016-03-09 09:16:22 +00:00
#wrapper-hero {
2015-08-13 13:06:18 +00:00
padding:0px!important;
2015-03-23 12:48:34 +00:00
}
2014-12-19 10:29:56 +00:00
2014-12-10 18:29:31 +00:00
// Adding basic Wordpress classes to pass the Wordpress.org tests
.sticky, .gallery-caption, .bypostauthor {
font-size:inherit;
2014-12-19 09:04:55 +00:00
}
2015-03-23 12:48:34 +00:00
// Separate sticky wrapper from main content
2016-02-15 12:30:16 +00:00
.wrapper#wrapper-sticky {
2016-03-09 09:16:22 +00:00
border-bottom:1px solid $gray-light;
2016-02-15 12:30:16 +00:00
}
// Adding some contrast background color to footer full widget
2016-03-09 09:16:22 +00:00
#wrapper-footer-full, #wrapper-static-hero{
background-color: $gray-lighter;
}
// Necessary WP classes
2016-02-15 12:30:16 +00:00
.wp-caption {
font-size: inherit;
}
.wp-caption-text {
font-size: inherit;
}
.screen-reader-text {
font-size: inherit;
}
.alignright {
2016-02-15 13:16:39 +00:00
float: right;
2016-02-15 12:30:16 +00:00
}
.alignleft {
2016-02-15 13:16:39 +00:00
float: left;
2016-02-15 12:30:16 +00:00
}
.aligncenter {
2016-02-15 13:16:39 +00:00
margin:0px auto;
2016-02-15 12:30:16 +00:00
}
//Post design
2016-02-15 12:30:16 +00:00
.entry-footer span {
padding-right:10px;
}
//Limit featured image size to 100%
img.wp-post-image, article img, figure {
max-width: 100%;
}
// Skip to content link
a.skip-link{
2016-01-08 08:43:20 +00:00
z-index: 1000;
2016-04-06 11:18:04 +00:00
position: fixed;
top: 0px;
right: 0px;
}
2016-03-09 09:16:22 +00:00
// Reset Jumbotron default margin
.jumbotron {
margin-bottom:0px;
}
2016-04-06 11:18:04 +00:00
//Bootstrap3 to Bootstrap4 "translation"
.menu-item {float:left; width:auto; display:inline;}
2016-04-29 09:23:13 +00:00
//ul.nav.navbar-nav a {
// display: block;
// padding-top: .425rem;
// padding-bottom: .425rem;
//}
2016-04-26 12:05:02 +00:00
// Navbar toggle
//
// Custom button for toggling the `.navbar-collapse`, powered by the collapse
// JavaScript plugin.
// Navbar vertical align
.navbar-toggle {
position: relative;
float: right;
margin-right: $navbar-padding-horizontal;
padding: 9px 10px;
background-color: transparent;
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
border: 1px solid transparent;
// We remove the `outline` here, but later compensate by attaching `:hover`
// styles to `:focus`.
&:focus {
outline: 0;
}
// Bars
.icon-bar {
display: block;
width: 22px;
height: 2px;
border-radius: 1px;
}
.icon-bar + .icon-bar {
margin-top: 4px;
}
}
.navbar-dark {
.navbar-toggle {
border:1px solid #fff;
}
.icon-bar {
border-bottom:1px solid #fff;
}
.dropdown-menu {
2016-04-29 09:23:13 +00:00
background-color: $gray-dark;
2016-04-26 12:05:02 +00:00
}
}
.navbar #main-menu {
float:left;
}
2016-04-29 09:23:13 +00:00
.navbar-nav {
.nav-item {
float: left;
}
.nav-link {
display: block;
padding-top: .425rem;
padding-bottom: .425rem;
+ .nav-link {
margin-left: 0rem;
}
}
.nav-item + .nav-item {
margin-left: 0rem;
}
}
.nav-link {
margin-left:.425rem;
margin-right:.425rem;
}
2016-05-15 18:42:42 +00:00
// Fixing BS dropdown in a dropdown
.dropdown-menu .dropdown-menu {
position:relative;
display:block;
border: none;
box-shadow: none;
margin-left:10px;
width:140px;
li {
list-style: square;
padding-left: 0px;
a {
}
}
}
.dropdown-menu .menu-item {
width:100%;
a:hover {
background-color:$brand-primary;
}
}