Skip to content

Commit 013e31c

Browse files
[RZA-250159]: update social-media image (#164)
2 parents 34a50eb + d6231cd commit 013e31c

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

src/assets/styles/shortcut.css

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
/* Help Menu Styles */
2+
.container__shortcut {
3+
border: 2px dotted red;
4+
}
25

36
.help-popup {
47
display: none;
@@ -11,10 +14,14 @@
1114
z-index: 1000;
1215
justify-content: center;
1316
align-items: center;
17+
content-visibility: none;
1418
}
19+
1520
.help-popup.is-open {
1621
display: flex;
22+
content-visibility: visible;
1723
}
24+
1825
.help-menu {
1926
color: #222;
2027
background: #fff;
@@ -28,6 +35,7 @@
2835
overflow: hidden;
2936
border: 1.5px solid #e1e4e8;
3037
}
38+
3139
.help-menu-header {
3240
display: flex;
3341
justify-content: space-between;
@@ -36,11 +44,13 @@
3644
border-bottom: 1px solid #e1e4e8;
3745
background: #f6f8fa;
3846
}
47+
3948
.help-menu-header h2 {
4049
margin: 0;
4150
font-size: 19px;
4251
font-weight: 700;
4352
}
53+
4454
.close-button {
4555
background: none;
4656
border: none;
@@ -51,9 +61,11 @@
5161
border-radius: 4px;
5262
transition: background 0.15s;
5363
}
64+
5465
.close-button:hover {
5566
background: #eaecef;
5667
}
68+
5769
.help-menu-content.grid {
5870
display: flex;
5971
gap: 0;
@@ -65,6 +77,7 @@
6577
/* background: #f6f8fa; */
6678
position: relative;
6779
}
80+
6881
.shortcut-section {
6982
flex: 1;
7083
min-width: 0;
@@ -78,12 +91,15 @@
7891
font-size: 15px;
7992
max-width: 320px;
8093
}
94+
8195
.shortcut-section:first-child {
8296
margin-left: 0;
8397
}
98+
8499
.shortcut-section:last-child {
85100
margin-right: 0;
86101
}
102+
87103
.shortcut-section h3 {
88104
font-size: 15px;
89105
font-weight: 700;
@@ -93,6 +109,7 @@
93109
color: #24292e;
94110
border-radius: 6px 6px 0 0;
95111
}
112+
96113
.shortcut-table {
97114
width: 100%;
98115
border-collapse: separate;
@@ -104,8 +121,10 @@
104121
overflow: hidden;
105122
font-size: 14px;
106123
}
124+
107125
.shortcut-table tr {
108-
height: 2.2em; /* or use min-height if you prefer */
126+
height: 2.2em;
127+
/* or use min-height if you prefer */
109128
}
110129

111130
.shortcut-table td {
@@ -117,12 +136,15 @@
117136
background: transparent;
118137
transition: background 0.15s;
119138
}
139+
120140
.shortcut-table tr:last-child td {
121141
border-bottom: none;
122142
}
143+
123144
.shortcut-table tr:hover td {
124145
background: #f0f3f6;
125146
}
147+
126148
.shortcut-table kbd {
127149
background: #f6f8fa;
128150
border: 1px solid #d1d5da;
@@ -134,15 +156,19 @@
134156
font-family: inherit;
135157
box-shadow: 0 1px 0 #d1d5da;
136158
}
159+
137160
.shortcut-table tr:not(:last-child) {
138-
border-bottom: 1px solid #eee; /* optional: adds a subtle divider */
161+
border-bottom: 1px solid #eee;
162+
/* optional: adds a subtle divider */
139163
}
164+
140165
@media (max-width: 600px) {
141166
.help-menu-content.grid {
142167
flex-direction: column;
143168
gap: 12px;
144169
padding: 10px 2px;
145170
}
171+
146172
.shortcut-section {
147173
margin: 0 0 12px 0;
148174
border-radius: 8px;
@@ -153,6 +179,7 @@
153179
.keys {
154180
text-align: end;
155181
}
182+
156183
.rows {
157184
margin: 3px;
158-
}
185+
}

src/layouts/BaseHead.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const { title, description, ogImage, articleDate } = Astro.props;
1111
const titleSeparator = "";
1212
const siteTitle = `${title} ${titleSeparator} ${siteConfig.title}`;
1313
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
14-
const socialImageURL = new URL(ogImage ? ogImage : "/assets/icons/logo.png", Astro.url).href;
14+
const socialImageURL = new URL(ogImage ? ogImage : "/assets/images/ABCD-blue.png", Astro.url).href;
1515
---
1616

1717
<meta charset="utf-8" />

0 commit comments

Comments
 (0)