diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-08-10 15:11:52 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-08-11 07:36:52 -0700 |
commit | 4f60eda3ee033ff7c5687efe923e87ef5890f714 (patch) | |
tree | f15b4cd272aea92853bef27aa0f26565d8bf1e4b /theme/stylesheets/website | |
parent | 6c62d75eae4001793dd10702efca7d0b30e3eb39 (diff) | |
download | gitbook-4f60eda3ee033ff7c5687efe923e87ef5890f714.zip gitbook-4f60eda3ee033ff7c5687efe923e87ef5890f714.tar.gz gitbook-4f60eda3ee033ff7c5687efe923e87ef5890f714.tar.bz2 |
Add style for alerts
Remove style for exercises
Diffstat (limited to 'theme/stylesheets/website')
-rw-r--r-- | theme/stylesheets/website/alerts.less | 31 | ||||
-rwxr-xr-x | theme/stylesheets/website/exercise.less | 52 | ||||
-rwxr-xr-x | theme/stylesheets/website/markdown.less | 5 | ||||
-rw-r--r-- | theme/stylesheets/website/variables.less | 18 |
4 files changed, 54 insertions, 52 deletions
diff --git a/theme/stylesheets/website/alerts.less b/theme/stylesheets/website/alerts.less new file mode 100644 index 0000000..22fc863 --- /dev/null +++ b/theme/stylesheets/website/alerts.less @@ -0,0 +1,31 @@ +.alert { + padding: 15px; + margin-bottom: 20px; + color: #444; + background: #eee; + border-bottom: 5px solid #ddd; +} + +.alert-success { + background: @state-success-bg; + border-color: @state-success-border; + color: @state-success-text; +} + +.alert-info { + background: @state-info-bg; + border-color: @state-info-border; + color: @state-info-text; +} + +.alert-danger { + background: @state-danger-bg; + border-color: @state-danger-border; + color: @state-danger-text; +} + +.alert-warning { + background: @state-warning-bg; + border-color: @state-warning-border; + color: @state-warning-text; +} diff --git a/theme/stylesheets/website/exercise.less b/theme/stylesheets/website/exercise.less deleted file mode 100755 index 7eddb37..0000000 --- a/theme/stylesheets/website/exercise.less +++ /dev/null @@ -1,52 +0,0 @@ -.book .book-body .page-wrapper .page-inner { - section.exercise { - padding: 0px; - margin: 20px 15px; - border: 3px solid #2f8cde; - background: #fff; - color: @content-color; - font-family: sans-serif; - - .header { - padding: 5px 15px; - - color: #fff; - background: #2f8cde; - - h2 { - margin: 0px; - font-size: 20px; - } - } - - .message { - margin: 5px 15px; - } - - .editor { - min-height: 50px; - font-size: 14px; - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; - } - - - .alert { - display: none; - margin: 0px; - margin-bottom: 10px; - padding: 8px 15px; - } - - &.return-error { - .alert-danger { - display: block; - } - } - &.return-success { - .alert-success { - display: block; - } - } - } -}
\ No newline at end of file diff --git a/theme/stylesheets/website/markdown.less b/theme/stylesheets/website/markdown.less index 85e22c4..25e9ae6 100755 --- a/theme/stylesheets/website/markdown.less +++ b/theme/stylesheets/website/markdown.less @@ -1,3 +1,7 @@ +.book .book-body .page-wrapper .page-inner section { + display: none; +} + .book .book-body .page-wrapper .page-inner section.normal { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; @@ -6,6 +10,7 @@ overflow: hidden; line-height: @content-line-height; word-wrap: break-word; + display: block; & > *:first-child { margin-top: 0 !important; diff --git a/theme/stylesheets/website/variables.less b/theme/stylesheets/website/variables.less index 4fba26f..be84bc3 100644 --- a/theme/stylesheets/website/variables.less +++ b/theme/stylesheets/website/variables.less @@ -67,6 +67,24 @@ @dropdown-border-color: @sidebar-divider-color; @dropdown-button-hover-color: @header-button-hover-color; +// States and alerts +@state-success-text: #3c763d; +@state-success-bg: #dff0d8; +@state-success-border: darken(spin(@state-success-bg, -10), 5%); + +@state-info-text: #31708f; +@state-info-bg: #d9edf7; +@state-info-border: darken(spin(@state-info-bg, -10), 7%); + +@state-warning-text: #8a6d3b; +@state-warning-bg: #fcf8e3; +@state-warning-border: darken(spin(@state-warning-bg, -10), 5%); + +@state-danger-text: #a94442; +@state-danger-bg: #f2dede; +@state-danger-border: darken(spin(@state-danger-bg, -10), 5%); + + // Border Radius @border-radius-base: 1px; @border-radius-large: 3px; |