diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-14 00:15:35 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-14 00:15:35 +0200 |
commit | 4a6ae8d4e0609b8581f9fdc7001854426a8494f5 (patch) | |
tree | 48494015a18f66909c6f291905619394c7449e57 | |
parent | b77debae24f7828e3b8876179396bd606a9fd773 (diff) | |
download | gitbook-4a6ae8d4e0609b8581f9fdc7001854426a8494f5.zip gitbook-4a6ae8d4e0609b8581f9fdc7001854426a8494f5.tar.gz gitbook-4a6ae8d4e0609b8581f9fdc7001854426a8494f5.tar.bz2 |
Switch to 4spaces indentations for less files
-rwxr-xr-x | theme/stylesheets/book/body.less | 112 | ||||
-rwxr-xr-x | theme/stylesheets/book/exercise.less | 92 | ||||
-rwxr-xr-x | theme/stylesheets/book/header.less | 104 | ||||
-rwxr-xr-x | theme/stylesheets/book/languages.less | 62 | ||||
-rwxr-xr-x | theme/stylesheets/book/navigation.less | 68 | ||||
-rwxr-xr-x | theme/stylesheets/book/summary.less | 240 |
6 files changed, 339 insertions, 339 deletions
diff --git a/theme/stylesheets/book/body.less b/theme/stylesheets/book/body.less index c235442..d13734a 100755 --- a/theme/stylesheets/book/body.less +++ b/theme/stylesheets/book/body.less @@ -1,74 +1,74 @@ .book { - .book-body { - position: fixed; - top: @header-height; - right: 0px; - left: 0px; - bottom: 0px; + .book-body { + position: fixed; + top: @header-height; + right: 0px; + left: 0px; + bottom: 0px; - background: @body-background; - .transition(left 0.5s ease); + background: @body-background; + .transition(left 0.5s ease); - .body-inner { - position: absolute; - top: 0px; - right: 0px; - left: 0px; - bottom: 0px; - overflow-y: auto; - } + .body-inner { + position: absolute; + top: 0px; + right: 0px; + left: 0px; + bottom: 0px; + overflow-y: auto; + } - .page-wrapper { - position: relative; + .page-wrapper { + position: relative; - .page-inner { - font-family: @font-family-serif; - max-width: 800px; - margin: 0px auto; + .page-inner { + font-family: @font-family-serif; + max-width: 800px; + margin: 0px auto; - section { - margin: 0px 0px; - padding: 5px 15px; + section { + margin: 0px 0px; + padding: 5px 15px; - background: @page-background; - border-radius: 2px; + background: @page-background; + border-radius: 2px; - font-size: 16px; - line-height: 1.5em; - } + font-size: 16px; + line-height: 1.5em; + } - .btn-group { - .btn { - border-radius: 0px; - background: #eee; - border: 0px; - } + .btn-group { + .btn { + border-radius: 0px; + background: #eee; + border: 0px; + } + } + } } - } - } - @media (max-width: @mobileMaxWidth) { - overflow-y: auto; + @media (max-width: @mobileMaxWidth) { + overflow-y: auto; - .body-inner { - position: static; - padding-bottom: 20px; - min-height: calc(~"100% - 57px") - } + .body-inner { + position: static; + padding-bottom: 20px; + min-height: calc(~"100% - 57px") + } + } } - } - &.with-summary { - @media (min-width: 800px) { - .book-body { - left: 250px; - } + &.with-summary { + @media (min-width: 800px) { + .book-body { + left: 250px; + } + } } - } - &.without-animation { - .book-body { - .transition(none) !important; + &.without-animation { + .book-body { + .transition(none) !important; + } } - } }
\ No newline at end of file diff --git a/theme/stylesheets/book/exercise.less b/theme/stylesheets/book/exercise.less index c08d65c..dd30298 100755 --- a/theme/stylesheets/book/exercise.less +++ b/theme/stylesheets/book/exercise.less @@ -1,49 +1,49 @@ .book .book-body .page-wrapper .page-inner { - section.exercise { - padding: 0px; - margin: 20px 0px; - border: 3px solid #2f8cde; - - .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; - } + section.exercise { + padding: 0px; + margin: 20px 0px; + border: 3px solid #2f8cde; + + .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/book/header.less b/theme/stylesheets/book/header.less index 5c7b5cc..21a3e7f 100755 --- a/theme/stylesheets/book/header.less +++ b/theme/stylesheets/book/header.less @@ -1,66 +1,66 @@ .book { - .book-header { - font-family: @font-family-sans; + .book-header { + font-family: @font-family-sans; - position: fixed; - overflow: hidden; - top: 0px; - right: 0px; - left: 0px; - height: @header-height; - z-index: 2; + position: fixed; + overflow: hidden; + top: 0px; + right: 0px; + left: 0px; + height: @header-height; + z-index: 2; - font-size: 0.85em; - color: @header-color; - background: @header-background; - box-shadow: 0 1px 2px hsla(200,10%,80%,0.6); + font-size: 0.85em; + color: @header-color; + background: @header-background; + box-shadow: 0 1px 2px hsla(200,10%,80%,0.6); - .btn { - display: block; - height: @header-height; - padding: 0px 15px; - border-bottom: none; - color: @header-button-color; - text-transform: uppercase; - line-height: @header-height; + .btn { + display: block; + height: @header-height; + padding: 0px 15px; + border-bottom: none; + color: @header-button-color; + text-transform: uppercase; + line-height: @header-height; - &:hover { - position: relative; - text-decoration: none; - color: @header-button-hover-color; - background: @header-button-hover-background; - } - } + &:hover { + position: relative; + text-decoration: none; + color: @header-button-hover-color; + background: @header-button-hover-background; + } + } - h1 { - margin: 0px; - font-size: 20px; - text-align: center; - line-height: @header-height; + h1 { + margin: 0px; + font-size: 20px; + text-align: center; + line-height: @header-height; - padding-left: 200px; - padding-right: 200px; - .transition(margin-left 0.5s ease); + padding-left: 200px; + padding-right: 200px; + .transition(margin-left 0.5s ease); - a, a:hover { - color: inherit; - text-decoration: none; - } + a, a:hover { + color: inherit; + text-decoration: none; + } - @media (max-width: 800px) { - display: none; - } + @media (max-width: 800px) { + display: none; + } + } } - } - &.with-summary { - .book-header h1 { - margin-left: 250px; + &.with-summary { + .book-header h1 { + margin-left: 250px; + } } - } - &.without-animation { - .book-header h1 { - .transition(none) !important; + &.without-animation { + .book-header h1 { + .transition(none) !important; + } } - } } diff --git a/theme/stylesheets/book/languages.less b/theme/stylesheets/book/languages.less index 509e75e..3919adf 100755 --- a/theme/stylesheets/book/languages.less +++ b/theme/stylesheets/book/languages.less @@ -1,46 +1,46 @@ .book-langs-index { - width: 100%; - height: 100%; - background: #edece4; - padding: 40px 0px; - margin: 0px; - overflow: auto; - - .inner { - max-width: 350px; width: 100%; + height: 100%; + background: #edece4; + padding: 40px 0px; + margin: 0px; + overflow: auto; - margin: 0px auto; - padding: 15px; + .inner { + max-width: 350px; + width: 100%; - background: #fff; - border-radius: 3px; + margin: 0px auto; + padding: 15px; - h1 { - margin: 0px; - text-align: center; - } + background: #fff; + border-radius: 3px; + + h1 { + margin: 0px; + text-align: center; + } - .languages { - list-style: none; - padding: 0px; - margin: 0px; - margin-top: 20px; + .languages { + list-style: none; + padding: 0px; + margin: 0px; + margin-top: 20px; - border-top: 1px solid #eee; + border-top: 1px solid #eee; - li { - text-align: center; - padding: 10px 5px; + li { + text-align: center; + padding: 10px 5px; - font-size: 16px; + font-size: 16px; - border-bottom: 1px solid #eee; + border-bottom: 1px solid #eee; - a { + a { + } + } } - } } - } }
\ No newline at end of file diff --git a/theme/stylesheets/book/navigation.less b/theme/stylesheets/book/navigation.less index 19dd881..33cb9be 100755 --- a/theme/stylesheets/book/navigation.less +++ b/theme/stylesheets/book/navigation.less @@ -1,45 +1,45 @@ .book .book-body { - .navigation { - position: absolute; - top: 0px; - bottom: 0px; - margin: 0; - max-width: 150px; - min-width: 90px; + .navigation { + position: absolute; + top: 0px; + bottom: 0px; + margin: 0; + max-width: 150px; + min-width: 90px; - display: flex; - justify-content: center; - align-content: center; - flex-direction: column; + display: flex; + justify-content: center; + align-content: center; + flex-direction: column; - font-size: 40px; - color: rgba(0,0,0,0.5); + font-size: 40px; + color: rgba(0,0,0,0.5); - text-align: center; + text-align: center; - .transition(all 350ms ease); + .transition(all 350ms ease); - &:hover { - background-color: @body-pagination-background; - text-decoration: none; - } + &:hover { + background-color: @body-pagination-background; + text-decoration: none; + } - &.navigation-next { - right: 0px; + &.navigation-next { + right: 0px; + } + &.navigation-prev { + left: 0px; + } } - &.navigation-prev { - left: 0px; - } - } - @media (max-width: @mobileMaxWidth) { - .navigation { - position: static; - top: auto; - max-width: 50%; - width: 50%; - display: inline-block; - float: left; + @media (max-width: @mobileMaxWidth) { + .navigation { + position: static; + top: auto; + max-width: 50%; + width: 50%; + display: inline-block; + float: left; + } } - } }
\ No newline at end of file diff --git a/theme/stylesheets/book/summary.less b/theme/stylesheets/book/summary.less index 9f162f8..ab0ddcf 100755 --- a/theme/stylesheets/book/summary.less +++ b/theme/stylesheets/book/summary.less @@ -1,144 +1,144 @@ .book { - .book-summary { - font-family: @font-family-sans; - - position: fixed; - top: @header-height; - left: -@sidebar-width; - bottom: 0px; - z-index: 1; - - width: @sidebar-width; - color: @sidebar-color; - background: @sidebar-background; - box-shadow: inset -1px 0 5px hsla(0, 0%, 0%, 0.1); - - .transition(all 0.5s ease); - - .book-search { - padding: @sidebar-search-padding; - - background: @sidebar-search-background; - border-bottom: 1px solid @sidebar-search-border-color; - - position: absolute; - top: -@header-height; - left: 0px; - right: 0px; - - .transition(top 0.5s ease); - - input, input:focus { - width: 100%; - border: none; - .box-shadow(none); - } - } + .book-summary { + font-family: @font-family-sans; - ul.summary { - position: absolute; - top: 0px; - left: 0px; - right: 0px; - bottom: 0px; + position: fixed; + top: @header-height; + left: -@sidebar-width; + bottom: 0px; + z-index: 1; - overflow-y: auto; + width: @sidebar-width; + color: @sidebar-color; + background: @sidebar-background; + box-shadow: inset -1px 0 5px hsla(0, 0%, 0%, 0.1); - list-style: none; - margin: 0px; - padding: 0px; + .transition(all 0.5s ease); - .transition(top 0.5s ease); + .book-search { + padding: @sidebar-search-padding; - li { - list-style: none; + background: @sidebar-search-background; + border-bottom: 1px solid @sidebar-search-border-color; - &.divider { - height: 1px; - margin: 7px 0; - overflow: hidden; - background: @sidebar-divider-color; - box-shadow: 0 1px rgba(255,255,255,0.7); - } + position: absolute; + top: -@header-height; + left: 0px; + right: 0px; - 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; + .transition(top 0.5s ease); - i { - display: inline; + input, input:focus { + width: 100%; + border: none; + .box-shadow(none); } - } - } - - 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; - padding-left: 25px; - } - - 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.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; + box-shadow: 0 1px rgba(255,255,255,0.7); + } + + 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; + padding-left: 25px; + } + + 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; + } + } } - ul { - padding-left: @sidebar-nested-padding; + @media (max-width: 600px) { + width: 100%; + bottom: 0px; + left: -100%; } - } } - @media (max-width: 600px) { - width: 100%; - bottom: 0px; - left: -100%; - } - } - - &.with-summary { - .book-summary { - left: 0px; + &.with-summary { + .book-summary { + left: 0px; + } } - } - &.without-animation { - .book-summary { - .transition(none) !important; + &.without-animation { + .book-summary { + .transition(none) !important; + } } - } - &.with-search { - .book-summary { - .book-search { - top: 0px; - } + &.with-search { + .book-summary { + .book-search { + top: 0px; + } - ul.summary { - top: @header-height; - } + ul.summary { + top: @header-height; + } + } } - } } |