Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,141 changes: 888 additions & 253 deletions mathbook-add-on.css

Large diffs are not rendered by default.

193 changes: 0 additions & 193 deletions scss/_addon.scss
Original file line number Diff line number Diff line change
@@ -1,193 +0,0 @@
.hint {
display:block;

[knowl] {
font-weight:lighter;
}
}

img {
display: block;
margin-left: auto;
margin-right: auto;
}


div.center img {
display: block;
margin-left: auto;
margin-right: auto;
}

.caption {
margin-top: 10px;
margin-left: auto;
margin-right: auto;
font-size: 100%;
text-align: center;
}

.caption .counter:after { content: " ";}

/* above repeated for captions outside figures */

.caption .heading {
font-weight: bold;
}

.caption .heading:after { content: " ";}

.caption .counter {
font-weight: bold;
}

.unprocessed {
padding: 8px;
background-color: rgb(255,230,230)
}

.unprocessed .unprocessed {
margin: 8px;
background-color: rgb(255,200,255)
}

.unprocessed .unprocessed .unprocessed {
margin: 8px;
background-color: rgb(205,205,255)
}

.l {
text-align: left;
}

.c {
text-align: center;
}

.r {
text-align: right;
}

.vv {
border-left: 2px solid #000000;
border-right: 2px solid #000000;
}

.vcv {
border-left: 2px solid #000000;
border-right: 2px solid #000000;
text-align: center;
}

.vcvv {
border-left: 2px solid #000000;
border-right: 4px solid #000000;
text-align: center;
}

.vlv {
border-left: 2px solid #000000;
border-right: 2px solid #000000;
text-align: left;
}

.vrv {
border-left: 2px solid #000000;
border-right: 2px solid #000000;
text-align: right;
}

.rv {
border-right: 2px solid #000000;
text-align: right;
}

.lv {
border-right: 2px solid #000000;
text-align: left;
}

.cv {
border-right: 2px solid #000000;
text-align: center;
}

.Xv {
border-right: 2px solid #000000;
text-align: left;
}
.vc {
border-left: 2px solid #000000;
text-align: center;
}

.abstract + .preface {
margin-top: 35px;
}

#navbar #toc h2 + h2 {
margin-top: 5px;
}

// TODO copy exercise like to others
.example-like > .heading, .exercise-like > .heading, .remark-like > .heading, aside-like > .heading, .exercise-like > h5, .example-like > h5, .remark-like > h5, .aside-like > h5 {
display: inline;
font-weight: bold;
font-size: 19px;
font-size: 1.05em;
}

.example-like > h5 + p, .exercise-like > h5 + p, .remark-like > h5 + p, .aside-like > h5 + p {
display: inline;
}

.exercise-like > h5:after, .example-like > h5:after, .remark-like > h5:after {
content:". ";
}

.exercise-like > h5 .counter:before, .example-like > h5 .counter:before, .remark-like > h5 .counter:before {
content:" ";
}

article.example-like > article.remark-like {
margin-top: 10pt;
}

.minipage + .minipage {
display: inline-block;
}

#prevnext {
right: 20px;
margin-right: 1px;
margin-top: -45px;
margin-bottom: -10px;
text-align: right;
max-width: 960px;
}

/*
* The next section link at the footer of a section
* TODO use link-directional mixin instead
*/
.nextsection {
text-align: center;
padding: 10px;
background-color: maroon;
color: #FFEECC;
font-size:
}

// TODO integrate this somehow!
/* sup knowls are used for footnotes */
sup [knowl] {
padding: 0px 0px 0px 3px;
}

sup .active[knowl] {
padding: 0px 0px 0px 3px;
}

sup [knowl]:hover {
padding: 0px 0px 0px 3px;
}
11 changes: 3 additions & 8 deletions scss/content/mixins/_environment.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@import "../../shared/_heading.scss";
@import "../../shared/_knowl.scss";

$environment-heading-font-size: $typography-font-size-h5 !default;
// $environment-heading-font-size: $typography-font-size-h5 !default;
// $environment-heading-after: ".\2009 " !default;
$environment-heading-after: "" !default;

