Theme Files Update
This commit is contained in:
parent
63d3658bb2
commit
8665d71482
5 changed files with 121 additions and 7 deletions
44
assets/scss/_admonition.scss
Normal file
44
assets/scss/_admonition.scss
Normal file
|
@ -0,0 +1,44 @@
|
|||
.admonition{
|
||||
position: relative;
|
||||
margin: 1rem 0 1.5rem 0;
|
||||
border-left: .25rem solid map-get($admonition-color, 'note');
|
||||
box-shadow: 5px 5px 10px -5px rgba(0,0,0,0.5);
|
||||
border-radius: 0 8px 8px 0;
|
||||
overflow: auto;
|
||||
.admonition-title{
|
||||
padding: .25rem .50rem;
|
||||
border-bottom: 1px solid map-get($admonition-background, 'note');
|
||||
background-color: rgba(map-get($admonition-background, 'note'), 0.1);
|
||||
color: map-get($admonition-color, 'note');
|
||||
.icon{
|
||||
display: inline-block;
|
||||
padding: 0 10px 0 0;
|
||||
font-size: 0.85rem;
|
||||
color: map-get($admonition-color, 'note');
|
||||
}
|
||||
}
|
||||
.admonition-content{
|
||||
padding: .25rem .50rem;
|
||||
}
|
||||
@each $type, $color in $admonition-color {
|
||||
&.#{$type} {
|
||||
border-left-color: $color;
|
||||
.admonition-title {
|
||||
color: $color;
|
||||
}
|
||||
.icon {
|
||||
color: $color;
|
||||
}
|
||||
}
|
||||
}
|
||||
@each $type, $color in $admonition-background {
|
||||
&.#{$type} {
|
||||
background-color: $color;
|
||||
|
||||
.admonition-title {
|
||||
border-bottom-color: $color;
|
||||
background-color: rgba($color, 0.1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -13,6 +13,30 @@ $typewriter: hsl(172, 100%, 36%);
|
|||
$fonts: "Trebuchet MS", Verdana, "Verdana Ref", "Segoe UI", Candara, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;
|
||||
$code-fonts: Consolas, "Andale Mono WT", "Andale Mono", Menlo, Monaco, "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, "YaHei Consolas Hybrid", monospace, "Segoe UI Emoji", "PingFang SC", "Microsoft YaHei";
|
||||
|
||||
//Admonition
|
||||
//
|
||||
$admonition-background: (
|
||||
'note': rgba(68, 138, 255, 0.1),
|
||||
'info': rgba(0, 184, 212, 0.1),
|
||||
'tip': rgba(0, 191, 165, 0.1),
|
||||
'success': rgba(0, 200, 83, 0.1),
|
||||
'warning': rgba(255, 145, 0, 0.1),
|
||||
'failure': rgba(255, 82, 82, 0.1),
|
||||
'danger': rgba(255, 23, 68, 0.1),
|
||||
'bug': rgba(245, 0, 87, 0.1),
|
||||
) !default;
|
||||
|
||||
$admonition-color: (
|
||||
'note': #448aff,
|
||||
'info': #00b8d4,
|
||||
'tip': #00bfa5,
|
||||
'success': #00c853,
|
||||
'warning': #ff9100,
|
||||
'failure': #ff5252,
|
||||
'danger': #ff1744,
|
||||
'bug': #f50057,
|
||||
) !default;
|
||||
|
||||
// Mixins
|
||||
//
|
||||
@mixin dimmed {
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
@import "syntax.scss";
|
||||
@import "animate.scss";
|
||||
@import "_scroll.scss";
|
||||
@import "_admonition.scss";
|
||||
@import "_mathjax.scss";
|
||||
|
||||
/* Webkit Scrollbar Customize */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue