Share header css between components
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
519c91c628
commit
7ada0b0e2a
3 changed files with 20 additions and 22 deletions
14
frontend/src/css/header.css
Normal file
14
frontend/src/css/header.css
Normal file
|
@ -0,0 +1,14 @@
|
|||
.header {
|
||||
position: fixed;
|
||||
padding: 15px;
|
||||
background-color: transparent;
|
||||
color: black;
|
||||
margin: 0 auto;
|
||||
padding-left: 25px;
|
||||
padding-right: 25px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
height: 70px;
|
||||
}
|
|
@ -1,4 +1,6 @@
|
|||
<script lang="ts">
|
||||
import '../../css/header.css';
|
||||
|
||||
export const title: string = 'Naturalistici';
|
||||
|
||||
const goBack = () => {
|
||||
|
@ -6,7 +8,7 @@
|
|||
};
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<div class='header'>
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<!-- svelte-ignore a11y-missing-attribute -->
|
||||
|
@ -19,17 +21,8 @@
|
|||
|
||||
<style>
|
||||
div {
|
||||
position: fixed;
|
||||
padding: 15px;
|
||||
background-color: transparent;
|
||||
color: black;
|
||||
margin: 0 auto;
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
div a {
|
||||
cursor: pointer;
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<script lang="ts">
|
||||
import '../../css/header.css';
|
||||
|
||||
export const title: string = 'Naturalistici';
|
||||
|
||||
const goBack = () => {
|
||||
|
@ -6,7 +8,7 @@
|
|||
};
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<div class='header'>
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<!-- svelte-ignore a11y-missing-attribute -->
|
||||
|
@ -20,18 +22,7 @@
|
|||
<style>
|
||||
div {
|
||||
color: white;
|
||||
margin: 0 auto;
|
||||
padding: 15px;
|
||||
padding-left: 25px;
|
||||
padding-right: 25px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background-color: #de0e1b;
|
||||
|
||||
position: fixed;
|
||||
font-size: 22px;
|
||||
}
|
||||
div p {
|
||||
margin: 0;
|
||||
|
|
Loading…
Reference in a new issue