Responsywność przez style
This commit is contained in:
parent
34ed2b4bd0
commit
f70428d45c
|
|
@ -1,40 +1,62 @@
|
||||||
.mat-toolbar {
|
.mat-toolbar {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-wrap: wrap; /* Pozwala zawijać elementy na mniejszych ekranach */
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between; /* Równe rozmieszczenie elementów */
|
justify-content: space-between; /* Rozdzielenie elementów */
|
||||||
padding: 0 16px; /* Marginesy wewnętrzne */
|
padding: 0 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-left {
|
.col-left {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start; /* Wyrównanie flagi do lewej */
|
justify-content: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flag {
|
.flag {
|
||||||
height: 25px; /* Powiększenie flagi */
|
height: 25px;
|
||||||
width: auto;
|
width: auto;
|
||||||
margin-right: 16px; /* Odstęp od sąsiednich elementów */
|
margin-right: 16px;
|
||||||
border: none; /* Brak ramki */
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-item {
|
.toolbar-item {
|
||||||
font-size: 22px; /* Większy rozmiar tekstu */
|
font-size: 22px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
text-transform: none; /* Bez uppercase */
|
text-transform: none;
|
||||||
color: white; /* Kolor tekstu */
|
color: white;
|
||||||
|
padding: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
button.mat-icon-button {
|
button.mat-icon-button {
|
||||||
padding: 0; /* Brak dodatkowych marginesów */
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-toolbar-row {
|
.mat-toolbar-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-wrap: wrap; /* Pozwala zawijać elementy */
|
||||||
|
justify-content: space-between;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.col {
|
.col {
|
||||||
text-align: center; /* Wyśrodkowanie tekstu w kolumnach */
|
text-align: center;
|
||||||
flex: 1; /* Równe rozciąganie kolumn */
|
flex: 1; /* Równe rozciąganie na większych ekranach */
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.mat-toolbar {
|
||||||
|
flex-direction: column; /* Elementy ułożą się pionowo na małych ekranach */
|
||||||
|
padding: 8px; /* Zmniejszenie paddingu */
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar-item {
|
||||||
|
font-size: 18px; /* Zmniejszenie rozmiaru tekstu */
|
||||||
|
text-align: center;
|
||||||
|
width: 100%; /* Każdy przycisk zajmie pełną szerokość */
|
||||||
|
margin: 4px 0; /* Odstępy między przyciskami */
|
||||||
|
}
|
||||||
|
|
||||||
|
.flag {
|
||||||
|
height: 20px; /* Zmniejszenie rozmiaru flagi */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue