Skip to content

Commit 86fb23f

Browse files
committed
Add a Git cheat sheet
1 parent 82b2a5c commit 86fb23f

File tree

8 files changed

+1021
-0
lines changed

8 files changed

+1021
-0
lines changed

assets/sass/application.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ $baseurl: "{{ .Site.BaseURL }}{{ if (and (ne .Site.BaseURL "/") (ne .Site.BaseUR
2727
@import 'book2';
2828
@import 'lists';
2929
@import 'about';
30+
@import 'cheat-sheet';
3031
@import 'dark-mode';
3132
@import 'git-turns-20';
3233

assets/sass/cheat-sheet.scss

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
.cheat-sheet {
2+
.command {
3+
background: #f0efe7;
4+
padding: 10px;
5+
border-radius: 10px;
6+
border: 1px solid #e0ddd0;
7+
display: flex;
8+
font-size: 1rem;
9+
flex-direction: column;
10+
gap: 5px;
11+
12+
svg {
13+
height: auto;
14+
width: 100%;
15+
}
16+
17+
h3 {
18+
color: var(--font-color);
19+
line-height: 1em;
20+
font-size: 1.1rem;
21+
margin-bottom: 8px;
22+
font-weight: 500;
23+
font-family: sans-serif;
24+
}
25+
26+
label {
27+
display: block;
28+
margin-top: 10px;
29+
}
30+
31+
code {
32+
background: #e8e6db;
33+
color: var(--font-color);
34+
border-radius: 3px;
35+
display: inline-block;
36+
padding: 4px 8px;
37+
font-family: Courier, monospace;
38+
font-size: 1rem;
39+
line-height: 18px;
40+
font-variant-ligatures: none;
41+
margin-bottom: 0;
42+
/* color: var(--orange);*/
43+
}
44+
}
45+
46+
h1 {
47+
text-align: center;
48+
color: var(--font-color);
49+
margin-bottom: 30px;
50+
font-size: 36px;
51+
line-height: 44px;
52+
font-weight: 400;
53+
}
54+
55+
section {
56+
border-radius: 5px;
57+
padding: 15px;
58+
margin-bottom: 10px;
59+
display: grid;
60+
gap: 10px;
61+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
62+
63+
@media (max-width: 940px) {
64+
& {
65+
grid-template-columns: 1fr;
66+
}
67+
}
68+
69+
70+
h2 {
71+
grid-column: 1/3;
72+
73+
margin-top: 0;
74+
font-size: 1.2rem;
75+
font-weight: 700;
76+
line-height: 1.2;
77+
color: var(--orange);
78+
}
79+
}
80+
81+
82+
83+
84+
.commit-ref {
85+
background-color: var(--callout-color);
86+
border-left: 4px solid var(--orange);
87+
display: block;
88+
89+
.intro {
90+
margin: 16px 0;
91+
}
92+
93+
dl {
94+
display: grid;
95+
grid-template-columns: auto 1fr;
96+
gap: 8px 16px;
97+
margin: 0;
98+
99+
dt {
100+
&::before {
101+
content: "";
102+
font-size: 18px;
103+
color: #666;
104+
}
105+
}
106+
107+
dd {
108+
font-family: monospace;
109+
padding: 4px 8px;
110+
}
111+
}
112+
}
113+
114+
.or {
115+
font-weight: 700;
116+
font-size: 0.8em;
117+
display: block;
118+
margin: 4px 0;
119+
margin-left: 30px;
120+
font-family: sans-serif;
121+
}
122+
123+
}

0 commit comments

Comments
 (0)