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

143 lines
2.4 KiB
SCSS
Raw Normal View History

2014-12-19 10:29:56 +00:00
// Some basic padding for all wrappers
2017-01-06 08:08:34 +00:00
.wrapper {
2017-08-11 15:29:45 +00:00
padding: $grid-gutter-width 0; }
2015-03-23 12:48:34 +00:00
// Reset hero wrapper padding to 0
#wrapper-hero { padding: 0px !important; }
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,
2017-01-06 08:08:34 +00:00
.bypostauthor {
font-size: inherit;
}
2015-03-23 12:48:34 +00:00
// Separate sticky wrapper from main content
2017-08-11 15:29:45 +00:00
.wrapper#wrapper-sticky { border-bottom: 1px solid $gray-300; }
// Adding some contrast background color to footer full widget
#wrapper-footer-full,
2017-08-11 15:29:45 +00:00
#wrapper-static-hero { background-color: $gray-200; }
// Necessary WP classes
.wp-caption { font-size: inherit; }
2016-02-15 12:30:16 +00:00
.wp-caption-text { font-size: inherit; }
2016-02-15 12:30:16 +00:00
.screen-reader-text { font-size: inherit; }
2016-02-15 12:30:16 +00:00
.alignleft {
display: inline;
float: left;
margin-right: 1.5em;
}
.alignright {
display: inline;
float: right;
margin-left: 1.5em;
}
.aligncenter { margin: 0px auto; }
// Post design
.entry-footer span { padding-right: 10px; }
// Limit featured image size to 100%
img.wp-post-image,
article img,
figure,
img,
#secondary img {
max-width: 100%;
height: auto;
}
// Skip to content link
a.skip-link {
position: fixed;
2016-11-01 18:54:30 +00:00
z-index: 1000;
top: 0px;
right: 0px;
}
2016-03-09 09:16:22 +00:00
// Reset Jumbotron default margin
.jumbotron { margin-bottom: 0px; }
2016-04-26 12:05:02 +00:00
// Bootstrap3 to Bootstrap4 "translation"
.menu-item {
float: left;
display: inline;
2016-11-01 18:54:30 +00:00
width: auto;
}
2016-04-26 12:05:02 +00:00
2017-01-06 19:41:04 +00:00
.bg-primary .dropdown-menu {
2017-08-11 15:29:45 +00:00
background-color:theme-color("primary");
2017-01-06 19:41:04 +00:00
}
.bg-success .dropdown-menu {
2017-08-11 15:29:45 +00:00
background-color:theme-color("success");
2017-01-06 19:41:04 +00:00
}
.bg-inverse .dropdown-menu {
2017-08-11 15:29:45 +00:00
background-color:$navbar-dark-color;
2017-01-06 19:41:04 +00:00
}
2017-01-06 19:45:53 +00:00
// Fixing BS dropdown in a dropdown
.navbar-toggleable-md .navbar-nav .dropdown-menu {
float:left;
}
2017-01-06 19:45:53 +00:00
.dropdown-menu .dropdown-menu {
position: relative;
display: block;
margin-left: 10px;
border: none;
box-shadow: none;
li {
padding-left: 0px;
list-style: square;
}
}
.dropdown-menu .menu-item {
width: 100%;
a.nav-link{
}
a.nav-link:hover {
2017-08-11 15:29:45 +00:00
background-color: theme-color("primary");
2017-01-06 19:45:53 +00:00
}
}
2016-11-04 03:39:51 +00:00
button,
[type="button"],
[type="reset"],
[type="submit"] {
cursor: pointer;
}
2016-12-07 08:14:35 +00:00
// Clearing after gallery
.gallery:after {
content: "";
display: table;
clear: both;
}
// Clearing after widget
2017-01-24 18:06:45 +00:00
aside.widget{clear:both;}
2017-01-25 09:24:08 +00:00
// Makes widgets in hero slider 100% width
2017-01-24 18:06:45 +00:00
#wrapper-hero .carousel-inner .textwidget {
width:100%;
}
// Adjusting brand link if h1 is used
2017-02-04 10:17:24 +00:00
h1.navbar-brand {
a {
color:inherit;
2017-02-04 10:17:24 +00:00
}
a:hover {
text-decoration:none;
}
2017-01-24 18:06:45 +00:00
}