|
1 | | -/* Example styling for branding */ |
| 1 | +/* --- Global Typography & Background --- */ |
| 2 | +body { |
| 3 | + margin: 0; |
| 4 | + font-family: "Inter", "Segoe UI", sans-serif; |
| 5 | + background: linear-gradient(135deg, #e3f2fd 0%, #ede7f6 40%, #f3e5f5 100%); |
| 6 | + background-attachment: fixed; |
| 7 | + color: #222; |
| 8 | + transition: background 0.6s ease; |
| 9 | + min-height: 100vh; |
| 10 | +} |
| 11 | + |
| 12 | +/* Optional: add a slight overlay for a subtle frosted effect */ |
| 13 | +body::after { |
| 14 | + content: ""; |
| 15 | + position: fixed; |
| 16 | + top: 0; |
| 17 | + left: 0; |
| 18 | + right: 0; |
| 19 | + bottom: 0; |
| 20 | + background: radial-gradient( |
| 21 | + circle at top left, |
| 22 | + rgba(63, 81, 181, 0.08), |
| 23 | + rgba(103, 58, 183, 0.08) |
| 24 | + ); |
| 25 | + pointer-events: none; |
| 26 | + z-index: -1; |
| 27 | +} |
| 28 | + |
| 29 | +/* --- Header Banner (Branding) --- */ |
2 | 30 | body::before { |
3 | | - content: "Learn PostgreSQL"; |
| 31 | + content: " Learn PostgreSQL"; |
4 | 32 | display: block; |
5 | 33 | text-align: center; |
6 | | - font-size: 1.2rem; |
7 | | - font-weight: bold; |
8 | | - padding: 10px; |
9 | | - background-color: #3f51b5; |
10 | | - color: white; |
| 34 | + font-size: 1.25rem; |
| 35 | + font-weight: 600; |
| 36 | + letter-spacing: 0.5px; |
| 37 | + padding: 12px; |
| 38 | + background: linear-gradient(90deg, #3f51b5, #5c6bc0, #7e57c2); |
| 39 | + color: #fff; |
| 40 | + box-shadow: 0 2px 6px rgba(63, 81, 181, 0.3); |
| 41 | + border-bottom: 1px solid rgba(255, 255, 255, 0.2); |
11 | 42 | } |
12 | 43 |
|
| 44 | +/* --- PDF Link Highlight --- */ |
13 | 45 | a[href$=".pdf"] { |
14 | 46 | color: #ff5722; |
15 | | - font-weight: bold; |
| 47 | + font-weight: 600; |
| 48 | + text-decoration: underline dotted; |
| 49 | + transition: color 0.3s ease; |
| 50 | +} |
| 51 | + |
| 52 | +a[href$=".pdf"]:hover { |
| 53 | + color: #e64a19; |
| 54 | + text-decoration: underline solid; |
16 | 55 | } |
17 | 56 |
|
18 | | -/* Back-to-Top Button */ |
| 57 | +/* --- Back-to-Top Button --- */ |
19 | 58 | .back-to-top { |
20 | 59 | position: fixed; |
21 | 60 | right: 20px; |
22 | 61 | bottom: 24px; |
23 | | - width: 50px; |
24 | | - height: 50px; |
25 | | - border-radius: 20%; |
| 62 | + width: 52px; |
| 63 | + height: 52px; |
| 64 | + border-radius: 50%; |
26 | 65 | border: none; |
27 | | - background: #3f51b5; |
| 66 | + background: linear-gradient(145deg, #3f51b5, #5c6bc0); |
| 67 | + box-shadow: 0 6px 14px rgba(63, 81, 181, 0.3); |
28 | 68 | color: #fff; |
29 | | - font-size: 22px; |
| 69 | + font-size: 24px; |
30 | 70 | cursor: pointer; |
31 | 71 | opacity: 0; |
32 | 72 | transform: translateY(10px); |
33 | | - transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease; |
| 73 | + transition: opacity 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; |
34 | 74 | z-index: 9999; |
35 | | - display: none; /* hidden by default */ |
| 75 | + display: flex; |
36 | 76 | align-items: center; |
37 | 77 | justify-content: center; |
38 | 78 | } |
39 | 79 |
|
40 | 80 | .back-to-top:hover, |
41 | 81 | .back-to-top:focus { |
42 | | - background: #303f9f; |
| 82 | + background: linear-gradient(145deg, #303f9f, #512da8); |
| 83 | + box-shadow: 0 8px 18px rgba(63, 81, 181, 0.4); |
| 84 | + transform: translateY(-3px); |
43 | 85 | outline: none; |
44 | 86 | } |
45 | 87 |
|
46 | 88 | .back-to-top:active { |
47 | 89 | transform: translateY(1px); |
48 | 90 | } |
49 | 91 |
|
| 92 | +/* --- Docsify Content Area --- */ |
| 93 | +#app { |
| 94 | + padding-top: 10px; |
| 95 | +} |
| 96 | + |
| 97 | +.markdown-section h1, |
| 98 | +.markdown-section h2, |
| 99 | +.markdown-section h3 { |
| 100 | + color: #3f51b5; |
| 101 | + font-weight: 600; |
| 102 | +} |
| 103 | + |
| 104 | +.markdown-section a { |
| 105 | + color: #3949ab; |
| 106 | + text-decoration: none; |
| 107 | + transition: color 0.3s ease; |
| 108 | +} |
| 109 | + |
| 110 | +.markdown-section a:hover { |
| 111 | + color: #1a237e; |
| 112 | + text-decoration: underline; |
| 113 | +} |
| 114 | + |
| 115 | +/* --- Reduced Motion Accessibility --- */ |
50 | 116 | @media (prefers-reduced-motion: reduce) { |
51 | 117 | .back-to-top { |
52 | 118 | transition: none; |
53 | 119 | } |
54 | 120 | } |
| 121 | + |
| 122 | +/* --- Smooth Scroll --- */ |
| 123 | +html { |
| 124 | + scroll-behavior: smooth; |
| 125 | +} |
| 126 | + |
| 127 | +/* --- Vertical Border Before Each Heading --- */ |
| 128 | +.markdown-section h1, |
| 129 | +.markdown-section h2, |
| 130 | +.markdown-section h3 { |
| 131 | + border-left: 4px solid #7e57c2; /* purple vertical line */ |
| 132 | + padding-left: 12px; /* space between border and text */ |
| 133 | + margin-left: 0; |
| 134 | + color: #3f51b5; /* main heading color */ |
| 135 | + font-weight: 600; |
| 136 | + line-height: 1.4; |
| 137 | + margin-top: 1.5em; |
| 138 | +} |
0 commit comments