pojem css
parent
1910fec490
commit
8f73846f75
|
@ -36,7 +36,9 @@ const urediPojem = async () => {
|
||||||
<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" />
|
<PojemForm v-if="urejanje" :revisionId="revisionId" :pojem="pojem" :urejanje="urejanje" />
|
||||||
<div v-if="!urejanje" class="gumb" @click="urediPojem">Uredi</div>
|
<div>
|
||||||
|
<div v-if="!urejanje" class="gumb" @click="urediPojem">Uredi</div>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -45,17 +47,45 @@ const urediPojem = async () => {
|
||||||
position: relative;
|
position: relative;
|
||||||
background: var(--bela);
|
background: var(--bela);
|
||||||
margin: 2rem;
|
margin: 2rem;
|
||||||
border-radius: 3rem;
|
border-radius: 24px;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
@media screen and (min-width: 768px) {
|
|
||||||
|
.pojem > div {
|
||||||
|
position: relative;
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
.gumb {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
text-decoration: underline;
|
||||||
|
font-size: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
PojemForm {
|
PojemForm {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
.pojem > div {
|
||||||
|
min-height: 4rem;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.gumb {
|
@media screen and (max-width: 325px) {
|
||||||
float: right;
|
.pojem {
|
||||||
margin-right: 1rem;
|
margin-right: 0;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue