Content added Content deleted
(res-img 800,1000,1200 and banner-image border radius added) |
(styling for responsive image gallery) |
||
Line 462: | Line 462: | ||
} |
} |
||
/********************************************************* |
|||
* Styling for a responsive image gallery with 4 coloumns |
|||
⚫ | |||
******************************/ |
*********************************************************/ |
||
.row { |
|||
⚫ | |||
display: flex; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
padding: 0 5px; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
} |
} |
||
/* Create four equal columns that sits next to each other */ |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
.column { |
.column { |
||
flex: |
flex: 1; |
||
max-width: |
max-width: 100%; |
||
/*background-color:var(--color-surface-1);*/ |
|||
⚫ | |||
/*border:1px solid var(--border-color-base);*/ |
|||
/*color:var(--color-base-emphasized);*/ |
|||
border-radius: 8px; |
|||
/*box-shadow: 0 3px 6px rgba(0,0,0,0.04),0 3px 6px rgba(0,0,0,0.0575);*/ |
|||
⚫ | |||
margin: 5px; |
|||
} |
} |
||
Line 494: | Line 489: | ||
} |
} |
||
/* Responsive layout - makes a two column-layout instead of four columns |
/* Responsive layout - makes a two column-layout instead of four columns */ |
||
@media (max-width: 800px) { |
@media (max-width: 800px) { |
||
.column { |
.column { |
||
flex: |
flex: 48%; |
||
max-width: |
max-width: 100%; |
||
} |
} |
||
} |
} |
||
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other |
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */ |
||
@media (max-width: 600px) { |
@media (max-width: 600px) { |
||
.column { |
.column { |
||
Line 508: | Line 503: | ||
max-width: 100%; |
max-width: 100%; |
||
} |
} |
||
} |
} |
||
/****************************** |
|||
⚫ | |||
******************************/ |
|||
⚫ | |||
⚫ | |||
⚫ | |||
flex: 50%; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
flex: 50%; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
} |