2014-06-04 11:14:35 -04:00
|
|
|
//
|
|
|
|
// Scaffolding
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Reset the box-sizing
|
|
|
|
//
|
|
|
|
// Heads up! This reset may cause conflicts with some third-party widgets.
|
|
|
|
// For recommendations on resolving such conflicts, see
|
|
|
|
// http://getbootstrap.com/getting-started/#third-box-sizing
|
|
|
|
* {
|
2019-12-05 14:09:31 -05:00
|
|
|
.box-sizing(border-box);
|
|
|
|
}
|
2014-06-04 11:14:35 -04:00
|
|
|
*:before,
|
|
|
|
*:after {
|
|
|
|
.box-sizing(border-box);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Body reset
|
|
|
|
|
|
|
|
html {
|
2014-06-04 12:46:22 -04:00
|
|
|
//font-size: 62.5%;
|
2019-12-05 14:09:31 -05:00
|
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
2017-10-26 10:47:39 -04:00
|
|
|
height: 100%;
|
2014-06-04 11:14:35 -04:00
|
|
|
}
|
|
|
|
|
2022-10-12 10:19:18 -04:00
|
|
|
// Prevent potential for layout shifts on a page with fixed 100% height. This
|
|
|
|
// can happen, for example, with the Grammarly extension in Firefox.
|
|
|
|
html.fixed-size-document {
|
|
|
|
position: fixed;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2014-06-04 11:14:35 -04:00
|
|
|
body {
|
|
|
|
font-family: @font-family-base;
|
|
|
|
font-size: @font-size-base;
|
|
|
|
line-height: @line-height-base;
|
|
|
|
color: @text-color;
|
|
|
|
background-color: @body-bg;
|
2017-10-26 10:47:39 -04:00
|
|
|
min-height: 100%;
|
2017-10-06 09:22:06 -04:00
|
|
|
position: relative;
|
2017-10-17 07:24:47 -04:00
|
|
|
& > .content {
|
2022-03-09 05:26:40 -05:00
|
|
|
min-height: 100vh;
|
2017-12-21 06:03:27 -05:00
|
|
|
padding-top: @header-height + @content-margin-vertical;
|
2017-10-17 07:24:47 -04:00
|
|
|
}
|
2022-03-01 09:28:01 -05:00
|
|
|
|
|
|
|
.thin-footer {
|
|
|
|
padding-bottom: @footer-height;
|
|
|
|
}
|
2014-06-04 11:14:35 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Reset fonts for relevant elements
|
|
|
|
input,
|
|
|
|
button,
|
|
|
|
select,
|
|
|
|
textarea {
|
|
|
|
font-family: inherit;
|
|
|
|
font-size: inherit;
|
|
|
|
line-height: inherit;
|
2023-01-09 07:53:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Keep textarea within horizontal container when resizing
|
|
|
|
textarea {
|
|
|
|
resize: vertical;
|
2014-06-04 11:14:35 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Links
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: @link-color;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @link-hover-color;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
.tab-focus();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Figures
|
|
|
|
//
|
|
|
|
// We reset this here because previously Normalize had no `figure` margins. This
|
|
|
|
// ensures we don't break anyone's use of the element.
|
|
|
|
|
|
|
|
figure {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Images
|
|
|
|
|
|
|
|
img {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Responsive images (ensure images don't scale beyond their parents)
|
|
|
|
.img-responsive {
|
|
|
|
.img-responsive();
|
|
|
|
}
|
|
|
|
|
|
|
|
// Rounded corners
|
|
|
|
.img-rounded {
|
|
|
|
border-radius: @border-radius-large;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Image thumbnails
|
|
|
|
//
|
|
|
|
// Heads up! This is mixin-ed into thumbnails.less for `.thumbnail`.
|
|
|
|
.img-thumbnail {
|
|
|
|
padding: @thumbnail-padding;
|
|
|
|
line-height: @line-height-base;
|
|
|
|
background-color: @thumbnail-bg;
|
|
|
|
border: 1px solid @thumbnail-border;
|
|
|
|
border-radius: @thumbnail-border-radius;
|
2019-12-05 14:09:31 -05:00
|
|
|
.transition(all 0.2s ease-in-out);
|
2014-06-04 11:14:35 -04:00
|
|
|
|
|
|
|
// Keep them at most 100% wide
|
|
|
|
.img-responsive(inline-block);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Perfect circle
|
|
|
|
.img-circle {
|
|
|
|
border-radius: 50%; // set radius in percents
|
|
|
|
}
|
|
|
|
|
|
|
|
// Horizontal rules
|
|
|
|
|
|
|
|
hr {
|
2019-12-05 14:09:31 -05:00
|
|
|
margin-top: @line-height-computed;
|
2014-06-04 11:14:35 -04:00
|
|
|
margin-bottom: @line-height-computed;
|
|
|
|
border: 0;
|
|
|
|
border-top: 1px solid @hr-border;
|
2015-01-29 05:44:42 -05:00
|
|
|
&.thin {
|
2019-12-05 14:09:31 -05:00
|
|
|
margin-top: @line-height-computed / 2;
|
|
|
|
margin-bottom: @line-height-computed / 2;
|
2015-01-29 05:44:42 -05:00
|
|
|
}
|
2014-06-04 11:14:35 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Only display content to screen readers
|
|
|
|
//
|
|
|
|
// See: http://a11yproject.com/posts/how-to-hide-content/
|
2022-10-03 09:22:27 -04:00
|
|
|
@sr-only: {
|
2014-06-04 11:14:35 -04:00
|
|
|
position: absolute;
|
|
|
|
width: 1px;
|
|
|
|
height: 1px;
|
|
|
|
margin: -1px;
|
|
|
|
padding: 0;
|
|
|
|
overflow: hidden;
|
2019-12-05 14:09:31 -05:00
|
|
|
clip: rect(0, 0, 0, 0);
|
2014-06-04 11:14:35 -04:00
|
|
|
border: 0;
|
2022-10-03 09:22:27 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
.sr-only {
|
|
|
|
@sr-only();
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: @screen-xs-max) {
|
|
|
|
.sr-only-xs {
|
|
|
|
@sr-only();
|
|
|
|
}
|
2014-06-04 11:14:35 -04:00
|
|
|
}
|
2014-06-06 12:47:52 -04:00
|
|
|
|
|
|
|
.content {
|
2017-10-23 11:18:16 -04:00
|
|
|
padding-top: @content-margin-vertical;
|
|
|
|
padding-bottom: @content-margin-vertical;
|
2014-06-06 12:47:52 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.content-alt {
|
2017-09-25 06:48:42 -04:00
|
|
|
background-color: @content-alt-bg-color;
|
2014-06-06 12:47:52 -04:00
|
|
|
}
|
2014-06-06 14:19:53 -04:00
|
|
|
|
|
|
|
.row-spaced {
|
2014-06-09 03:54:14 -04:00
|
|
|
margin-top: @line-height-computed;
|
|
|
|
}
|
|
|
|
|
|
|
|
.row-spaced-small {
|
|
|
|
margin-top: @line-height-computed / 2;
|
2014-06-06 14:19:53 -04:00
|
|
|
}
|
2014-06-09 03:54:14 -04:00
|
|
|
|
2018-04-12 17:11:52 -04:00
|
|
|
.row-spaced-large {
|
|
|
|
margin-top: @line-height-computed * 2;
|
|
|
|
}
|