diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-26 09:41:26 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-26 09:41:26 +0100 |
commit | d3d64f636c859f7f01a64f7774cf70bd8ccdc562 (patch) | |
tree | 4f7731f37c3a793d187b0ab1cd77680e69534c6c /theme/stylesheets | |
parent | 4cb9cbb5ae3aa8f9211ffa3ac5e3d34232c0ca4f (diff) | |
parent | eef072693b17526347c37b66078a5059c71caa31 (diff) | |
download | gitbook-d3d64f636c859f7f01a64f7774cf70bd8ccdc562.zip gitbook-d3d64f636c859f7f01a64f7774cf70bd8ccdc562.tar.gz gitbook-d3d64f636c859f7f01a64f7774cf70bd8ccdc562.tar.bz2 |
Merge pull request #1109 from GitbookIO/3.0.0
Version 3.0.0
Diffstat (limited to 'theme/stylesheets')
23 files changed, 0 insertions, 1729 deletions
diff --git a/theme/stylesheets/base/mixins.less b/theme/stylesheets/base/mixins.less deleted file mode 100644 index e82f41e..0000000 --- a/theme/stylesheets/base/mixins.less +++ /dev/null @@ -1,32 +0,0 @@ -@import "../../../node_modules/gitbook-markdown-css/less/mixin.less"; - -.link-inherit { - color: inherit; - - &:hover, &:focus { - color: inherit; - } -} - -.transition-transform(@transition) { - -webkit-transition: -webkit-transform @transition; - -moz-transition: -moz-transform @transition; - -o-transition: -o-transform @transition; - transition: transform @transition; -} - -.hidden { - display: none; -} - -.box-sizing(@value) { - -moz-box-sizing: @value; - box-sizing: @value; -} - -.text-adjust(@value) { - text-size-adjust: @value; - -ms-text-size-adjust: @value; - -webkit-text-size-adjust: @value; -} - diff --git a/theme/stylesheets/base/normalize.less b/theme/stylesheets/base/normalize.less deleted file mode 100644 index 559de6a..0000000 --- a/theme/stylesheets/base/normalize.less +++ /dev/null @@ -1,396 +0,0 @@ -/*! normalize.css v2.1.0 | MIT License | git.io/normalize */ - -/* ========================================================================== - HTML5 display definitions - ========================================================================== */ - -/** - * Correct `block` display not defined in IE 8/9. - */ - -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -main, -nav, -section, -summary { - display: block; -} - -/** - * Correct `inline-block` display not defined in IE 8/9. - */ - -audio, -canvas, -video { - display: inline-block; -} - -/** - * Prevent modern browsers from displaying `audio` without controls. - * Remove excess height in iOS 5 devices. - */ - -audio:not([controls]) { - display: none; - height: 0; -} - -/** - * Address styling not present in IE 8/9. - */ - -[hidden] { - display: none; -} - -/* ========================================================================== - Base - ========================================================================== */ - -/** - * 1. Set default font family to sans-serif. - * 2. Prevent iOS text size adjust after orientation change, without disabling - * user zoom. - */ - -html { - font-family: sans-serif; /* 1 */ - -webkit-text-size-adjust: 100%; /* 2 */ - -ms-text-size-adjust: 100%; /* 2 */ -} - -/** - * Remove default margin. - */ - -body { - margin: 0; -} - -/* ========================================================================== - Links - ========================================================================== */ - -/** - * Address `outline` inconsistency between Chrome and other browsers. - */ - -a:focus { - outline: thin dotted; -} - -/** - * Improve readability when focused and also mouse hovered in all browsers. - */ - -a:active, -a:hover { - outline: 0; -} - -/* ========================================================================== - Typography - ========================================================================== */ - -/** - * Address variable `h1` font-size and margin within `section` and `article` - * contexts in Firefox 4+, Safari 5, and Chrome. - */ - -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -/** - * Address styling not present in IE 8/9, Safari 5, and Chrome. - */ - -abbr[title] { - border-bottom: 1px dotted; -} - -/** - * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome. - */ - -b, -strong { - font-weight: bold; -} - -/** - * Address styling not present in Safari 5 and Chrome. - */ - -dfn { - font-style: italic; -} - -/** - * Address differences between Firefox and other browsers. - */ - -hr { - -moz-box-sizing: content-box; - box-sizing: content-box; - height: 0; -} - -/** - * Address styling not present in IE 8/9. - */ - -mark { - background: #ff0; - color: #000; -} - -/** - * Correct font family set oddly in Safari 5 and Chrome. - */ - -code, -kbd, -pre, -samp { - font-family: monospace, serif; - font-size: 1em; -} - -/** - * Improve readability of pre-formatted text in all browsers. - */ - -pre { - white-space: pre-wrap; -} - -/** - * Set consistent quote types. - */ - -q { - quotes: "\201C" "\201D" "\2018" "\2019"; -} - -/** - * Address inconsistent and variable font size in all browsers. - */ - -small { - font-size: 80%; -} - -/** - * Prevent `sub` and `sup` affecting `line-height` in all browsers. - */ - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup { - top: -0.5em; -} - -sub { - bottom: -0.25em; -} - -/* ========================================================================== - Embedded content - ========================================================================== */ - -/** - * Remove border when inside `a` element in IE 8/9. - */ - -img { - border: 0; -} - -/** - * Correct overflow displayed oddly in IE 9. - */ - -svg:not(:root) { - overflow: hidden; -} - -/* ========================================================================== - Figures - ========================================================================== */ - -/** - * Address margin not present in IE 8/9 and Safari 5. - */ - -figure { - margin: 0; -} - -/* ========================================================================== - Forms - ========================================================================== */ - -/** - * Define consistent border, margin, and padding. - */ - -fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; -} - -/** - * 1. Correct `color` not being inherited in IE 8/9. - * 2. Remove padding so people aren't caught out if they zero out fieldsets. - */ - -legend { - border: 0; /* 1 */ - padding: 0; /* 2 */ -} - -/** - * 1. Correct font family not being inherited in all browsers. - * 2. Correct font size not being inherited in all browsers. - * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome. - */ - -button, -input, -select, -textarea { - font-family: inherit; /* 1 */ - font-size: 100%; /* 2 */ - margin: 0; /* 3 */ -} - -/** - * Address Firefox 4+ setting `line-height` on `input` using `!important` in - * the UA stylesheet. - */ - -button, -input { - line-height: normal; -} - -/** - * Address inconsistent `text-transform` inheritance for `button` and `select`. - * All other form control elements do not inherit `text-transform` values. - * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+. - * Correct `select` style inheritance in Firefox 4+ and Opera. - */ - -button, -select { - text-transform: none; -} - -/** - * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` - * and `video` controls. - * 2. Correct inability to style clickable `input` types in iOS. - * 3. Improve usability and consistency of cursor style between image-type - * `input` and others. - */ - -button, -html input[type="button"], /* 1 */ -input[type="reset"], -input[type="submit"] { - -webkit-appearance: button; /* 2 */ - cursor: pointer; /* 3 */ -} - -/** - * Re-set default cursor for disabled elements. - */ - -button[disabled], -html input[disabled] { - cursor: default; -} - -/** - * 1. Address box sizing set to `content-box` in IE 8/9. - * 2. Remove excess padding in IE 8/9. - */ - -input[type="checkbox"], -input[type="radio"] { - box-sizing: border-box; /* 1 */ - padding: 0; /* 2 */ -} - -/** - * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome. - * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome - * (include `-moz` to future-proof). - */ - -input[type="search"] { - -webkit-appearance: textfield; /* 1 */ - -moz-box-sizing: content-box; - -webkit-box-sizing: content-box; /* 2 */ - box-sizing: content-box; -} - -/** - * Remove inner padding and search cancel button in Safari 5 and Chrome - * on OS X. - */ - -input[type="search"]::-webkit-search-cancel-button, -input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -/** - * Remove inner padding and border in Firefox 4+. - */ - -button::-moz-focus-inner, -input::-moz-focus-inner { - border: 0; - padding: 0; -} - -/** - * 1. Remove default vertical scrollbar in IE 8/9. - * 2. Improve readability and alignment in all browsers. - */ - -textarea { - overflow: auto; /* 1 */ - vertical-align: top; /* 2 */ -} - -/* ========================================================================== - Tables - ========================================================================== */ - -/** - * Remove most spacing between table cells. - */ - -table { - border-collapse: collapse; - border-spacing: 0; -}
\ No newline at end of file diff --git a/theme/stylesheets/base/preboot.less b/theme/stylesheets/base/preboot.less deleted file mode 100644 index 6e7e6fb..0000000 --- a/theme/stylesheets/base/preboot.less +++ /dev/null @@ -1,406 +0,0 @@ -/*! - * Preboot v2 - * - * Open sourced under MIT license by @mdo. - * Some variables and mixins from Bootstrap (Apache 2 license). - */ - - -// -// Variables -// -------------------------------------------------- - -// Grayscale -@black-10: darken(#fff, 10%); -@black-20: darken(#fff, 20%); -@black-30: darken(#fff, 30%); -@black-40: darken(#fff, 40%); -@black-50: darken(#fff, 50%); -@black-60: darken(#fff, 60%); -@black-70: darken(#fff, 70%); -@black-80: darken(#fff, 80%); -@black-90: darken(#fff, 90%); - -// Brand colors -@brand-primary: #428bca; -@brand-success: #5cb85c; -@brand-warning: #f0ad4e; -@brand-danger: #d9534f; -@brand-info: #5bc0de; - -// Scaffolding -@body-background: #fff; -@text-color: @black-50; - -// Links -@link-color: @brand-primary; -@link-color-hover: darken(@link-color, 15%); - -// Typography -@font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif; -@font-family-serif: Georgia, "Times New Roman", Times, serif; -@font-family-monospace: Monaco, Menlo, Consolas, "Courier New", monospace; -@font-family-base: @font-family-sans-serif; - -@font-size-base: 14px; -@font-size-large: @font-size-base * 1.25; // ~18px -@font-size-small: @font-size-base * 0.85; // ~12px -@font-size-mini: @font-size-base * 0.75; // ~11px - -@line-height-base: 1.4; - -@headings-font-family: inherit; // empty to use BS default, @font-family-base -@headings-font-weight: 500; - -// Forms -@input-color-placeholder: lighten(@text-color, 25%); - -// Grid -// Used with the grid mixins below -@grid-columns: 12; -@grid-column-padding: 15px; // Left and right inner padding -@grid-float-breakpoint: 768px; - - - -// -// Grid system -// -------------------------------------------------- - -// Grid -.make-row() { - // Negative margin the row out to align the content of columns - margin-left: -@grid-column-padding; - margin-right: -@grid-column-padding; - // Then clear the floated columns - .clearfix(); -} -.make-column(@columns) { - @media (min-width: @grid-float-breakpoint) { - float: left; - // Calculate width based on number of columns available - width: percentage(@columns / @grid-columns); - } - // Prevent columns from collapsing when empty - min-height: 1px; - // Set inner padding as gutters instead of margin - padding-left: @grid-column-padding; - padding-right: @grid-column-padding; - // Proper box-model (padding doesn't add to width) - .box-sizing(border-box); -} -.make-column-offset(@columns) { - @media (min-width: @grid-float-breakpoint) { - margin-left: percentage(@columns / @grid-columns); - } -} - - - -// -// Mixins: vendor prefixes -// -------------------------------------------------- - -// Box sizing -.box-sizing(@box-model) { - -webkit-box-sizing: @box-model; // Safari <= 5 - -moz-box-sizing: @box-model; // Firefox <= 19 - box-sizing: @box-model; -} - -// Single side border-radius -.border-top-radius(@radius) { - border-top-right-radius: @radius; - border-top-left-radius: @radius; -} -.border-right-radius(@radius) { - border-bottom-right-radius: @radius; - border-top-right-radius: @radius; -} -.border-bottom-radius(@radius) { - border-bottom-right-radius: @radius; - border-bottom-left-radius: @radius; -} -.border-left-radius(@radius) { - border-bottom-left-radius: @radius; - border-top-left-radius: @radius; -} - -// Drop shadows -.box-shadow(@shadow) { - -webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1 - box-shadow: @shadow; -} - -// Transitions -.transition(@transition) { - -webkit-transition: @transition; - -moz-transition: @transition; - -o-transition: @transition; - transition: @transition; -} -.transition-delay(@transition-delay) { - -webkit-transition-delay: @transition-delay; - -moz-transition-delay: @transition-delay; - -o-transition-delay: @transition-delay; - transition-delay: @transition-delay; -} -.transition-duration(@transition-duration) { - -webkit-transition-duration: @transition-duration; - -moz-transition-duration: @transition-duration; - -o-transition-duration: @transition-duration; - transition-duration: @transition-duration; -} - -// Transformations -.rotate(@degrees) { - -webkit-transform: rotate(@degrees); - -moz-transform: rotate(@degrees); - -ms-transform: rotate(@degrees); - -o-transform: rotate(@degrees); - transform: rotate(@degrees); -} -.scale(@ratio) { - -webkit-transform: scale(@ratio); - -moz-transform: scale(@ratio); - -ms-transform: scale(@ratio); - -o-transform: scale(@ratio); - transform: scale(@ratio); -} -.translate(@x, @y) { - -webkit-transform: translate(@x, @y); - -moz-transform: translate(@x, @y); - -ms-transform: translate(@x, @y); - -o-transform: translate(@x, @y); - transform: translate(@x, @y); -} -.skew(@x, @y) { - -webkit-transform: skew(@x, @y); - -moz-transform: skew(@x, @y); - -ms-transform: skewX(@x) skewY(@y); // See https://github.com/twitter/bootstrap/issues/4885 - -o-transform: skew(@x, @y); - transform: skew(@x, @y); - -webkit-backface-visibility: hidden; // See https://github.com/twitter/bootstrap/issues/5319 -} -.translate3d(@x, @y, @z) { - -webkit-transform: translate3d(@x, @y, @z); - -moz-transform: translate3d(@x, @y, @z); - -o-transform: translate3d(@x, @y, @z); - transform: translate3d(@x, @y, @z); -} - -// Backface visibility -// -// Prevent browsers from flickering when using CSS 3D transforms. -// Default value is `visible`, but can be changed to `hidden -// See git pull https://github.com/dannykeane/bootstrap.git backface-visibility for examples -.backface-visibility(@visibility){ - -webkit-backface-visibility: @visibility; - -moz-backface-visibility: @visibility; - backface-visibility: @visibility; -} - -// User select -// -// For selecting text on the page -.user-select(@select) { - -webkit-user-select: @select; - -moz-user-select: @select; - -ms-user-select: @select; - -o-user-select: @select; - user-select: @select; -} - -// Opacity -.opacity(@opacity) { - opacity: @opacity; - @opacity-ie: @opacity * 100; - filter: ~"alpha(opacity=@{opacity-ie})"; // IE8 -} - -// Placeholder text -.placeholder(@color: @input-color-placeholder) { - &:-moz-placeholder { color: @color; } // Firefox 4-18 - &::-moz-placeholder { color: @color; } // Firefox 19+ - &:-ms-input-placeholder { color: @color; } // Internet Explorer 10+ - &::-webkit-input-placeholder { color: @color; } // Safari and Chrome -} - -// Resize anything -.resizable(@direction) { - resize: @direction; // Options: horizontal, vertical, both - overflow: auto; // Safari fix -} - -// CSS3 Content Columns -.content-columns(@width, @count, @gap) { - -webkit-column-width: @width; - -moz-column-width: @width; - column-width: @width; - -webkit-column-count: @count; - -moz-column-count: @count; - column-count: @count; - -webkit-column-gap: @gap; - -moz-column-gap: @gap; - column-gap: @gap; -} - -// Optional hyphenation -.hyphens(@mode: auto) { - word-wrap: break-word; - -webkit-hyphens: @mode; - -moz-hyphens: @mode; - -ms-hyphens: @mode; - -o-hyphens: @mode; - hyphens: @mode; -} - -// Gradients -#gradient { - .horizontal(@startColor: #555, @endColor: #333) { - background-color: @endColor; - background-image: -moz-linear-gradient(left, @startColor, @endColor); // FF 3.6+ - background-image: -webkit-gradient(linear, 0 0, 100% 0, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+ - background-image: -webkit-linear-gradient(left, @startColor, @endColor); // Safari 5.1+, Chrome 10+ - background-image: -o-linear-gradient(left, @startColor, @endColor); // Opera 11.10 - background-image: linear-gradient(to right, @startColor, @endColor); // Standard, IE10 - background-repeat: repeat-x; - filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@startColor),argb(@endColor))); // IE9 and down - } - .vertical(@startColor: #555, @endColor: #333) { - background-color: @endColor; - background-image: -moz-linear-gradient(top, @startColor, @endColor); // FF 3.6+ - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+ - background-image: -webkit-linear-gradient(top, @startColor, @endColor); // Safari 5.1+, Chrome 10+ - background-image: -o-linear-gradient(top, @startColor, @endColor); // Opera 11.10 - background-image: linear-gradient(to bottom, @startColor, @endColor); // Standard, IE10 - background-repeat: repeat-x; - filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor),argb(@endColor))); // IE9 and down - } - .directional(@startColor: #555, @endColor: #333, @deg: 45deg) { - background-color: @endColor; - background-repeat: repeat-x; - background-image: -moz-linear-gradient(@deg, @startColor, @endColor); // FF 3.6+ - background-image: -webkit-linear-gradient(@deg, @startColor, @endColor); // Safari 5.1+, Chrome 10+ - background-image: -o-linear-gradient(@deg, @startColor, @endColor); // Opera 11.10 - background-image: linear-gradient(@deg, @startColor, @endColor); // Standard, IE10 - } - .horizontal-three-colors(@startColor: #00b3ee, @midColor: #7a43b6, @colorStop: 50%, @endColor: #c3325f) { - background-color: mix(@midColor, @endColor, 80%); - background-image: -webkit-gradient(left, linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor)); - background-image: -webkit-linear-gradient(left, @startColor, @midColor @colorStop, @endColor); - background-image: -moz-linear-gradient(left, @startColor, @midColor @colorStop, @endColor); - background-image: -o-linear-gradient(left, @startColor, @midColor @colorStop, @endColor); - background-image: linear-gradient(to right, @startColor, @midColor @colorStop, @endColor); - background-repeat: no-repeat; - filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor),argb(@endColor))); // IE9 and down, gets no color-stop at all for proper fallback - } - .vertical-three-colors(@startColor: #00b3ee, @midColor: #7a43b6, @colorStop: 50%, @endColor: #c3325f) { - background-color: mix(@midColor, @endColor, 80%); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor)); - background-image: -webkit-linear-gradient(@startColor, @midColor @colorStop, @endColor); - background-image: -moz-linear-gradient(top, @startColor, @midColor @colorStop, @endColor); - background-image: -o-linear-gradient(@startColor, @midColor @colorStop, @endColor); - background-image: linear-gradient(@startColor, @midColor @colorStop, @endColor); - background-repeat: no-repeat; - filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor),argb(@endColor))); // IE9 and down, gets no color-stop at all for proper fallback - } - .radial(@innerColor: #555, @outerColor: #333) { - background-color: @outerColor; - background-image: -webkit-gradient(radial, center center, 0, center center, 460, from(@innerColor), to(@outerColor)); - background-image: -webkit-radial-gradient(circle, @innerColor, @outerColor); - background-image: -moz-radial-gradient(circle, @innerColor, @outerColor); - background-image: -o-radial-gradient(circle, @innerColor, @outerColor); - background-repeat: no-repeat; - } - .striped(@color: #555, @angle: 45deg) { - background-color: @color; - background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, rgba(255,255,255,.15)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255,255,255,.15)), color-stop(.75, rgba(255,255,255,.15)), color-stop(.75, transparent), to(transparent)); - background-image: -webkit-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); - background-image: -moz-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); - } -} - -// Reset filters for IE -// -// Useful for when you want to remove a gradient from an element. -.reset-filter() { - filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)")); -} - - - -// -// Mixins: utilities -// -------------------------------------------------- - -// Clearfix -// -// Source: http://nicolasgallagher.com/micro-clearfix-hack/ -// -// For modern browsers -// 1. The space content is one way to avoid an Opera bug when the -// contenteditable attribute is included anywhere else in the document. -// Otherwise it causes space to appear at the top and bottom of elements -// that are clearfixed. -// 2. The use of `table` rather than `block` is only necessary if using -// `:before` to contain the top-margins of child elements. -.clearfix() { - *zoom: 1; - &:before, - &:after { - content: " "; // 1 - display: table; // 2 - // Fixes Opera/contenteditable bug: - // http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952 - line-height: 0; - } - &:after { - clear: both; - } -} - -// Center-align a block level element -.center-block() { - display: block; - margin-left: auto; - margin-right: auto; -} - -// Sizing shortcuts -.size(@width, @height) { - width: @width; - height: @height; -} -.square(@size) { - .size(@size, @size); -} - -// Text overflow -// -// Requires inline-block or block for proper styling -.text-truncate() { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -// Retina images -// -// Retina background-image support with non-retina fall back -.retina-image(@file-1x, @file-2x, @width-1x, @height-1x) { - background-image: url("@{file-1x}"); - - @media - only screen and (-webkit-min-device-pixel-ratio: 2), - only screen and ( min--moz-device-pixel-ratio: 2), - only screen and ( -o-min-device-pixel-ratio: 2/1), - only screen and ( min-device-pixel-ratio: 2), - only screen and ( min-resolution: 192dpi), - only screen and ( min-resolution: 2dppx) { - background-image: url("@{file-2x}"); - background-size: @width-1x @height-1x; - } -}
\ No newline at end of file diff --git a/theme/stylesheets/ebook.less b/theme/stylesheets/ebook.less deleted file mode 100644 index c36b161..0000000 --- a/theme/stylesheets/ebook.less +++ /dev/null @@ -1 +0,0 @@ -@import "./ebook/base.less"; diff --git a/theme/stylesheets/ebook/base.less b/theme/stylesheets/ebook/base.less deleted file mode 100644 index 463cd0d..0000000 --- a/theme/stylesheets/ebook/base.less +++ /dev/null @@ -1,23 +0,0 @@ -@import "../base/mixins.less"; -@import "./variables.less"; - -@import "./summary.less"; -@import "./glossary.less"; - -body { - font-family: @font-family-base; - color: @text-color; - .text-adjust(100%); -} - -.page { - // Section and first titles - .section { - .gitbook-markdown(@md-color: @text-color, @md-line-height: 1.6, @md-link-color: @link-color); - } - - // Hide the title (only used to build PDF table of content) - .book-chapter { - display: none; - } -} diff --git a/theme/stylesheets/ebook/glossary.less b/theme/stylesheets/ebook/glossary.less deleted file mode 100644 index 8ed9a1b..0000000 --- a/theme/stylesheets/ebook/glossary.less +++ /dev/null @@ -1,28 +0,0 @@ -.section.glossary { - > h1 { - text-align: center; - } - - .glossary-entry { - margin-bottom: 40px; - - h2 { - a, a:hover { - color: inherit; - text-decoration: none; - } - } - - .glossary-index { - list-style: none; - margin: 0px; - padding: 0px; - - li { - display: inline; - margin: 0px 8px; - white-space: nowrap; - } - } - } -} diff --git a/theme/stylesheets/ebook/summary.less b/theme/stylesheets/ebook/summary.less deleted file mode 100644 index 37d2bda..0000000 --- a/theme/stylesheets/ebook/summary.less +++ /dev/null @@ -1,56 +0,0 @@ -.section.toc { - > h1 { - text-align: center; - } - - > ol { - margin: 0px; - padding: 0px; - } - - li { - list-style: none; - - .inner { - display: block; - border-bottom: 1px dotted #eee; - margin-bottom: 4px; - - a, span { - padding-right: 5px; - border-bottom: 1px solid #fff; - margin-bottom: -1px; - } - - .page { - float: right; - padding-left: 5px; - } - } - - ol { - margin: 0px; - padding: 0px; - padding-left: 2em; - } - } -} - -// For LTR, fix direction of table of content -.dir-rtl { - .section.toc { - li { - .inner { - .page { - float: left; - } - } - - ol { - margin: 0px; - padding: 0px; - padding-right: 2em; - } - } - } -} diff --git a/theme/stylesheets/ebook/variables.less b/theme/stylesheets/ebook/variables.less deleted file mode 100644 index fda5d47..0000000 --- a/theme/stylesheets/ebook/variables.less +++ /dev/null @@ -1,5 +0,0 @@ -@font-size-base: 13px; -@font-family-base: sans-serif; - -@text-color: #000; -@link-color: #4183c4; diff --git a/theme/stylesheets/epub.less b/theme/stylesheets/epub.less deleted file mode 100644 index 16dd496..0000000 --- a/theme/stylesheets/epub.less +++ /dev/null @@ -1,3 +0,0 @@ -@import "./ebook/base.less"; - -@font-family-base: serif; diff --git a/theme/stylesheets/mobi.less b/theme/stylesheets/mobi.less deleted file mode 100644 index a963197..0000000 --- a/theme/stylesheets/mobi.less +++ /dev/null @@ -1,23 +0,0 @@ -@import "./ebook/base.less"; - -@font-family-base: serif; -@link-color: #000; - -a { - color: #000; - text-decoration: underline !important; -} - -.page-toc { - li { - list-style-type: lower-alpha; - - .inner { - border: none; - - span.page { - display: none; - } - } - } -} diff --git a/theme/stylesheets/pdf.less b/theme/stylesheets/pdf.less deleted file mode 100644 index 4d1a99a..0000000 --- a/theme/stylesheets/pdf.less +++ /dev/null @@ -1,20 +0,0 @@ -@import "./ebook/base.less"; - -.pdf-footer { - margin-top: 20px; - padding-top: 10px; - border-top: 1px solid #eee; - color:#aaa; - - .footer-pages-count { - float: right; - } -} - -.pdf-header { - margin-top: 20px; - padding-bottom: 10px; - border-bottom: 1px solid #eee; - color: #aaa; -} - diff --git a/theme/stylesheets/website.less b/theme/stylesheets/website.less deleted file mode 100755 index d808a0b..0000000 --- a/theme/stylesheets/website.less +++ /dev/null @@ -1,47 +0,0 @@ -@import "base/normalize.less"; -@import "base/preboot.less"; -@import "base/mixins.less"; -@import "../../node_modules/font-awesome/less/font-awesome.less"; - - -@import "website/variables.less"; -@import "website/languages.less"; -@import "website/header.less"; -@import "website/dropdown.less"; -@import "website/alerts.less"; -@import "website/summary.less"; -@import "website/body.less"; -@import "website/buttons.less"; -@import "website/markup.less"; -@import "website/navigation.less"; -@import "website/glossary.less"; - -* { - .box-sizing(border-box); - -webkit-overflow-scrolling: touch; - -webkit-tap-highlight-color: transparent; - -webkit-text-size-adjust: none; - -webkit-touch-callout: none; - -webkit-font-smoothing: antialiased; -} - -a { - text-decoration: none; -} - -html, body { - height: 100%; -} - -html { - font-size: 62.5%; -} - -body { - text-rendering: optimizeLegibility; - font-smoothing: antialiased; - font-family: @font-family-base; - font-size: @font-size-base; - letter-spacing: .2px; - .text-adjust(100%); -} diff --git a/theme/stylesheets/website/alerts.less b/theme/stylesheets/website/alerts.less deleted file mode 100644 index 22fc863..0000000 --- a/theme/stylesheets/website/alerts.less +++ /dev/null @@ -1,31 +0,0 @@ -.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/body.less b/theme/stylesheets/website/body.less deleted file mode 100755 index 3ba93b7..0000000 --- a/theme/stylesheets/website/body.less +++ /dev/null @@ -1,87 +0,0 @@ -.book { - position: relative; - width: 100%; - height: 100%; - - .book-body { - position: absolute; - top: 0px; - right: 0px; - left: 0px; - bottom: 0px; - overflow-y: auto; - - color: @page-color; - background: @body-background; - .transition(left @sidebar-transition-duration ease); - - .body-inner { - position: absolute; - top: 0px; - right: 0px; - left: 0px; - bottom: 0px; - overflow-y: auto; - } - - .page-wrapper { - position: relative; - outline: none; - - .page-inner { - max-width: 800px; - margin: 0px auto; - padding: 20px 0px 40px 0px; - - section { - margin: 0px 0px; - padding: 5px 15px; - - background: @page-background; - border-radius: 2px; - line-height: @content-line-height; - font-size: @default-font-size; - } - - .btn-group { - .btn { - border-radius: 0px; - background: #eee; - border: 0px; - } - } - } - } - - @media (max-width: @mobileMaxWidth) { - .transition-transform(@sidebar-transition-duration ease); - padding-bottom: 20px; - - .body-inner { - position: static; - min-height: calc(~"100% - 50px") - } - } - } - - &.with-summary { - @media (min-width: @sidebar-breakpoint) { - .book-body { - left: @sidebar-width; - } - } - @media (max-width: @sidebar-breakpoint) { - overflow: hidden; - - .book-body { - .translate(~"calc(100% - 60px)", 0px); - } - } - } - - &.without-animation { - .book-body { - .transition(none) !important; - } - } -}
\ No newline at end of file diff --git a/theme/stylesheets/website/buttons.less b/theme/stylesheets/website/buttons.less deleted file mode 100644 index dbc4769..0000000 --- a/theme/stylesheets/website/buttons.less +++ /dev/null @@ -1,32 +0,0 @@ -.buttons { - .clearfix(); -} - -.button { - border: 0; - background-color: transparent; - background: @button-background; - color: @button-color; - width: 100%; - text-align: center; - float: left; - line-height: @line-height-base; - padding: 8px 4px; - - &:hover { - color: @button-hover-color; - } - - &:focus, &:hover { - outline: none; - } - - &.size-2 { - width: 50%; - } - - &.size-3 { - width: 33%; - } -} - diff --git a/theme/stylesheets/website/dropdown.less b/theme/stylesheets/website/dropdown.less deleted file mode 100644 index 5093d5d..0000000 --- a/theme/stylesheets/website/dropdown.less +++ /dev/null @@ -1,105 +0,0 @@ -.dropdown { - position: relative; -} - -.dropdown-menu { - position: absolute; - top: 100%; - left: 0; - z-index: @dropdown-zindex; - display: none; // none by default, but block on "open" of the menu - float: left; - min-width: 160px; - padding: 0; - margin: 2px 0 0; // override default ul - list-style: none; - font-size: @font-size-base; - background-color: @dropdown-background; - border: 1px solid @dropdown-border-color; - border-radius: @border-radius-base; - .box-shadow(0 6px 12px rgba(0,0,0,.175)); - background-clip: padding-box; - - &.open{ - display:block; - } - - &.dropdown-left { - left: auto; - right: 4%; - - .dropdown-caret { - right: 14px; - left: auto; - } - } - - .dropdown-caret{ - position: absolute; - top: -8px; - left: 14px; - width: 18px; - height: 10px; - float: left; - overflow: hidden; - - .caret-outer{ - position: absolute; - border-left: 9px solid transparent; - border-right: 9px solid transparent; - border-bottom: 9px solid rgba(0,0,0,0.1); - height: auto; - left: 0; - top: 0; - width: auto; - display: inline-block; - margin-left: -1px; - } - .caret-inner{ - position: absolute; - display: inline-block; - margin-top: -1px; - top: 0; - top: 1px; - border-left: 9px solid transparent; - border-right: 9px solid transparent; - border-bottom: 9px solid @dropdown-background; - } - } - - .buttons { - .clearfix(); - border-bottom: 1px solid @sidebar-divider-color; - - &:last-child { - border-bottom: none; - } - - .button { - border: 0; - background-color: transparent; - color: @dropdown-button-color; - width: 100%; - text-align: center; - float: left; - line-height: @line-height-base; - padding: 8px 4px; - - &:hover { - color: @dropdown-button-hover-color; - } - - &:focus, &:hover { - outline: none; - } - - &.size-2 { - width: 50%; - } - - &.size-3 { - width: 33%; - } - } - } -} diff --git a/theme/stylesheets/website/glossary.less b/theme/stylesheets/website/glossary.less deleted file mode 100644 index e360627..0000000 --- a/theme/stylesheets/website/glossary.less +++ /dev/null @@ -1,22 +0,0 @@ -.book .book-body .page-wrapper .page-inner section.glossary { - margin-bottom: 40px; - - h2 { - a, a:hover { - color: inherit; - text-decoration: none; - } - } - - .glossary-index { - list-style: none; - margin: 0px; - padding: 0px; - - li { - display: inline; - margin: 0px 8px; - white-space: nowrap; - } - } -} diff --git a/theme/stylesheets/website/header.less b/theme/stylesheets/website/header.less deleted file mode 100755 index c783548..0000000 --- a/theme/stylesheets/website/header.less +++ /dev/null @@ -1,82 +0,0 @@ -.book { - .book-header { - font-family: @font-family-sans; - - overflow: visible; - height: @header-height; - padding: 0px 8px; - z-index: 2; - - font-size: 0.85em; - color: @header-color; - background: @header-background; - - .btn { - display: block; - height: @header-height; - padding: 0px 15px; - border-bottom: none; - color: @header-button-color; - text-transform: uppercase; - line-height: @header-height; - .box-shadow(none) !important; - position:relative; - font-size: @font-size-base; - - &:hover { - position: relative; - text-decoration: none; - color: @header-button-hover-color; - background: @header-button-hover-background; - } - } - - h1 { - margin: 0px; - font-size: 20px; - font-weight: 200; - text-align: center; - line-height: @header-height; - opacity: 0; - .transition(opacity ease 0.4s); - - padding-left: 200px; - padding-right: 200px; - .transition(opacity 0.2s ease); - - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - - a, a:hover { - color: inherit; - text-decoration: none; - } - - @media (max-width: 1000px) { - display: none; - } - - i { - display: none; - } - } - - &:hover { - h1 { - opacity: 1; - } - } - } - - &.is-loading { - .book-header h1 { - i { - display: inline-block; - } - a { - display: none; - } - } - } -} diff --git a/theme/stylesheets/website/languages.less b/theme/stylesheets/website/languages.less deleted file mode 100755 index bde5a77..0000000 --- a/theme/stylesheets/website/languages.less +++ /dev/null @@ -1,51 +0,0 @@ -.book-langs-index { - width: 100%; - height: 100%; - padding: 40px 0px; - margin: 0px; - overflow: auto; - - @media (max-width: 600px) { - padding: 0px; - } - - .inner { - max-width: 600px; - width: 100%; - - margin: 0px auto; - padding: 30px; - - background: #fff; - border-radius: 3px; - - h3 { - margin: 0px; - } - - .languages { - list-style: none; - padding: 20px 30px; - margin-top: 20px; - border-top: 1px solid #eee; - - .clearfix(); - - li { - width: 50%; - float: left; - padding: 10px 5px; - font-size: 16px; - - a { - - } - - @media (max-width: 600px) { - width: 100%; - max-width: 100%; - } - } - } - } -}
\ No newline at end of file diff --git a/theme/stylesheets/website/markup.less b/theme/stylesheets/website/markup.less deleted file mode 100755 index 90f2225..0000000 --- a/theme/stylesheets/website/markup.less +++ /dev/null @@ -1,12 +0,0 @@ -.book .book-body .page-wrapper .page-inner section { - display: none; -} - -.book .book-body .page-wrapper .page-inner section.normal { - .gitbook-markdown(@md-color: @content-color, @md-line-height: @content-line-height); - - .glossary-term { - cursor: help; - text-decoration: underline; - } -} diff --git a/theme/stylesheets/website/navigation.less b/theme/stylesheets/website/navigation.less deleted file mode 100755 index 6c647c8..0000000 --- a/theme/stylesheets/website/navigation.less +++ /dev/null @@ -1,50 +0,0 @@ -.book .book-body { - .navigation { - position: absolute; - top: @header-height; - bottom: 0px; - margin: 0; - max-width: 150px; - min-width: 90px; - - display: flex; - justify-content: center; - align-content: center; - flex-direction: column; - - font-size: 40px; - color: @navigation-color; - - text-align: center; - - .transition(all 350ms ease); - - &:hover { - text-decoration: none; - color: @navigation-hover-color; - } - - &.navigation-next { - right: 0px; - } - &.navigation-prev { - left: 0px; - } - } - - @media (max-width: @mobileMaxWidth) { - .navigation { - position: static; - top: auto; - max-width: 50%; - width: 50%; - display: inline-block; - float: left; - - &.navigation-unique { - max-width: 100%; - width: 100%; - } - } - } -} diff --git a/theme/stylesheets/website/summary.less b/theme/stylesheets/website/summary.less deleted file mode 100755 index 37f2950..0000000 --- a/theme/stylesheets/website/summary.less +++ /dev/null @@ -1,110 +0,0 @@ -.book { - .book-summary { - font-family: @font-family-sans; - - position: absolute; - top: 0px; - left: -@sidebar-width; - bottom: 0px; - z-index: 1; - - width: @sidebar-width; - color: @sidebar-color; - background: @sidebar-background; - border-right: @sidebar-border-right; - - .transition(left @sidebar-transition-duration ease); - - ul.summary { - position: absolute; - top: 0px; - left: 0px; - right: 0px; - bottom: 0px; - - overflow-y: auto; - - list-style: none; - margin: 0px; - padding: 0px; - - .transition(top 0.5s ease); - - li { - list-style: none; - - &.divider { - height: 1px; - margin: 7px 0; - overflow: hidden; - background: @sidebar-divider-color; - } - - i.fa-check { - display: none; - position: absolute; - right: 9px; - top: 16px; - font-size: 9px; - color: @sidebar-icon-color; - } - - &.done { - > a { - color: @sidebar-link-completed; - font-weight: @sidebar-link-completed-weight; - - i { - display: inline; - } - } - } - - a, span { - display: block; - padding: 10px 15px; - border-bottom: none; - color: @sidebar-link-color; - background: @sidebar-link-background; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - position: relative; - } - - span { - cursor: not-allowed; - .opacity(0.3); - } - - &.active > a, a:hover { - color: @sidebar-link-hover-color; - background: @sidebar-link-hover-background; - text-decoration: none; - } - - ul { - padding-left: @sidebar-nested-padding; - } - } - } - - @media (max-width: @sidebar-breakpoint) { - width: calc(~"100% - 60px"); - bottom: 0px; - left: -100%; - } - } - - &.with-summary { - .book-summary { - left: 0px; - } - } - - &.without-animation { - .book-summary { - .transition(none) !important; - } - } -} diff --git a/theme/stylesheets/website/variables.less b/theme/stylesheets/website/variables.less deleted file mode 100644 index d543015..0000000 --- a/theme/stylesheets/website/variables.less +++ /dev/null @@ -1,107 +0,0 @@ -@staticPath: "."; - -// Font sizes -@font-size-base: 14px; -@font-size-large: ceil(@font-size-base * 1.25); // ~18px -@font-size-small: ceil(@font-size-base * 0.85); // ~12px -@line-height-base: 1.428571429; // 20/14 -@line-height-computed: floor(@font-size-base * @line-height-base); - -// Sizes -@mobileMaxWidth: 1240px; - -// Header -@header-height: 50px; -@header-color: hsl(194, 5%, 52%); -@header-background: transparent; -@header-border: rgba(0, 0, 0, 0.07); -@header-button-color: #ccc; -@header-button-hover-color: #444; -@header-button-hover-background: none; - -// Navigation -@navigation-color: @header-button-color; -@navigation-hover-color: @header-button-hover-color; - -// Body -@body-background: white; - -// Sidebar -@sidebar-transition-duration: 250ms; -@sidebar-width: 300px; -@sidebar-breakpoint: 600px; -@sidebar-color: hsl(207, 15%, 25%); -@sidebar-background: #fafafa; -@sidebar-border-right: 1px solid @header-border; - -@sidebar-nested-padding: 20px; -@sidebar-divider-color: @header-border; - -@sidebar-link-color: @sidebar-color; -@sidebar-link-background: transparent; -@sidebar-link-hover-color: hsl(207, 100%, 50%); -@sidebar-link-hover-background: transparent; - -@sidebar-icon-color: hsl(120, 60%, 50%); -@sidebar-link-completed: @sidebar-link-color; -@sidebar-link-completed-weight: normal; - -// Page -@page-color: black; -@page-background: @body-background; - -// Content -@content-line-height: 1.7; -@content-color: #333333; - -// Dropdown -@dropdown-zindex: 100; -@dropdown-divider-color: @sidebar-divider-color; -@dropdown-background: @sidebar-background; -@dropdown-button-color: darken(@header-button-color, 15%); -@dropdown-border-color: @sidebar-divider-color; -@dropdown-button-hover-color: @header-button-hover-color; - -// Buttons -@button-background: #eee; -@button-color: #666; -@button-hover-color: #444; - -// 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; -@border-radius-small: 1px; - -// Fonts -@font-family-serif: Georgia, serif; -@font-family-sans: "Helvetica Neue", Helvetica, Arial, sans-serif; -@font-family-base: @font-family-sans; -@headings-font-family: inherit; - -@FontPath: '@{staticPath}/fonts'; -@fa-font-path: "@{FontPath}/fontawesome"; - -@s-font-size: 1.2rem; -@m-font-size: 1.4rem; -@l-font-size: 1.6rem; -@xl-font-size: 2.2rem; -@xxl-font-size: 4.0rem; -@default-font-size: @l-font-size; - |