| 1 |
.list-container { |
| 2 |
padding: 40px 24px; |
| 3 |
margin: 0 auto; |
| 4 |
max-width: 800px; |
| 5 |
border-radius: 8px; |
| 6 |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); |
| 7 |
} |
| 8 |
|
| 9 |
.list-title { |
| 10 |
font-size: 1.75rem; |
| 11 |
font-weight: 600; |
| 12 |
margin-bottom: 1.5rem; |
| 13 |
color: #1a1a1a; |
| 14 |
} |
| 15 |
|
| 16 |
.list-content { |
| 17 |
max-width: 600px; |
| 18 |
margin: 0 auto; |
| 19 |
padding: 0; |
| 20 |
list-style: none; |
| 21 |
} |
| 22 |
|
| 23 |
/* Bullet List Style */ |
| 24 |
.list-bullet .list-content { |
| 25 |
padding-left: 1.5rem; |
| 26 |
} |
| 27 |
|
| 28 |
.list-bullet .list-content li { |
| 29 |
position: relative; |
| 30 |
padding: 0.75rem 0; |
| 31 |
font-size: 1.1rem; |
| 32 |
color: #444; |
| 33 |
line-height: 1.5; |
| 34 |
} |
| 35 |
|
| 36 |
.list-bullet .list-content li::before { |
| 37 |
content: "•"; |
| 38 |
position: absolute; |
| 39 |
left: -1.5rem; |
| 40 |
color: #2563eb; |
| 41 |
font-size: 1.5rem; |
| 42 |
line-height: 1; |
| 43 |
} |
| 44 |
|
| 45 |
/* Numbered List Style */ |
| 46 |
.list-numbered { |
| 47 |
background-color: #f8f9fa; |
| 48 |
} |
| 49 |
|
| 50 |
.list-numbered .list-content { |
| 51 |
counter-reset: item; |
| 52 |
padding-left: 2rem; |
| 53 |
} |
| 54 |
|
| 55 |
.list-numbered .list-content li { |
| 56 |
position: relative; |
| 57 |
padding: 1rem 0; |
| 58 |
font-size: 1.1rem; |
| 59 |
color: #444; |
| 60 |
line-height: 1.5; |
| 61 |
} |
| 62 |
|
| 63 |
.list-numbered .list-content li::before { |
| 64 |
counter-increment: item; |
| 65 |
content: counter(item); |
| 66 |
position: absolute; |
| 67 |
left: -2rem; |
| 68 |
width: 1.5rem; |
| 69 |
height: 1.5rem; |
| 70 |
background-color: #2563eb; |
| 71 |
color: white; |
| 72 |
border-radius: 50%; |
| 73 |
text-align: center; |
| 74 |
line-height: 1.5rem; |
| 75 |
font-size: 0.9rem; |
| 76 |
font-weight: 600; |
| 77 |
} |
| 78 |
|
| 79 |
/* Icon List Style */ |
| 80 |
.list-icon .list-content li { |
| 81 |
position: relative; |
| 82 |
padding: 1rem 0 1rem 3rem; |
| 83 |
font-size: 1.1rem; |
| 84 |
color: #444; |
| 85 |
line-height: 1.5; |
| 86 |
border-bottom: 1px solid #eee; |
| 87 |
} |
| 88 |
|
| 89 |
.list-icon .list-content li:last-child { |
| 90 |
border-bottom: none; |
| 91 |
} |
| 92 |
|
| 93 |
.list-icon .list-content li::before { |
| 94 |
content: "✓"; |
| 95 |
position: absolute; |
| 96 |
left: 0; |
| 97 |
top: 50%; |
| 98 |
transform: translateY(-50%); |
| 99 |
width: 2rem; |
| 100 |
height: 2rem; |
| 101 |
background-color: #2563eb; |
| 102 |
color: white; |
| 103 |
border-radius: 50%; |
| 104 |
text-align: center; |
| 105 |
line-height: 2rem; |
| 106 |
font-size: 1rem; |
| 107 |
font-weight: bold; |
| 108 |
} |
| 109 |
|
| 110 |
/* Hover Effects */ |
| 111 |
.list-bullet .list-content li:hover, |
| 112 |
.list-numbered .list-content li:hover, |
| 113 |
.list-icon .list-content li:hover { |
| 114 |
color: #2563eb; |
| 115 |
transform: translateX(5px); |
| 116 |
transition: all 0.3s ease; |
| 117 |
} |
| 118 |
|
| 119 |
/* Responsive Styles */ |
| 120 |
@media (max-width: 768px) { |
| 121 |
.list-container { |
| 122 |
padding: 30px 16px; |
| 123 |
} |
| 124 |
|
| 125 |
.list-title { |
| 126 |
font-size: 1.5rem; |
| 127 |
margin-bottom: 1.25rem; |
| 128 |
} |
| 129 |
|
| 130 |
.list-content li { |
| 131 |
font-size: 1rem; |
| 132 |
padding: 0.5rem 0; |
| 133 |
} |
| 134 |
|
| 135 |
.list-icon .list-content li { |
| 136 |
padding-left: 2.5rem; |
| 137 |
} |
| 138 |
|
| 139 |
.list-icon .list-content li::before { |
| 140 |
width: 1.75rem; |
| 141 |
height: 1.75rem; |
| 142 |
line-height: 1.75rem; |
| 143 |
font-size: 0.9rem; |
| 144 |
} |
| 145 |
} |
| 146 |
|
| 147 |
/* Animation for Icon List */ |
| 148 |
@keyframes checkmark { |
| 149 |
0% { |
| 150 |
transform: translateY(-50%) scale(0); |
| 151 |
} |
| 152 |
50% { |
| 153 |
transform: translateY(-50%) scale(1.2); |
| 154 |
} |
| 155 |
100% { |
| 156 |
transform: translateY(-50%) scale(1); |
| 157 |
} |
| 158 |
} |
| 159 |
|
| 160 |
.list-icon .list-content li:hover::before { |
| 161 |
animation: checkmark 0.3s ease-in-out; |
| 162 |
} |