.breaking-news-wrapper {
display: flex;
align-items: center;
background-color: #1a1a1a;
color: #ecf0f0;
padding: 10px 20px 10px 155px;
font-family: 'Open Sans', 'Roboto', sans-serif;
font-size: 15px;
line-height: 1.4;
overflow: hidden;
position: relative;
box-sizing: border-box;
min-height: 45px;
border-top: 1px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
border-radius: 0;
margin-bottom: 25px;
z-index: 10;
}
.breaking-news-label {
background-color: #282828;
padding: 8px 12px;
font-weight: 700;
text-transform: uppercase;
white-space: nowrap;
display: flex;
align-items: center;
justify-content: center;
margin-right: 20px;
flex-shrink: 0;
border-radius: 4px;
letter-spacing: 0.5px;
transition: background-color 0.3s ease;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
min-width: 60px;
min-height: 40px;
}
.breaking-news-label:hover {
background-color: #3a3a3a;
}
.breaking-news-label span {
font-size: 11px;
margin-left: 7px;
transition: opacity 0.3s ease;
}
.breaking-news-label i {
font-size: 18px;
color: #fff;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
animation: pulse-blink 1s infinite alternate;
}
@keyframes pulse-blink {
0% {
opacity: 0.2;
transform: scale(0.9);
color: #f39c12;
}
50% {
opacity: 1;
transform: scale(1.1);
color: #fff;
}
100% {
opacity: 0.2;
transform: scale(0.9);
color: #f39c12;
}
}
.breaking-news-ticker {
flex-grow: 1;
display: flex;
align-items: center;
position: relative;
overflow: hidden;
min-width: 0;
}
.news-controls {
display: flex;
gap: 8px;
margin-left: 5px;
flex-shrink: 0;
}
.news-controls button {
background-color: #34495e;
color: #3498db;
border: none;
padding: 6px 10px;
cursor: pointer;
font-size: 15px;
border-radius: 0;
transition: background-color 0.3s ease, color 0.3s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
line-height: 1;
display: flex;
align-items: center;
justify-content: center;
}
.news-controls button:hover {
background-color: #4a667b;
color: #2184cf;
}
.news-controls button i {
font-size: 14px;
}
.news-items-container {
flex-grow: 1;
overflow: hidden;
position: relative;
height: 22px; white-space: nowrap; margin-left: 20px;
padding-left: 0;
display: flex;
align-items: center;
max-width: 100%;
}
.news-list {
list-style: none;
margin: 0;
padding: 0;
position: absolute; top: 0;
left: 0;
width: 100%;
height: 100%; }
.news-list li {
display: none; line-height: 22px;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
box-sizing: border-box;
opacity: 0;
transform: translateY(10px);
transition: opacity 0.4s ease-out, transform 0.4s ease-out;
position: absolute; top: 0;
left: 0;
height: 100%; align-items: baseline; flex-wrap: nowrap; } .news-list li.active {
display: flex; opacity: 1;
transform: translateY(0);
}
.news-list li a {
color: #ecf0f0;
text-decoration: none;
transition: color 0.3s ease;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
display: block; padding-left: 5px;
min-width: 0;
flex-shrink: 0;
flex-grow: 1; }
.news-list li a:hover {
color: #3498db;
}
.news-time {
color: #3498db;
font-weight: 600;
margin-right: 8px;
flex-shrink: 0;
} @media (max-width: 768px) {
.breaking-news-wrapper {
flex-direction: row;
align-items: center;
padding: 8px 15px;
font-size: 14px;
min-height: 45px;
justify-content: space-between;
}
.breaking-news-label {
margin-bottom: 0;
margin-right: 10px;
width: auto;
justify-content: flex-start;
text-align: left;
padding: 6px 10px;
overflow: hidden;
background-color: transparent;
box-shadow: none;
min-width: unset;
min-height: unset;
border-radius: 0;
}
.breaking-news-label span {
display: none; }
.breaking-news-label i {
font-size: 24px;
margin-right: 0;
animation: pulse-blink 1s infinite alternate;
display: block;
margin: 0 auto;
}
.breaking-news-ticker {
flex-shrink: 1;
min-width: 0;
}
.news-items-container {
flex-grow: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-left: 15px;
padding-left: 0;
max-width: 100%;
height: 22px; }
.news-controls {
display: none; }
.news-list {
position: absolute; top: 0;
left: 0;
width: 100%;
height: 100%;
}
.news-list li {
padding-right: 0;
line-height: 22px;
position: absolute; top: 0;
left: 0;
width: 100%;
height: 100%;
}
.news-list li a {
display: block; width: 100%;
white-space: nowrap; overflow: hidden;
text-overflow: ellipsis;
line-height: 22px;
}
.news-time {
margin-left: 0;
margin-right: 8px;
}
}
@media (max-width: 480px) {
.breaking-news-wrapper {
font-size: 13px;
padding: 8px 10px;
min-height: 40px;
}
.breaking-news-label {
padding: 5px 8px;
background-color: transparent;
box-shadow: none;
}
.breaking-news-label i {
font-size: 24px;
}
.news-time {
font-size: 11px;
margin-right: 5px;
}
.news-list li { display: none; } .news-list li.active { display: flex;
position: absolute; top: 0;
left: 0;
width: 100%;
height: 100%;
transform: none; opacity: 1; flex-grow: 1;
align-items: baseline;
white-space: nowrap; overflow: hidden;
text-overflow: ellipsis;
}
.news-list li a { display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
line-height: 1.2em; max-height: 2.4em; padding-left: 5px;
flex-shrink: 1;
}
.news-items-container {
height: auto;
min-height: 22px;
margin-left: 0;
padding-left: 0;
}
.news-list {
position: static;
height: auto;
display: flex;
width: 100%;
}
}