Guide_3DS/_sass/_notices.scss
2017-05-10 16:05:51 -04:00

126 lines
No EOL
2.3 KiB
SCSS

/* ==========================================================================
NOTICE TEXT BLOCKS
========================================================================== */
/**
* Default Kramdown usage (no indents!):
* <div class="notice" markdown="1">
* #### Headline for the Notice
* Text for the notice
* </div>
*/
@mixin notice($notice-color) {
margin: 2em 0 !important; /* override*/
padding: 1em;
font-family: $global-font-family;
font-size: $type-size-6 !important;
font-weight: bold;
text-indent: initial; /* override*/
background-color: mix($body-color, $notice-color, 45%);
border-radius: $border-radius;
box-shadow: 0 1px 1px rgba($notice-color, 0.25);
h4 {
margin-top: 0 !important; /* override*/
margin-bottom: 0.75em;
}
@at-root .page__content #{&} h4 {
/* using at-root to override .page-content h4 font size*/
margin-bottom: 0;
font-size: 1em;
}
p {
&:last-child {
margin-bottom: 0 !important; /* override*/
}
}
h4 + p {
/* remove space above paragraphs that appear directly after notice headline*/
margin-top: 0;
padding-top: 0;
}
a {
color: mix(#fff, $notice-color, 30%);
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
ul {
&:last-child {
margin-bottom: 0; /* override*/
}
}
}
/* Default notice */
.notice {
@include notice($nord3);
}
/* Primary notice */
.notice--primary {
@include notice($nord8);
}
/* Info notice */
.notice--info {
@include notice($info-color);
}
/* Warning notice */
.notice--warning {
@include notice($warning-color);
}
/* Success notice */
.notice--success {
@include notice($success-color);
}
/* Danger notice */
.notice--danger {
@include notice($danger-color);
}
.screenshot_image{
position: relative;
width: auto;
display: inline-block;
position: relative;
font-family: $monospace;
font-size: $type-size-7;
line-height: 1.8;
border: 2px solid $border-color;
border-radius: $border-radius;
background-color: $border-color;
box-shadow: $box-shadow;
&:before {
position: absolute;
top: 0;
right: 0;
padding: 0.5em;
background-color: $nord6;
content: "\f08e";
font-family: "fontawesome" !important;
line-height: 1;
text-transform: none;
speak: none;
color: $background-color;
}
}