Skip to content

Commit

Permalink
Merge branch 'nn-redo' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
mlu-explain committed Jun 12, 2023
2 parents c9f6f61 + 04a1fe0 commit 6eaa16f
Show file tree
Hide file tree
Showing 86 changed files with 8,647 additions and 3,886 deletions.
67 changes: 43 additions & 24 deletions code/nn/public/assets/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*/
--font-mono: "Amazon Ember Mono";
--font-heavy: "Amazon Ember Display Heavy";
--font-main: var(--font-mono);
--font-light: var(--font-mono);
--font-main: "Amazon Ember";
--font-light: "Amazon Ember Display Light";

/* Colors
see: https://brand.amazon.com/aws/visual-guidelines-ob/colors/
Expand Down Expand Up @@ -36,7 +36,10 @@
--stone: #d4dada;
--paper: #f1f3f3;
--white: #ffffff;
--bananayellow: #ffe135;
--bananayellow: rgb(255, 223, 80);
--yellow: yellow;
--offpink: rgb(255, 164, 209);
--enjoi: darkorange;

/* Z-Index */
--z-bottom: -100;
Expand All @@ -52,24 +55,28 @@
--primary: var(--darksquidink);
--secondary: var(--darksquidink);

--max-width: 600px;
--max-width: 800px;
--size-default: 16px;

--viz-height: 80vh;
--max-viz-height: 600px;
}

body {
margin: auto;
font-family: var(--font-main);
overflow-x: hidden;
background-color: var(--bg);
/* background: linear-gradient(90deg, var(--paper) 19px, transparent 1%) center,
linear-gradient(var(--paper) 19px, transparent 1%) center, black;
background-size: 20px 20px;
background: conic-gradient(
background-color: var(--bg);
background: radial-gradient(ellipse at center, #ffffff 0%, #e5f7ff 100%);

/* background: conic-gradient(
from 90deg at 1px 1px,
#0000 90deg,
rgba(0, 0, 0, 0.05) 0
rgba(0, 0, 0, 0.025) 0
)
0 0/20px 20px; */
0 0/20px 20px;
background-color: var(--paper); */
}

/* Global Reusable Styles For Convenience */
Expand All @@ -79,19 +86,17 @@ body {
text-align: left;
font-size: var(--size-default);
line-height: 1.5em;
font-family: var(--font-main);
font-family: var(--font-light);
}

.body-header {
max-width: var(--max-width);
margin: 0 auto;
margin: auto;
text-align: left;
font-size: 35px;
font-size: 20px;
line-height: 1.5em;
font-family: var(--font-heavy);
padding-top: 2rem;
padding-bottom: 0.5rem;
text-decoration: underline;
text-transform: uppercase;
text-decoration-color: var(--smile);
}

Expand Down Expand Up @@ -127,8 +132,9 @@ p {
}

.info-tooltip {
color: var(--smile);
font-size: 0.9rem;
color: var(--darksquidink);
font-size: 16px;
font-family: var(--font-light);
}

