1
0
Fork 0

Fixed some data in the gitbook theme

This commit is contained in:
Thomas Schmidts 2014-08-25 11:54:11 +02:00
parent de9a1c6efc
commit 63b24cc71e
12 changed files with 190 additions and 179 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -1 +1 @@
.link-inherit{color:inherit}.link-inherit:hover,.link-inherit:focus{color:inherit}.hljs-comment,.hljs-title{color:#8e908c}.hljs-variable,.hljs-attribute,.hljs-tag,.hljs-regexp,.ruby .hljs-constant,.xml .hljs-tag .hljs-title,.xml .hljs-pi,.xml .hljs-doctype,.html .hljs-doctype,.css .hljs-id,.css .hljs-class,.css .hljs-pseudo{color:#c82829}.hljs-number,.hljs-preprocessor,.hljs-pragma,.hljs-built_in,.hljs-literal,.hljs-params,.hljs-constant{color:#f5871f}.ruby .hljs-class .hljs-title,.css .hljs-rules .hljs-attribute{color:#eab700}.hljs-string,.hljs-value,.hljs-inheritance,.hljs-header,.ruby .hljs-symbol,.xml .hljs-cdata{color:#718c00}.css .hljs-hexcolor{color:#3e999f}.hljs-function,.python .hljs-decorator,.python .hljs-title,.ruby .hljs-function .hljs-title,.ruby .hljs-title .hljs-keyword,.perl .hljs-sub,.javascript .hljs-title,.coffeescript .hljs-title{color:#4271ae}.hljs-keyword,.javascript .hljs-function{color:#8959a8}.hljs{display:block;background:white;color:#4d4d4c;padding:.5em}.coffeescript .javascript,.javascript .xml,.tex .hljs-formula,.xml .javascript,.xml .vbscript,.xml .css,.xml .hljs-cdata{opacity:.5}.book-chapter{display:none}article{page-break-after:always}pre,blockquote{border:1px solid #999;page-break-inside:avoid;background:#f1f1f1;padding:8px}img{max-width:100%!important;page-break-inside:avoid;margin:0 auto}.exercise,.quiz{margin:1cm 0;padding:.4cm;page-break-inside:avoid;border:3px solid #ddd}.exercise .exercise-header,.quiz .exercise-header{margin-bottom:.4cm;padding-bottom:.2cm;border-bottom:1px solid #ddd}.exercise .question,.quiz .question{margin-top:.4cm} .link-inherit{color:inherit}.link-inherit:hover,.link-inherit:focus{color:inherit}.hljs-comment,.hljs-title{color:#8e908c}.hljs-variable,.hljs-attribute,.hljs-tag,.hljs-regexp,.ruby .hljs-constant,.xml .hljs-tag .hljs-title,.xml .hljs-pi,.xml .hljs-doctype,.html .hljs-doctype,.css .hljs-id,.css .hljs-class,.css .hljs-pseudo{color:#c82829}.hljs-number,.hljs-preprocessor,.hljs-pragma,.hljs-built_in,.hljs-literal,.hljs-params,.hljs-constant{color:#f5871f}.ruby .hljs-class .hljs-title,.css .hljs-rules .hljs-attribute{color:#eab700}.hljs-string,.hljs-value,.hljs-inheritance,.hljs-header,.ruby .hljs-symbol,.xml .hljs-cdata{color:#718c00}.css .hljs-hexcolor{color:#3e999f}.hljs-function,.python .hljs-decorator,.python .hljs-title,.ruby .hljs-function .hljs-title,.ruby .hljs-title .hljs-keyword,.perl .hljs-sub,.javascript .hljs-title,.coffeescript .hljs-title{color:#4271ae}.hljs-keyword,.javascript .hljs-function{color:#8959a8}.hljs{display:block;background:white;color:#4d4d4c;padding:.5em}.coffeescript .javascript,.javascript .xml,.tex .hljs-formula,.xml .javascript,.xml .vbscript,.xml .css,.xml .hljs-cdata{opacity:.5}.book-chapter{display:none}pre,blockquote{border:1px solid #999;page-break-inside:avoid;background:#f1f1f1;padding:8px}img{max-width:100%!important;page-break-inside:avoid;margin:0 auto}.exercise,.quiz{margin:1cm 0;padding:.4cm;page-break-inside:avoid;border:3px solid #ddd}.exercise .exercise-header,.quiz .exercise-header{margin-bottom:.4cm;padding-bottom:.2cm;border-bottom:1px solid #ddd}.exercise .question,.quiz .question{margin-top:.4cm}

View File

@ -7543,7 +7543,7 @@ text-decoration: none;
color: rgba(0,0,0,0.6) color: rgba(0,0,0,0.6)
} }
.book .book-body .navigation.navigation-next { .book .book-body .navigation.navigation-next {
right: 0 right: 10
} }
.book .book-body .navigation.navigation-prev { .book .book-body .navigation.navigation-prev {
left: 50px left: 50px

View File

@ -13,6 +13,9 @@ define([
}, },
"google-plus": function($el) { "google-plus": function($el) {
window.open("https://plus.google.com/share?url="+encodeURIComponent(url)) window.open("https://plus.google.com/share?url="+encodeURIComponent(url))
},
"weibo": function($el) {
window.open("http://service.weibo.com/share/share.php?content=utf-8&url="+encodeURIComponent(url)+"&title="+encodeURIComponent(title))
} }
}; };
@ -30,4 +33,4 @@ define([
return { return {
init: init init: init
}; };
}); });

