|
| 1 | +/* Modern hint/callout styling */ |
| 2 | +.hint { |
| 3 | + display: flex; |
| 4 | + margin: 1.5em 0; |
| 5 | + padding: 1em 1.25em; |
| 6 | + border-radius: 8px; |
| 7 | + border-left: 4px solid; |
| 8 | + background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%); |
| 9 | + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); |
| 10 | +} |
| 11 | + |
| 12 | +.hint-icon { |
| 13 | + flex-shrink: 0; |
| 14 | + font-size: 1.4em; |
| 15 | + line-height: 1; |
| 16 | + margin-right: 1em; |
| 17 | + margin-top: 0.1em; |
| 18 | +} |
| 19 | + |
| 20 | +.hint-content { |
| 21 | + flex: 1; |
| 22 | + min-width: 0; |
| 23 | +} |
| 24 | + |
| 25 | +.hint-title { |
| 26 | + font-weight: 600; |
| 27 | + font-size: 0.9em; |
| 28 | + text-transform: uppercase; |
| 29 | + letter-spacing: 0.5px; |
| 30 | + margin-bottom: 0.5em; |
| 31 | +} |
| 32 | + |
| 33 | +.hint-content p { |
| 34 | + margin: 0; |
| 35 | + line-height: 1.6; |
| 36 | +} |
| 37 | + |
| 38 | +.hint-content p + p { |
| 39 | + margin-top: 0.75em; |
| 40 | +} |
| 41 | + |
| 42 | +/* Info - Blue */ |
| 43 | +.hint-info { |
| 44 | + border-left-color: #0969da; |
| 45 | + background: linear-gradient(135deg, #f0f7ff 0%, #e8f2fc 100%); |
| 46 | +} |
| 47 | + |
| 48 | +.hint-info .hint-icon { |
| 49 | + color: #0969da; |
| 50 | +} |
| 51 | + |
| 52 | +.hint-info .hint-title { |
| 53 | + color: #0550ae; |
| 54 | +} |
| 55 | + |
| 56 | +/* Warning - Yellow/Orange */ |
| 57 | +.hint-warning { |
| 58 | + border-left-color: #d4a72c; |
| 59 | + background: linear-gradient(135deg, #fff8e6 0%, #fef3cd 100%); |
| 60 | +} |
| 61 | + |
| 62 | +.hint-warning .hint-icon { |
| 63 | + color: #d4a72c; |
| 64 | +} |
| 65 | + |
| 66 | +.hint-warning .hint-title { |
| 67 | + color: #9a6700; |
| 68 | +} |
| 69 | + |
| 70 | +/* Danger - Red */ |
| 71 | +.hint-danger { |
| 72 | + border-left-color: #cf222e; |
| 73 | + background: linear-gradient(135deg, #fff0f0 0%, #ffeaea 100%); |
| 74 | +} |
| 75 | + |
| 76 | +.hint-danger .hint-icon { |
| 77 | + color: #cf222e; |
| 78 | +} |
| 79 | + |
| 80 | +.hint-danger .hint-title { |
| 81 | + color: #a40e26; |
| 82 | +} |
| 83 | + |
| 84 | +/* Success - Green */ |
| 85 | +.hint-success { |
| 86 | + border-left-color: #1a7f37; |
| 87 | + background: linear-gradient(135deg, #f0fff4 0%, #dafbe1 100%); |
| 88 | +} |
| 89 | + |
| 90 | +.hint-success .hint-icon { |
| 91 | + color: #1a7f37; |
| 92 | +} |
| 93 | + |
| 94 | +.hint-success .hint-title { |
| 95 | + color: #116329; |
| 96 | +} |
| 97 | + |
| 98 | +/* Dark mode support */ |
| 99 | +@media (prefers-color-scheme: dark) { |
| 100 | + .hint { |
| 101 | + background: rgba(255, 255, 255, 0.05); |
| 102 | + } |
| 103 | + |
| 104 | + .hint-info { |
| 105 | + background: rgba(9, 105, 218, 0.1); |
| 106 | + } |
| 107 | + |
| 108 | + .hint-warning { |
| 109 | + background: rgba(212, 167, 44, 0.1); |
| 110 | + } |
| 111 | + |
| 112 | + .hint-danger { |
| 113 | + background: rgba(207, 34, 46, 0.1); |
| 114 | + } |
| 115 | + |
| 116 | + .hint-success { |
| 117 | + background: rgba(26, 127, 55, 0.1); |
| 118 | + } |
| 119 | +} |
0 commit comments