@import "vars"; .home-pinned-content { width: 90%; display: grid; grid-template-areas: 'banner news' 'welcome news' 'shout news' 'projects projects'; grid-template-rows: auto auto minmax(200px, 1fr) auto; grid-template-columns: 4fr 3fr; @media screen and (max-width: @normal) { width: 97%; } @media screen and (max-width: @small) { width: 100%; grid-template-areas: 'welcome' 'banner' 'news' 'shout' 'projects'; grid-template-rows: auto; grid-template-columns: 1fr; } & > * { //border: 1px solid red; margin: 10px 20px; h1 { font-size: 18px; } } } .home-banner { grid-area: banner; text-align: center; img { max-width: 100%; } } .home-welcome { grid-area: welcome; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; h1 { width: 100%; margin-bottom: 0; } ul { padding-left: 20px; } div { flex-grow: 1; } h2 { margin: 5px 0; } } .home-news { grid-area: news; ul { padding: 0; } li { display: flex; flex-direction: row; align-items: center; flex-wrap: nowrap; padding: 10px 0; border-bottom: var(--hr-border); @media screen and (max-width: @micro) { flex-direction: column; align-items: start; } & > a { align-self: baseline; } img { max-width: 100px; max-height: 100px; margin-right: 8px; } h3 { margin: 0; font-size: 16px; font-weight: bold; font-family: Cantarell; } .date { margin: 4px 0 10px 0; } div { font-size: 13px; line-height: 150%; } } } .home-shoutbox { grid-area: shout; } .home-projects { grid-area: projects; }