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

From WikiMSK
No edit summary
No edit summary
Line 8: Line 8:
.item8 { grid-area: whats-new; }
.item8 { grid-area: whats-new; }


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


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

Revision as of 07:34, 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;
  }
}

@media (min-width: 769px) {
	.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';
	}
}