Stajlanje pojma WIP
parent
7a6239ad83
commit
d7d5e85ae2
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
z-index: -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.meni {
|
.meni {
|
||||||
|
|
|
@ -31,24 +31,31 @@ const urediPojem = async () => {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<section class="pojem">
|
<section class="pojem">
|
||||||
<PojemForm v-if="urejanje" :revisionId="revisionId" :pojem="pojem" :urejanje="urejanje" />
|
<div>
|
||||||
<div v-else>
|
|
||||||
<div class="gumb" @click="urediPojem">Uredi</div>
|
|
||||||
<h2>{{ pojem.naslov }}</h2>
|
<h2>{{ pojem.naslov }}</h2>
|
||||||
<div class="tekst" v-html="pojem.tekst" />
|
<div class="tekst" v-html="pojem.tekst" />
|
||||||
</div>
|
</div>
|
||||||
|
<PojemForm v-if="urejanje" :revisionId="revisionId" :pojem="pojem" :urejanje="urejanje" />
|
||||||
|
<div v-if="!urejanje" class="gumb" @click="urediPojem">Uredi</div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.pojem {
|
||||||
|
position: relative;
|
||||||
|
background: var(--bela);
|
||||||
|
margin: 2rem;
|
||||||
|
border-radius: 3rem;
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
@media screen and (min-width: 768px) {
|
@media screen and (min-width: 768px) {
|
||||||
PojemForm {
|
PojemForm {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.gumb {
|
.gumb {
|
||||||
float: right;
|
float: right;
|
||||||
margin-right: 1rem;
|
margin-right: 1rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -13,6 +13,7 @@ await store.naloziStrani()
|
||||||
<style>
|
<style>
|
||||||
:root {
|
:root {
|
||||||
--siva: #D9D9D9;
|
--siva: #D9D9D9;
|
||||||
|
--bela: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
@ -39,8 +40,6 @@ await store.naloziStrani()
|
||||||
}
|
}
|
||||||
|
|
||||||
.gumb {
|
.gumb {
|
||||||
display: block;
|
|
||||||
padding: .2rem .5rem;
|
|
||||||
font-family: Trailers;
|
font-family: Trailers;
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
Loading…
Reference in New Issue