|
1 | 1 | /* Custom styles for devnomadic */ |
2 | 2 |
|
| 3 | +/* Override theme's green tag styling completely */ |
| 4 | +.tag, .tag-cloud > a { |
| 5 | + color: #5f6368 !important; |
| 6 | + background-color: #f1f3f4 !important; |
| 7 | + padding: 0.2rem 0.5rem !important; |
| 8 | + border-radius: 0.25rem !important; |
| 9 | + font-size: 0.8rem !important; |
| 10 | + margin: 0.1rem 0.2rem 0.1rem 0 !important; |
| 11 | + display: inline-block !important; |
| 12 | + text-decoration: none !important; |
| 13 | + transition: background-color 0.2s ease !important; |
| 14 | +} |
| 15 | + |
| 16 | +.tag:hover, .tag-cloud > a:hover { |
| 17 | + background-color: #e8eaed !important; |
| 18 | + color: #202124 !important; |
| 19 | + text-decoration: none !important; |
| 20 | +} |
| 21 | + |
| 22 | +/* Remove Font Awesome icon from tags */ |
| 23 | +.tag:before, .tag-cloud > a:before { |
| 24 | + display: none !important; |
| 25 | + content: none !important; |
| 26 | +} |
| 27 | + |
3 | 28 | /* Post tags styling */ |
4 | 29 | .post-tags { |
5 | 30 | margin: 0.5rem 0; |
6 | 31 | } |
7 | 32 |
|
8 | 33 | .post-tags .tag { |
9 | | - display: inline-block; |
10 | | - background-color: #f1f3f4; |
11 | | - color: #5f6368; |
12 | | - padding: 0.2rem 0.5rem; |
13 | | - margin: 0.1rem 0.2rem 0.1rem 0; |
14 | | - border-radius: 0.25rem; |
15 | | - font-size: 0.8rem; |
16 | | - text-decoration: none; |
17 | | - transition: background-color 0.2s ease; |
| 34 | + display: inline-block !important; |
| 35 | + background-color: #f1f3f4 !important; |
| 36 | + color: #5f6368 !important; |
| 37 | + padding: 0.2rem 0.5rem !important; |
| 38 | + margin: 0.1rem 0.2rem 0.1rem 0 !important; |
| 39 | + border-radius: 0.25rem !important; |
| 40 | + font-size: 0.8rem !important; |
| 41 | + text-decoration: none !important; |
| 42 | + transition: background-color 0.2s ease !important; |
18 | 43 | } |
19 | 44 |
|
20 | 45 | .post-tags .tag:hover { |
21 | | - background-color: #e8eaed; |
22 | | - color: #202124; |
| 46 | + background-color: #e8eaed !important; |
| 47 | + color: #202124 !important; |
23 | 48 | } |
24 | 49 |
|
25 | | -/* Tag cloud styling */ |
26 | | -.tag-cloud .tag-item { |
27 | | - display: inline-block; |
28 | | - margin: 0.2rem 0.5rem 0.2rem 0; |
| 50 | +.post-tags .tag:before { |
| 51 | + display: none !important; |
| 52 | + content: none !important; |
| 53 | +} |
| 54 | + |
| 55 | +/* Tag posts styling for tags page */ |
| 56 | +.tag-posts { |
| 57 | + list-style: none; |
| 58 | + padding: 0; |
| 59 | + margin-bottom: 30px; |
29 | 60 | } |
30 | 61 |
|
31 | | -.tag-cloud .tag-link { |
| 62 | +.tag-posts li { |
| 63 | + margin: 0.5rem 0; |
| 64 | + padding: 0.75rem; |
32 | 65 | background-color: #f8f9fa; |
33 | | - color: #5f6368; |
34 | | - padding: 0.3rem 0.6rem; |
35 | | - border-radius: 0.3rem; |
| 66 | + border-radius: 0.25rem; |
| 67 | + border-left: 3px solid #c94570; |
| 68 | +} |
| 69 | + |
| 70 | +.tag-posts li a { |
| 71 | + color: #c94570; |
36 | 72 | text-decoration: none; |
| 73 | + font-weight: 500; |
| 74 | +} |
| 75 | + |
| 76 | +.tag-posts li a:hover { |
| 77 | + text-decoration: underline; |
| 78 | +} |
| 79 | + |
| 80 | +.post-date { |
| 81 | + color: #5f6368; |
37 | 82 | font-size: 0.9rem; |
38 | | - transition: all 0.2s ease; |
| 83 | + display: block; |
| 84 | + margin-top: 0.25rem; |
39 | 85 | } |
40 | 86 |
|
41 | | -.tag-cloud .tag-link:hover { |
42 | | - background-color: #e8eaed; |
43 | | - color: #202124; |
44 | | - transform: translateY(-1px); |
| 87 | +@media (max-width: 600px) { |
| 88 | + .post-date { |
| 89 | + font-size: 0.8em; |
| 90 | + } |
45 | 91 | } |
46 | 92 |
|
47 | 93 | /* Post link wrapper styling */ |
|
0 commit comments