diff --git a/css/content.css b/css/content.css index ce18647..96d842c 100644 --- a/css/content.css +++ b/css/content.css @@ -109,3 +109,40 @@ .game--more-button:hover { color: white; } + +/* News */ +.news { + display: flex; + flex-direction: column; + margin-bottom: var(--space-medium); +} + +.news::after { + content: ""; + background: center / cover no-repeat url("/img/game-footer.png"); + height: 13px; +} + +.news--title { + display: grid; + grid-template-columns: 1fr auto; + background: var(--dark); + color: white; + padding: var(--space-small) var(--space-medium); +} + +.news--content { + padding: var(--space-large); + display: flex; + flex-direction: column; + align-items: center; + background: var(--primary-color); + color: var(--dark); +} + +@media (max-width: 768px) { + .news--title { + grid-template-columns: auto; + grid-template-rows: auto auto; + } +} diff --git a/index.html b/index.html index 5d5b602..64a2035 100644 --- a/index.html +++ b/index.html @@ -153,11 +153,12 @@