Compare commits

..

No commits in common. "1abc13b20fb777ebc8406fcdf20bdf425bdb0e8c" and "0eb1abd26d4080c2c8f744297bacd556a9eec80a" have entirely different histories.

7 changed files with 35 additions and 37 deletions

View File

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

View File

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

View File

@ -261,7 +261,12 @@ As before, we push the desired answer onto the stack:
{{< stack >}} {{< stack >}}
{{< stack_element >}}{{< /stack_element >}} {{< stack_element >}}{{< /stack_element >}}
{{< stack_element >}}1{{< /stack_element >}} {{< stack_element >}}1{{< /stack_element >}}
{{< stack_element >}}\(n\){{< /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 >}}factorial{{< /stack_element >}} {{< stack_element >}}factorial{{< /stack_element >}}
{{< /stack >}} {{< /stack >}}

View File

@ -1,13 +0,0 @@
@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,5 +1,4 @@
@import "variables.scss"; @import "style.scss";
@import "mixins.scss";
$sidenote-accommodate-shrink: 10rem; $sidenote-accommodate-shrink: 10rem;
$sidenote-width: 30rem; $sidenote-width: 30rem;

View File

@ -1,5 +1,28 @@
@import "variables.scss"; $container-width: 45rem;
@import "mixins.scss"; $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;
}
}
body { body {
font-family: $font-body; font-family: $font-body;

View File

@ -1,14 +0,0 @@
$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;