View File

@ -7,23 +7,6 @@
display: none; display: none;
} }
article {
page-break-after: always;
}
pre, blockquote {
border: 1px solid #999;
page-break-inside: avoid;
background: #f1f1f1;
padding: 8px;
}
img {
max-width: 100% !important;
page-break-inside: avoid;
margin: 0px auto;
}
.exercise, .quiz { .exercise, .quiz {
margin: 1cm 0cm; margin: 1cm 0cm;
padding: 0.4cm; padding: 0.4cm;
@ -41,3 +24,9 @@ img {
margin-top: 0.4cm; margin-top: 0.4cm;
} }
} }
body {
font-family: sans-serif;
.markdown-content(#333, 1.6);
}

View File

@ -1,5 +1,6 @@
@import "vendors/bootstrap/bootstrap.less"; @import "base/normalize.less";
@import "vendors/fontawesome/font-awesome.less"; @import "base/preboot.less";
@import "../vendors/fontawesome/less/font-awesome.less";
@import "mixins.less"; @import "mixins.less";
@ -7,16 +8,17 @@
@import "website/variables.less"; @import "website/variables.less";
@import "website/languages.less"; @import "website/languages.less";
@import "website/header.less"; @import "website/header.less";
@import "website/dropdown.less";
@import "website/alerts.less";
@import "website/summary.less"; @import "website/summary.less";
@import "website/font-settings.less"; @import "website/font-settings.less";
@import "website/body.less"; @import "website/body.less";
@import "website/exercise.less"; @import "website/buttons.less";
@import "website/quiz.less";
@import "website/markdown.less"; @import "website/markdown.less";
@import "website/progress.less";
@import "website/navigation.less"; @import "website/navigation.less";
* { * {
.box-sizing(border-box);
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
-webkit-text-size-adjust: none; -webkit-text-size-adjust: none;
@ -24,12 +26,21 @@
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
} }
a {
text-decoration: none;
}
html, body { html, body {
height: 100%; height: 100%;
} }
html {
font-size: 62.5%;
}
body { body {
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
font-smoothing: antialiased; font-smoothing: antialiased;
font-family: @font-family-base; font-family: @font-family-base;
} font-size: @font-size-base;
}

View File

@ -103,27 +103,27 @@
} }
&.font-size-0 { &.font-size-0 {
.book-body { .book-body .page-inner section {
font-size:@s-font-size; font-size:@s-font-size;
} }
} }
&.font-size-1 { &.font-size-1 {
.book-body { .book-body .page-inner section {
font-size:@m-font-size; font-size:@m-font-size;
} }
} }
&.font-size-2 { &.font-size-2 {
.book-body { .book-body .page-inner section {
font-size:@l-font-size; font-size:@l-font-size;
} }
} }
&.font-size-3 { &.font-size-3{
.book-body { .book-body .page-inner section {
font-size:@xl-font-size; font-size:@xl-font-size;
} }
} }
&.font-size-4 { &.font-size-4 {
.book-body { .book-body .page-inner section {
font-size:@xxl-font-size; font-size:@xxl-font-size;
} }
} }

