refactor: moved header css to seperate global file

This commit is contained in:
Lewy 2022-05-31 16:32:49 +02:00
parent 08f2d0609b
commit 1908bb6820
12 changed files with 123 additions and 278 deletions

View File

@ -0,0 +1,54 @@
.logo {
width: 150px;
height: 30px;
}
.header_link{
text-align: center;
line-height: 2;
color: white;
text-decoration: none;
}
.loginn {
background-color: skyblue;
border-radius: 31px;
border: 1px solid skyblue;
cursor: pointer;
color: #ffffff;
font-family: Arial;
text-decoration: none;
height: 30px;
}
header {
display: flex;
flex-flow: row wrap;
align-items: center;
justify-content: space-between;
background-color: #0f64f2;
margin: auto;
padding-top: 10px;
padding-bottom: 10px;
padding-right: 30px;
padding-left: 10px;
}
header>p {
text-align: center;
line-height: 0;
}
@media all and (max-width: 800px) {
header {
justify-content: space-around;
}
}
@media all and (max-width: 800px) {
header {
flex-direction: column;
}
}

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -1,23 +1,4 @@
/*HEADER*/
header {
display: flex;
flex-flow: row wrap;
align-items: center;
justify-content: space-between;
background-color: #0f64f2;
margin: auto;
padding-top: 10px;
padding-bottom: 10px;
padding-right: 30px;
padding-left: 10px;
}
header>p {
text-align: center;
line-height: 0;
}
.eventHeader { .eventHeader {
text-align: center; text-align: center;
@ -65,40 +46,3 @@ header>p {
padding: 8px 13px; padding: 8px 13px;
text-decoration: none; text-decoration: none;
} }
img {
width: 150px;
height: 30px;
}
a {
text-align: center;
line-height: 2;
color: white;
text-decoration: none;
}
.loginn {
background-color: skyblue;
border-radius: 31px;
border: 1px solid skyblue;
cursor: pointer;
color: #ffffff;
font-family: Arial;
text-decoration: none;
height: 30px;
}
@media all and (max-width: 800px) {
header {
justify-content: space-around;
}
}
@media all and (max-width: 800px) {
header {
flex-direction: column;
}
}

View File

@ -1,4 +1,5 @@
@import "header.css"; @import "header.css";
@import "../_global/header.css";
body { body {
background-color: #EBEBEB; background-color: #EBEBEB;

View File

@ -15,7 +15,7 @@
<body> <body>
<header> <header>
<a href="../index.html"><img src="../logo_padel.jpeg" alt=""></a> <a href="../index.html"><img src="../_global/logo_padel.jpeg" alt=""></a>
<a href="#">Turnieje</a> <a href="#">Turnieje</a>
<a href="#">Rozgrywki</a> <a href="#">Rozgrywki</a>
<a href="#">Ustawienia</a> <a href="#">Ustawienia</a>

46
frontend/event.css Normal file
View File

@ -0,0 +1,46 @@
.eventHeader {
text-align: center;
padding-top: 5px;
padding-bottom: 5px;
}
.event {
background-color: #0f64f2;
color: white;
border-style: solid;
border-width: 2px;
margin-top: 25px;
margin-right: 25px;
flex-direction: column;
flex-wrap: wrap;
height: auto;
}
.eventInside {
background-color: white;
color: #4C8BF5;
height: auto;
border: solid;
border-color: lightgray;
padding: 10px;
}
.eventInside>p {
color: lightgray;
}
.myButton {
background-color: #4C8BF5;
border-radius: 28px;
border: 1px solid #4C8BF5;
display: inline-block;
cursor: pointer;
color: #ffffff;
font-family: Arial;
font-size: 9px;
padding: 8px 13px;
text-decoration: none;
}

View File

@ -11,17 +11,16 @@
<body> <body>
<header> <header>
<a href="./index.html"><img src="logo_padel.jpeg"></a> <a class="header_link" href="./index.html"><img class="logo" src="_global/logo_padel.jpeg" alt=""></a>
<!-- <a href="#">Wiadomości</a>--> <a class="header_link" href="#">Kalendarz turniejów</a>
<a href="#">Kalendarz turniejów</a> <a class="header_link" href="#">Ranking</a>
<a href="#">Ranking</a> <a class="header_link" href="#">Wyniki</a>
<a href="#">Wyniki</a>
<!-- <a href="#">Kontakt</a>-->
<form action="logowanie/index.html"> <form action="logowanie/index.html">
<input class="loginn" type="submit" value="Logowanie" /> <input class="loginn" type="submit" value="Logowanie" />
</form> </form>
</div> </div>
</header> </header>
<div class="container"> <div class="container">
<div class="event"> <div class="event">
<div class="eventHeader">Nadchodzące turnieje</div> <div class="eventHeader">Nadchodzące turnieje</div>
@ -37,6 +36,15 @@
</div> </div>
<div class="lastevent"></div> <div class="lastevent"></div>
</div> </div>
<!-- -->
<!-- TEST BOX SINGLE_TOURNAMENT-->
<!-- -->
<div class="single_tournament">
</div>
</div> </div>
</body> </body>

View File

@ -8,7 +8,7 @@
<body> <body>
<header> <header>
<a href="../index.html"><img src="../logo_padel.jpeg"></a> <a href="../index.html"><img src="../_global/logo_padel.jpeg" alt=""></a>
<a href="#">Wiadomości</a> <a href="#">Wiadomości</a>
<a href="#">Kalendarz turniejów</a> <a href="#">Kalendarz turniejów</a>
<a href="#">Ranking</a> <a href="#">Ranking</a>

View File

@ -1,38 +1,4 @@
* { @import "../_global/header.css";
/* border: solid; */
}
img {
width: 150px;
height: 30px;
}
a {
text-align: center;
line-height: 2;
color: white;
text-decoration: none;
}
header {
display: flex;
flex-flow: row wrap;
align-items: center;
justify-content: space-between;
background-color: #0f64f2;
margin: auto;
padding-top: 10px;
padding-bottom: 10px;
padding-right: 30px;
padding-left: 10px;
}
header>p {
text-align: center;
line-height: 0;
}
.container { .container {
height: 100%; height: 100%;
@ -99,16 +65,3 @@ header>p {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
@media all and (max-width: 800px) {
header {
justify-content: space-around;
}
}
@media all and (max-width: 800px) {
header {
flex-direction: colum;
}
}

View File

@ -1,50 +1,5 @@
* { @import "_global/header.css";
/* border: solid; */ @import "event.css";
}
img {
width: 150px;
height: 30px;
}
a {
text-align: center;
line-height: 2;
color: white;
text-decoration: none;
}
.loginn {
background-color: skyblue;
border-radius: 31px;
border: 1px solid skyblue;
cursor: pointer;
color: #ffffff;
font-family: Arial;
text-decoration: none;
height: 30px;
}
header {
display: flex;
flex-flow: row wrap;
align-items: center;
justify-content: space-between;
background-color: #0f64f2;
margin: auto;
padding-top: 10px;
padding-bottom: 10px;
padding-right: 30px;
padding-left: 10px;
}
header>p {
text-align: center;
line-height: 0;
}
.container { .container {
height: 100%; height: 100%;
@ -53,62 +8,3 @@ header>p {
justify-content: flex-end; justify-content: flex-end;
} }
.eventHeader {
text-align: center;
padding-top: 5px;
padding-bottom: 5px;
}
.event {
background-color: #0f64f2;
color: white;
border-style: solid;
border-width: 2px;
margin-top: 25px;
margin-right: 25px;
flex-direction: column;
flex-wrap: wrap;
height: auto;
}
.eventInside {
background-color: white;
color: #4C8BF5;
height: auto;
border: solid;
border-color: lightgray;
padding: 10px;
}
.eventInside>p {
color: lightgray;
}
.myButton {
background-color: #4C8BF5;
border-radius: 28px;
border: 1px solid #4C8BF5;
display: inline-block;
cursor: pointer;
color: #ffffff;
font-family: Arial;
font-size: 9px;
padding: 8px 13px;
text-decoration: none;
}
@media all and (max-width: 800px) {
header {
justify-content: space-around;
}
}
@media all and (max-width: 800px) {
header {
flex-direction: colum;
}
}

View File

@ -11,7 +11,7 @@
<body> <body>
<header> <header>
<a href="../index.html"><img src="../logo_padel.jpeg"></a> <a href="../index.html"><img src="../_global/logo_padel.jpeg" alt=""></a>
<a href="#">Wiadomości</a> <a href="#">Wiadomości</a>
<a href="#">Kalendarz turniejów</a> <a href="#">Kalendarz turniejów</a>
<a href="#">Ranking</a> <a href="#">Ranking</a>
@ -23,6 +23,7 @@
<span class="dot">JM</span> <span class="dot">JM</span>
</div> </div>
</header> </header>
<div class="container"> <div class="container">
<div class="event"> <div class="event">
<div class="eventHeader">Nadchodzące turnieje</div> <div class="eventHeader">Nadchodzące turnieje</div>

View File

@ -1,50 +1,4 @@
* { @import "../_global/header.css";
/* border: solid; */
}
img {
width: 150px;
height: 30px;
}
a {
text-align: center;
line-height: 2;
color: white;
text-decoration: none;
}
.loginn {
background-color: skyblue;
border-radius: 31px;
border: 1px solid skyblue;
cursor: pointer;
color: #ffffff;
font-family: Arial;
text-decoration: none;
height: 30px;
}
header {
display: flex;
flex-flow: row wrap;
align-items: center;
justify-content: space-between;
background-color: #0f64f2;
margin: auto;
padding-top: 10px;
padding-bottom: 10px;
padding-right: 30px;
padding-left: 10px;
}
header>p {
text-align: center;
line-height: 0;
}
.container { .container {
height: 100%; height: 100%;
@ -111,15 +65,3 @@ header>p {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
@media all and (max-width: 800px) {
header {
justify-content: space-around;
}
}
@media all and (max-width: 800px) {
header {
flex-direction: colum;
}
}