Skip to content

Commit de133fd

Browse files
committed
Refactor button styles to use purple theme and update code block font to Consolas; add tip-sharing.js file
1 parent 89343fc commit de133fd

3 files changed

Lines changed: 14 additions & 21 deletions

File tree

Web/Pages/Tips/Details.cshtml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
@if (!string.IsNullOrEmpty(Model.ViewModel.Tip.Category))
176176
{
177177
<a asp-page="/Tips/Category" asp-route-category="@Model.ViewModel.Tip.Category"
178-
class="btn btn-outline-primary btn-sm mt-2 d-block">
178+
class="btn btn-outline-purple btn-sm mt-2 d-block">
179179
More from @Model.ViewModel.Tip.Category
180180
</a>
181181
}
@@ -187,15 +187,15 @@
187187

188188
<style>
189189
.btn-outline-x {
190-
color: #1DA1F2;
191-
border-color: #1DA1F2;
190+
color: #563ACC;
191+
border-color: #563ACC;
192192
font-weight: bold;
193193
}
194194
195195
.btn-outline-x:hover {
196196
color: #fff;
197-
background-color: #1DA1F2;
198-
border-color: #1DA1F2;
197+
background-color: #563ACC;
198+
border-color: #563ACC;
199199
}
200200
201201
.btn-outline-purple {
@@ -222,8 +222,9 @@
222222
.tip-content .copy-button {
223223
position: absolute !important;
224224
right: 0.5rem !important;
225-
top: 0.5rem !important;
225+
top: 0.35rem !important;
226226
padding: 0.25rem 0.5rem !important;
227+
margin-top: 0.5rem;
227228
font-size: 0.875rem !important;
228229
line-height: 1.5 !important;
229230
color: #6c757d !important;
@@ -255,14 +256,13 @@
255256
}
256257
257258
.tip-content code {
258-
background-color: #f8f9fa;
259+
font-family: Consolas, monospace;
259260
padding: 0.2rem 0.4rem;
260261
border-radius: 0.25rem;
261262
font-size: 0.9em;
262263
}
263264
264265
.tip-content pre {
265-
background-color: #f8f9fa;
266266
padding: 1rem;
267267
border-radius: 0.375rem;
268268
overflow-x: auto;
@@ -271,18 +271,17 @@
271271
272272
/* Ensure Prism.js styles take precedence over our generic styles */
273273
.tip-content pre[class*="language-"] {
274-
background-color: transparent !important;
275274
padding: 1rem !important;
276-
border-radius: 0.375rem !important;
275+
border-radius: 0.5rem !important;
277276
overflow-x: auto !important;
278277
margin-bottom: 1.5rem !important;
279278
}
280279
281280
.tip-content code[class*="language-"] {
282-
background-color: transparent !important;
283-
padding: 0 !important;
284-
border-radius: 0 !important;
281+
font-family: Consolas, monospace !important;
285282
font-size: inherit !important;
283+
padding-top: 0 !important;
284+
display: block !important;
286285
}
287286
288287
.tip-content blockquote {

Web/wwwroot/css/site.css

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,6 @@ body {
400400
text-align: start;
401401
}
402402

403-
/* Import modern code fonts */
404-
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&display=swap');
405-
406403
/* Basic code block styling with theme support */
407404
pre[class*="language-"] {
408405
position: relative;
@@ -415,16 +412,13 @@ pre[class*="language-"] {
415412
transition: border-color 0.3s ease;
416413
}
417414

418-
/* Code styling with modern fonts */
415+
/* Code styling with Consolas fonts */
419416
pre[class*="language-"] code,
420417
code[class*="language-"],
421418
:not(pre) > code {
422-
font-family: 'Fira Code', 'JetBrains Mono', 'Source Code Pro', 'Cascadia Code', 'SF Mono', Consolas, monospace;
419+
font-family: Consolas, monospace;
423420
font-size: 0.875rem;
424-
font-weight: 500;
425421
line-height: 1.6;
426-
letter-spacing: 0.025em;
427-
font-feature-settings: "liga" 1, "calt" 1;
428422
-webkit-font-smoothing: antialiased;
429423
-moz-osx-font-smoothing: grayscale;
430424
}

Web/wwwroot/js/tip-sharing.js

Whitespace-only changes.

0 commit comments

Comments
 (0)