Template:Home grid/styles.css: Difference between revisions

From WikiMSK
No edit summary
No edit summary
Line 24: Line 24:
}
}


@media (min-width: 769px) {
@media (min-width: 1600px) {
.grid-container {
.grid-container {
display: grid;
display: grid;

Revision as of 07:36, 1 May 2021

.item1 { grid-area: header; }
.item2 { grid-area: skeleton; }
.item3 { grid-area: intro; }
.item4 { grid-area: portals; }
.item5 { grid-area: join; }
.item6 { grid-area: news; }
.item7 { grid-area: featured; }
.item8 { grid-area: whats-new; }

@media (max-width: 768px) {
  .grid-container { 
  	display: grid;
	grid-gap:20px;
	grid-template-areas:
	'header'
	'intro'
	'portals'
	'skeleton'
	'join'
	'news'
	'featured'
	'whats-new'
  }
}

@media (min-width: 1600px) {
	.grid-container {
		display: grid;
		grid-gap:20px;
		grid-template-areas:
	    'header header header header header header'
	    'intro intro portals portals skeleton skeleton'
	    'join join news news skeleton skeleton'
	    'featured featured whats-new whats-new whats-new whats-new';
	}
}