.interpretation-header {
Expand All @@ -144,14 +150,15 @@ p {
background: var(--squidink);
color: var(--white);
margin: 10px 4px;
font-size: 14px;
font-size: var(--size-default);
font-family: var(--font-light);
}

hr {
margin: 3rem auto;
width: 3%;
border: 3px solid var(--smile);
opacity: 0;
margin: 5px auto;
width: var(--max-width);
border: 1px solid var(--squidink);
opacity: 0.6;
}

.slider {
Expand Down Expand Up @@ -180,14 +187,19 @@ hr {

/* mobile */
@media screen and (max-width: 950px) {
:root {
--viz-height: 60vh;
--max-viz-height: 475px;
}

.body-text {
max-width: 90%;
font-size: 16px;
}

.body-header {
max-width: 90%;
font-size: 30px;
font-size: 20px;
}

.tab-text {
Expand All @@ -210,4 +222,11 @@ hr {
.info-tooltip {
display: none;
}

hr {
margin: 5px auto;
width: 90%;
border: 1px solid var(--squidink);
opacity: 0.6;
}
}
2 changes: 1 addition & 1 deletion code/nn/public/assets/styles/katex.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.katex {
font: normal 1.21em KaTeX_Main, Times New Roman, serif;
font: normal 16px var(--font-light) KaTeX_Main, Times New Roman, serif;
line-height: 1.2;
text-indent: 0;
text-rendering: auto;
Expand Down
214 changes: 214 additions & 0 deletions code/nn/public/assets/styles/origGlobal.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
:root {
/* Fonts
see: http://typography.aka.amazon.com/
*/
--font-mono: "Amazon Ember Mono";
--font-heavy: "Amazon Ember Display Heavy";
--font-main: var(--font-mono);
--font-light: var(--font-mono);

/* Colors
see: https://brand.amazon.com/aws/visual-guidelines-ob/colors/
*/
--squidink: #232f3e;
/* set 1 */
--anchor: #003181;
--sky: #2074d5;
--smile: #ff9900;
--rind: #fbd8bf;
/* set 2 */
--galaxy: #330066;
--cosmos: #df2a5d;
--violet: #7c5aed;
--cyan: #7ce8f4;
/* set 3 */
--seablue: #005276;
--aqua: #007faa;
--lab: #38ef7d;
--mist: #9ffcea;
/* set 4 */
--anchor: #003181;
--sky: #2074d5;
--magenta: #f46ebb;
--peach: #ffad97;
/* neutrals */
--darksquidink: #161e2d;
--stone: #d4dada;
--paper: #f1f3f3;
--white: #ffffff;
--bananayellow: #ffe135;

/* Z-Index */
--z-bottom: -100;
--z-middle: 0;
--z-top: 100;
--z-overlay: 1000;

/* Color Variables */

--bg: var(--paper);
--fg: var(--off-black);
--default: var(--squidink);
--primary: var(--darksquidink);
--secondary: var(--darksquidink);

--max-width: 600px;
--size-default: 16px;
}

body {
margin: auto;
font-family: var(--font-main);
overflow-x: hidden;
background-color: var(--bg);
/* background: linear-gradient(90deg, var(--paper) 19px, transparent 1%) center,
linear-gradient(var(--paper) 19px, transparent 1%) center, black;
background-size: 20px 20px;
background: conic-gradient(
from 90deg at 1px 1px,
#0000 90deg,
rgba(0, 0, 0, 0.05) 0
)
0 0/20px 20px; */
}

/* Global Reusable Styles For Convenience */
.body-text {
max-width: var(--max-width);
margin: 0 auto;
text-align: left;
font-size: var(--size-default);
line-height: 1.5em;
font-family: var(--font-main);
}

.body-header {
max-width: var(--max-width);
margin: 0 auto;
text-align: left;
font-size: 35px;
line-height: 1.5em;
font-family: var(--font-heavy);
padding-top: 2rem;
padding-bottom: 0.5rem;
text-decoration: underline;
text-decoration-color: var(--smile);
}

.centered {
margin: auto;
max-width: var(--max-width);
}

.bold {
font-family: var(--font-heavy);
}

a {
color: var(--darksquidink);
}

a:hover {
color: white;
background: var(--darksquidink);
text-decoration: none;
transition: all 0.1s;
}

h1 {
color: var(--default);
font-family: var(--font-heavy);
}

p {
color: var(--default);
font-family: var(--font-main);
font-weight: none;
}

.info-tooltip {
color: var(--smile);
font-size: 0.9rem;
}

.interpretation-header {
color: var(--squidink);
font-family: var(--font-heavy);
font-size: 1.4rem;
}

.tooltip-div {
padding: 4px;
position: absolute;
max-width: 300px;
background: var(--white);
color: var(--white);
margin: 10px 4px;
font-size: var(--size-default);
line-height: 1.2;
}

hr {
margin: 3rem auto;
width: 3%;
border: 3px solid var(--smile);
opacity: 0;
}

.slider {
-webkit-appearance: none;
width: 100%;
height: 10px;
border-radius: 5px;
background: var(--stone);
outline: none;
opacity: 0.9;
-webkit-transition: 0.2s;
transition: opacity 0.2s;
border-color: var(--squidink);
margin: 8px;
max-width: 300px;
}

.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 20px;
height: 20px;
background: var(--smile);
cursor: pointer;
}

/* mobile */
@media screen and (max-width: 950px) {
.body-text {
max-width: 90%;
font-size: 16px;
}

.body-header {
max-width: 90%;
font-size: 30px;
}

.tab-text {
max-width: 100%;
font-size: 16px;
}

.interpretation-header {
font-size: 1rem;
}

.tooltip-div {
padding: 3px;
width: 200px;
margin: 10px 4px;
font-size: 12px;
display: none;
}

.info-tooltip {
display: none;
}
}
Loading

0 comments on commit 6eaa16f

Please sign in to comment.