forked from PrestaShop/open-source
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request PrestaShop#2 from PrestaShop/fix-notices
- Loading branch information
Showing
5 changed files
with
230 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.highlight { | ||
margin: 1.5rem 0; | ||
background: #f7f7f8; | ||
overflow-x: auto; | ||
position: relative; | ||
} | ||
|
||
code { | ||
color: #444; | ||
margin: 0; | ||
} | ||
|
||
pre { | ||
padding: 1rem; | ||
margin: 0; | ||
border: 0; | ||
border-radius: 2px; | ||
line-height: 1.15; | ||
|
||
code { | ||
display: block; | ||
color: #333; | ||
background: inherit; | ||
white-space: inherit; | ||
border: 0; | ||
padding: 0.5em; // same as in highlighter | ||
font-size: 14px; | ||
line-height: 1.45; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
/* notices */ | ||
|
||
@mixin notice-border($color) { | ||
// kept in case we change our mind later | ||
//border-left: 5px solid $color; | ||
} | ||
|
||
.notices { | ||
margin: 1.5rem 0; | ||
position: relative; | ||
line-height: 1.6; | ||
padding: 1rem 0 1rem 2.1rem; | ||
color: $text-color; | ||
font-size: 90%; | ||
|
||
/*@media (min-width: $tocBreakpoint) { | ||
margin: 2rem 2rem; | ||
}*/ | ||
|
||
& + & { | ||
margin-top: -1.5rem; | ||
} | ||
|
||
|
||
p { | ||
font-size: 1em; | ||
margin: { | ||
top: 0; | ||
bottom: 0; | ||
} | ||
} | ||
|
||
ul, ol { | ||
margin: { | ||
top: .5rem; | ||
bottom: .5rem; | ||
} | ||
|
||
li { | ||
margin-bottom: 0 !important; | ||
} | ||
|
||
&:last-child { | ||
margin-bottom: 0 !important; | ||
} | ||
} | ||
|
||
// code blocks | ||
pre { | ||
code { | ||
font-size: 90%; | ||
} | ||
|
||
&:last-child { | ||
margin-bottom: .8rem; | ||
} | ||
} | ||
|
||
// icon | ||
&:before { | ||
position: absolute; | ||
top: .75rem; | ||
font-family: $icon-font; | ||
font-size: 1.2rem; | ||
content: ''; | ||
left: 0.3rem; | ||
} | ||
|
||
&.info { | ||
@include notice-border(#f0b37e); | ||
//background: #fff2db; | ||
|
||
&:before { | ||
color: #f5a132; | ||
} | ||
} | ||
|
||
&.warning { | ||
@include notice-border(rgba(217, 83, 79, 0.8)); | ||
|
||
&, & p { | ||
color: #8d0c05; | ||
} | ||
|
||
&:before { | ||
content: '\F071'; | ||
color: rgb(217, 83, 79); | ||
} | ||
} | ||
|
||
&.note { | ||
@include notice-border(#6ab0de); | ||
|
||
&:before { | ||
content: '\F05A'; | ||
color: #4ea5de; | ||
} | ||
} | ||
|
||
&.tip { | ||
@include notice-border(rgba(92, 184, 92, 0.8)); | ||
|
||
&:before { | ||
content: '\f0eb'; | ||
color: #4ca64c; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/* Background */ .chroma { } | ||
/* Other */ .chroma .x { } | ||
/* Error */ .chroma .err { color: #a61717; background-color: #e3d2d2 } | ||
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } | ||
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; } | ||
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc } | ||
/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } | ||
/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } | ||
/* Keyword */ .chroma .k { color: #d73a49 } | ||
/* KeywordConstant */ .chroma .kc { color: #005cc5 } | ||
/* KeywordDeclaration */ .chroma .kd { color: #24292e; font-weight: bold } | ||
/* KeywordNamespace */ .chroma .kn { color: #24292e; font-weight: bold } | ||
/* KeywordPseudo */ .chroma .kp { color: #24292e; font-weight: bold } | ||
/* KeywordReserved */ .chroma .kr { color: #24292e; font-weight: bold } | ||
/* KeywordType */ .chroma .kt { color: #445588; font-weight: bold } | ||
/* Name */ .chroma .n { } | ||
/* NameAttribute */ .chroma .na { color: #6f42c1 } | ||
/* NameBuiltin */ .chroma .nb { color: #0086b3 } | ||
/* NameBuiltinPseudo */ .chroma .bp { color: #999999 } | ||
/* NameClass */ .chroma .nc { color: #445588 } | ||
/* NameConstant */ .chroma .no { color: #008080 } | ||
/* NameDecorator */ .chroma .nd { color: #3c5d5d } | ||
/* NameEntity */ .chroma .ni { color: #800080 } | ||
/* NameException */ .chroma .ne { color: #990000 } | ||
/* NameFunction */ .chroma .nf { color: #6f42c1; } | ||
/* NameFunctionMagic */ .chroma .fm { } | ||
/* NameLabel */ .chroma .nl { color: #990000; font-weight: bold } | ||
/* NameNamespace */ .chroma .nn { color: #555555 } | ||
/* NameOther */ .chroma .nx { color: #e36209 } | ||
/* NameProperty */ .chroma .py { } | ||
/* NameTag */ .chroma .nt { color: #000080 } | ||
/* NameVariable */ .chroma .nv { color: #24292e } | ||
/* NameVariableClass */ .chroma .vc { color: #008080 } | ||
/* NameVariableGlobal */ .chroma .vg { color: #008080 } | ||
/* NameVariableInstance */ .chroma .vi { color: #008080 } | ||
/* NameVariableMagic */ .chroma .vm { } | ||
/* Literal */ .chroma .l { } | ||
/* LiteralDate */ .chroma .ld { } | ||
/* LiteralString */ .chroma .s { color: #032f62 } | ||
/* LiteralStringAffix */ .chroma .sa { color: #032f62 } | ||
/* LiteralStringBacktick */ .chroma .sb { color: #dd1144 } | ||
/* LiteralStringChar */ .chroma .sc { color: #032f62 } | ||
/* LiteralStringDelimiter */ .chroma .dl { color: #dd1144 } | ||
/* LiteralStringDoc */ .chroma .sd { color: #6a737d } | ||
/* LiteralStringDouble */ .chroma .s2 { color: #032f62 } | ||
/* LiteralStringEscape */ .chroma .se { color: #dd1144 } | ||
/* LiteralStringHeredoc */ .chroma .sh { color: #032f62 } | ||
/* LiteralStringInterpol */ .chroma .si { color: #dd1144 } | ||
/* LiteralStringOther */ .chroma .sx { color: #dd1144 } | ||
/* LiteralStringRegex */ .chroma .sr { color: #009926 } | ||
/* LiteralStringSingle */ .chroma .s1 { color: #032f62 } | ||
/* LiteralStringSymbol */ .chroma .ss { color: #990073 } | ||
/* LiteralNumber */ .chroma .m { color: #009999 } | ||
/* LiteralNumberBin */ .chroma .mb { color: #009999 } | ||
/* LiteralNumberFloat */ .chroma .mf { color: #009999 } | ||
/* LiteralNumberHex */ .chroma .mh { color: #009999 } | ||
/* LiteralNumberInteger */ .chroma .mi { color: #009999 } | ||
/* LiteralNumberIntegerLong */ .chroma .il { color: #009999 } | ||
/* LiteralNumberOct */ .chroma .mo { color: #009999 } | ||
/* Operator */ .chroma .o { color: #24292e } | ||
/* OperatorWord */ .chroma .ow { color: #24292e } | ||
/* Punctuation */ .chroma .p { } | ||
/* Comment */ .chroma .c { color: #6a737d } | ||
/* CommentHashbang */ .chroma .ch { color: #6a737d } | ||
/* CommentMultiline */ .chroma .cm { color: #6a737d } | ||
/* CommentSingle */ .chroma .c1 { color: #6a737d } | ||
/* CommentSpecial */ .chroma .cs { color: #6a737d; font-weight: bold } | ||
/* CommentPreproc */ .chroma .cp { color: #032f62 } | ||
/* CommentPreprocFile */ .chroma .cpf { color: #999999; font-style: italic } | ||
/* Generic */ .chroma .g { } | ||
/* GenericDeleted */ .chroma .gd { color: #24292e; background-color: #ffdddd } | ||
/* GenericEmph */ .chroma .ge { color: #24292e; font-style: italic } | ||
/* GenericError */ .chroma .gr { color: #aa0000 } | ||
/* GenericHeading */ .chroma .gh { color: #999999 } | ||
/* GenericInserted */ .chroma .gi { color: #24292e; background-color: #ddffdd } | ||
/* GenericOutput */ .chroma .go { color: #888888 } | ||
/* GenericPrompt */ .chroma .gp { color: #555555 } | ||
/* GenericStrong */ .chroma .gs { font-weight: bold } | ||
/* GenericSubheading */ .chroma .gu { color: #aaaaaa } | ||
/* GenericTraceback */ .chroma .gt { color: #aa0000 } | ||
/* GenericUnderline */ .chroma .gl { text-decoration: underline } | ||
/* TextWhitespace */ .chroma .w { color: #bbbbbb } | ||
|
||
/* PHP only */ | ||
/* CommentPreproc */ .chroma .language-php .cp { color: #999999; font-style: italic } |