View File

@ -1,89 +1,89 @@
.book-header{ .book-header{
#font-settings-wrapper{ #font-settings-wrapper{
position:relative; position:relative;
.dropdown-menu{ .dropdown-menu{
background-color:@header-background; background-color:@header-background;
border-color:@sidebar-divider-color; border-color:@sidebar-divider-color;
padding: 0px; padding: 0px;
.dropdown-caret{ .dropdown-caret{
position: absolute; position: absolute;
top: 14px; top: 14px;
left: -8px; left: -8px;
width: 10px; width: 10px;
height: 18px; height: 18px;
float: left; float: left;
overflow: hidden; overflow: hidden;
.caret-outer{ .caret-outer{
position: absolute; position: absolute;
border-bottom: 9px solid transparent; border-bottom: 9px solid transparent;
border-top: 9px solid transparent; border-top: 9px solid transparent;
border-right: 9px solid rgba(0,0,0,0.1); border-right: 9px solid rgba(0,0,0,0.1);
height: auto; height: auto;
left: 0; left: 0;
top: 0; top: 0;
width: auto; width: auto;
display: inline-block; display: inline-block;
margin-left: -1px; margin-left: -1px;
} }
.caret-inner{ .caret-inner{
position: absolute; position: absolute;
display: inline-block; display: inline-block;
margin-left: -1px; margin-left: -1px;
top: 0; top: 0;
left: 1px; left: 1px;
border-bottom: 9px solid transparent; border-bottom: 9px solid transparent;
border-top: 9px solid transparent; border-top: 9px solid transparent;
border-right: 9px solid @header-background; border-right: 9px solid @header-background;
} }
} }
button{ button{
border: 0; border: 0;
background-color:transparent; background-color:transparent;
color:@header-button-color; color:@header-button-color;
&:hover{ &:hover{
color:@header-button-hover-color; color:@header-button-hover-color;
background-color:@header-button-hover-background; background-color:@header-button-hover-background;
} }
} }
#enlarge-font-size{ #enlarge-font-size{
width: 50%; width: 50%;
font-size:1.4em; font-size:1.4em;
} }
#reduce-font-size{ #reduce-font-size{
width: 50.5%; width: 50.5%;
font-size:1em; font-size:1em;
} }
.btn-group-xs{ .btn-group-xs{
.btn{ .btn{
width: 33.7%; width: 33.7%;
padding: initial; padding: initial;
} }
} }
.list-group{ .list-group{
margin: 0px 0; margin: 0px 0;
.list-group-item{ .list-group-item{
cursor:pointer; cursor:pointer;
background-color:transparent; background-color:transparent;
border-color: @sidebar-divider-color; border-color: @sidebar-divider-color;
border-width: 1px 0 !important; border-width: 1px 0 !important;
&:hover{ &:hover{
color:@header-button-hover-color; color:@header-button-hover-color;
background-color:@header-button-hover-background !important; background-color:@header-button-hover-background !important;
} }
&.active{ &.active{
color:@header-button-hover-color; color:@header-button-hover-color;
background-color:@header-button-hover-background !important; background-color:@header-button-hover-background !important;
} }
} }
} }
&.open{ &.open{
display:block; display:block;
} }
} }
} }
} }
/* /*
@ -91,35 +91,35 @@
*/ */
.color-theme-1{ .color-theme-1{
#font-settings-wrapper{ #font-settings-wrapper{
.dropdown-menu{ .dropdown-menu{
background-color:@sidebar-background-1; background-color:@sidebar-background-1;
border-color:@sidebar-divider-color-1; border-color:@sidebar-divider-color-1;
.dropdown-caret .caret-inner{ .dropdown-caret .caret-inner{
border-right: 9px solid @sidebar-background-1; border-right: 9px solid @sidebar-background-1;
} }
button{ button{
color:@header-button-color-1; color:@header-button-color-1;
&:hover{ &:hover{
color:@header-button-hover-color-1; color:@header-button-hover-color-1;
background-color:@header-button-hover-background-1; background-color:@header-button-hover-background-1;
} }
} }
.list-group{ .list-group{
.list-group-item{ .list-group-item{
border-color:@sidebar-divider-color-1; border-color:@sidebar-divider-color-1;
&:hover{ &:hover{
color:@header-button-hover-color-1; color:@header-button-hover-color-1;
background-color:@header-button-hover-background-1 !important; background-color:@header-button-hover-background-1 !important;
} }
&.active{ &.active{
color:@header-button-hover-color-1; color:@header-button-hover-color-1;
background-color:@header-button-hover-background-1 !important; background-color:@header-button-hover-background-1 !important;
} }
} }
} }
} }
} }
} }
/* /*
@ -127,33 +127,33 @@
*/ */
.color-theme-2{ .color-theme-2{
#font-settings-wrapper{ #font-settings-wrapper{
.dropdown-menu{ .dropdown-menu{
background-color:@sidebar-background-2; background-color:@sidebar-background-2;
border-color:@sidebar-divider-color-2; border-color:@sidebar-divider-color-2;
.dropdown-caret .caret-inner{ .dropdown-caret .caret-inner{
border-right: 9px solid @sidebar-background-2; border-right: 9px solid @sidebar-background-2;
} }
button{ button{
color:@header-button-color-2; color:@header-button-color-2;
&:hover{ &:hover{
color:@header-button-hover-color-2; color:@header-button-hover-color-2;
background-color:@header-button-hover-background-2; background-color:@header-button-hover-background-2;
} }
} }
.list-group{ .list-group{
.list-group-item{ .list-group-item{
border-color:@sidebar-divider-color-2; border-color:@sidebar-divider-color-2;
&:hover{ &:hover{
color:@header-button-hover-color-2; color:@header-button-hover-color-2;
background-color:@header-button-hover-background-2 !important; background-color:@header-button-hover-background-2 !important;
} }
&.active{ &.active{
color:@header-button-hover-color-2; color:@header-button-hover-color-2;
background-color:@header-button-hover-background-2 !important; background-color:@header-button-hover-background-2 !important;
} }
} }
} }
} }
} }
} }

View File

@ -44,12 +44,16 @@
padding-right: 200px; padding-right: 200px;
.transition(margin-left 0.5s ease); .transition(margin-left 0.5s ease);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
a, a:hover { a, a:hover {
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
} }
@media (max-width: 800px) { @media (max-width: 1000px) {
display: none; display: none;
} }

View File

@ -49,10 +49,14 @@
} }
} }
.book.color-theme-1 .book-body { .book.color-theme-1 .book-body {
.navigation:hover{
}
} }
.book.color-theme-2 .book-body { .book.color-theme-2 .book-body {
.navigation:hover{ .navigation {
color: rgba(255, 255, 255, 0.4);
&:hover {
color: rgba(255, 255, 255, 0.9);
}
} }
} }