Expand All @@ -16,24 +16,19 @@ $environment-heading-after: "" !default;
@include heading-base($heading-after:$environment-heading-after);

// Adjust the heading size/line-height/margins
@include typography-heading-size($environment-heading-font-size);
// @include typography-heading-size($environment-heading-font-size);

// TODO should we move links into heading-base?
/* Support links in headings */
a {
@include heading-link();
}

/* Support knowl links in headings */
*[knowl] {
@include knowl-link($font-type:serif);
margin-left:-3px;
}
}

// Default to inline heading
@include heading-force-inline();

// One line-height bottom margin
@include margin-trailer(1);
// @include margin-trailer(1);
}
7 changes: 1 addition & 6 deletions scss/content/mixins/_section.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,8 @@ $section-heading-size-level-3: h5 !default;
@include heading-link();
}

/* Support knowl links in headings */
*[knowl] {
@include knowl-link($font-type: serif);
margin-left:-3px;
}
}
@include margin-trailer($section-margin-lines);
// @include margin-trailer($section-margin-lines);
}

@mixin section-level($level) {
Expand Down
67 changes: 34 additions & 33 deletions scss/content/partials/_environments.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,34 @@
@include environment-base();
}

/*
.definition-like {
@extend %environment-base;
}
*/

/*
.theorem-like {
@extend %environment-base;

p, ol, ul {
font-style: italic;
}

.statement {

display:inline;

p:first-child {
display:inline;
}

&:last-child, &:last-of-type {
margin-bottom:0;
}
}
// .statement {
//
// display:inline;
//
// p:first-child {
// display:inline;
// }
//
// &:last-child, &:last-of-type {
// margin-bottom:0;
// }
// }
}
*/

.proof {

Expand Down Expand Up @@ -137,20 +141,20 @@
@include environment-base();

& {
@include heading-selector {
font-style: italic;
font-weight:normal;
// @include heading-selector {
// font-style: italic;
// font-weight:normal;
/* It helps to have a little bit of extra space after proof */
margin-right:.25em;
}
// margin-right:.25em;
// }

position:relative;
// position:relative;

/* Cut the border up into the top margin */
margin-top: -0.5em;
padding-top: 0;
// margin-top: -0.5em;
// padding-top: 0;

@include margin-trailer(1.0);
// @include margin-trailer(1.0);

@media screen and (max-width: $screen-md-max) {
/* Bring border out of the right margin */
Expand All @@ -172,42 +176,39 @@

}

/*
.hiddenproof a>.heading {
margin-top: 0px;
margin-bottom: 0px;
}
*/

/*
.remark-like {
@extend %environment-base;
}
*/

.listitem {
@extend %environment-base;
}

/*
.example-like {
@extend %environment-base;
}

.exercise-like {
@extend %environment-base;
}
*/

// TODO what is this? does it belong in content or ui?
// TODO tie values into variables for vertical rythym and color

/*
.aside-like {
@extend %environment-base;

// From addon
// -------------
// padding: 8px 15px 10px 15px;
// margin: 5px 0px 5px 10px;
// background-color: rgb(245,250,255);
// border: 2px solid rgb(220,235,250);
//
// .aside-like {
// background-color: rgb(250,255,245);
// border: 1px dotted #aaa;
// }
}
*/

10 changes: 5 additions & 5 deletions scss/content/partials/_figure.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ $figure-heading-after: ". " !default;

figure {

& {
/* maintain vertical rhythym with line-height sized trailing margin */
@include margin-trailer;
}
// & {
// /* maintain vertical rhythym with line-height sized trailing margin */
// @include margin-trailer;
// }

&.wrap {
float: right;
Expand Down Expand Up @@ -49,7 +49,7 @@ figcaption {

& {
@include adjust-font-size-to($typography-font-size-base);
margin: 0 auto;
// margin: 0 auto;
padding-left: 2em;
@include margin-leader;
}
Expand Down
Loading