Compare commits

...

3 Commits

Author SHA1 Message Date
1abc13b20f Allow stack cells to be bigger
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-08 00:38:19 -08:00
cdc9e28c90 Remove sidenote from stack post 2020-03-08 00:38:05 -08:00
8a48a110ff Avoid duplicating generated CSS by splitting SASS into separate files 2020-03-08 00:35:11 -08:00
7 changed files with 37 additions and 35 deletions

View File

@ -1,4 +1,5 @@
@import "style.scss";
@import "variables.scss";
@import "mixins.scss";
.gmachine-instruction {
display: flex;

View File

@ -1,4 +1,5 @@
@import "style.scss";
@import "variables.scss";
@import "mixins.scss";
.stack {
display: flex;
@ -10,7 +11,7 @@
.stack-element {
text-align: center;
height: 1.5rem;
min-height: 1.5rem;
&:not(:last-child) {
border-bottom: $standard-border;

View File

@ -261,12 +261,7 @@ As before, we push the desired answer onto the stack:
{{< stack >}}
{{< stack_element >}}{{< /stack_element >}}
{{< stack_element >}}1{{< /stack_element >}}
{{< stack_element >}}
{{< sidenote "right" "zero-note" "\(n\)" >}}
At this point, we know that \(n\) is equal to 0. However, for the sake of consistency,
and to avoid confusion, I do not substitute 0 here.
{{< /sidenote >}}
{{< /stack_element >}}
{{< stack_element >}}\(n\){{< /stack_element >}}
{{< stack_element >}}factorial{{< /stack_element >}}
{{< /stack >}}

View File

@ -0,0 +1,13 @@
@import "variables.scss";
@mixin bordered-block {
border: $standard-border;
border-radius: .2rem;
}
@mixin below-container-width {
@media screen and (max-width: $container-width){
@content;
}
}

View File

@ -1,4 +1,5 @@
@import "style.scss";
@import "variables.scss";
@import "mixins.scss";
$sidenote-accommodate-shrink: 10rem;
$sidenote-width: 30rem;

View File

@ -1,28 +1,5 @@
$container-width: 45rem;
$standard-border-width: .075rem;
$primary-color: #36e281;
$primary-color-dark: darken($primary-color, 10%);
$code-color: #f0f0f0;
$code-color-dark: darken($code-color, 10%);
$border-color: #bfbfbf;
$font-heading: "Lora", serif;
$font-body: "Raleway", serif;
$font-code: "Inconsolata", monospace;
$standard-border: $standard-border-width solid $border-color;
@mixin bordered-block {
border: $standard-border;
border-radius: .2rem;
}
@mixin below-container-width {
@media screen and (max-width: $container-width){
@content;
}
}
@import "variables.scss";
@import "mixins.scss";
body {
font-family: $font-body;

View File

@ -0,0 +1,14 @@
$container-width: 45rem;
$standard-border-width: .075rem;
$primary-color: #36e281;
$primary-color-dark: darken($primary-color, 10%);
$code-color: #f0f0f0;
$code-color-dark: darken($code-color, 10%);
$border-color: #bfbfbf;
$font-heading: "Lora", serif;
$font-body: "Raleway", serif;
$font-code: "Inconsolata", monospace;
$standard-border: $standard-border-width solid $border-color;