forked from csaladenes/course-datascience
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy paths2_example3.css
More file actions
94 lines (75 loc) · 2.45 KB
/
s2_example3.css
File metadata and controls
94 lines (75 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/* This is the level 3 CSS file. It demonstrates some more complex CSS options. */
/* Feel free to use any for your page. Try to experiment with the values, or copy them into a new file and use that instead. */
/* If this is too much, you can always go back to level_1.css. */
/* These are comments in CSS. Comments don't do anything except explain your working to make code easier to understand. */
/* We're importing a font - Raleway - from Google fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@100;200;300;400;500&display=swap');
/* Do you want to use a different font? Go to https://fonts.google.com/ and pick one! */
body { /* We can style any HTML element by using its name - here we're styling the body */
/* We want text that uses a clean sans-serif font, is usually 16px big and close to black */
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 16px;
color: #333;
line-height: 1.6;
/* we want a white page, that's centered and not too wide */
background-color: #fff;
margin:0 auto;
max-width: min(80vw, 1200px);
padding-top: 60px;
}
/* Headings */
h1, h2, h3, h4, h5, h6 {
color: #333;
margin-top: 24px;
margin-bottom: 16px;
font-weight: 600;
/* Keep the headings on their own line */
clear: both;
}
h1 {
font-size: 3em;
font-family: "Raleway", sans-serif;
font-weight: 500;
font-optical-sizing: auto;
font-style: normal;
}
h2 {
font-size: 1.75em;
}
/* Paragraph */
p {
margin-bottom: 1em;
font-weight: 300;
}
section {
/* Add a thick black top border to each section */
border-top: 4px solid #000;
display: flex;
align-items: flex-start;
gap: 20px; /* Adjust the gap between the text and the chart as needed */
}
section .chart-description {
flex: 1; /* Allows the paragraph to take up the remaining space */
position: -webkit-sticky; /* For Safari */
position: sticky;
top: 30px; /* Adjust this value to control the distance from the top */
max-width: min(500px, 30vw);
}
section figure {
flex: 1; /* Allows the figure to take up equal space */
height: 600px; /* Adjust the height as needed for your chart */
/* Additional styles for your figure */
}
/* Links */
a {
color: #065f46;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Images */
img {
max-width: 100%;
height: auto;
}