This commit is contained in:
Your Name
2021-10-12 17:36:09 +03:00
parent d40dca2daf
commit 804122e511
2 changed files with 51 additions and 13 deletions

View File

@@ -24,9 +24,46 @@ body.books-body {
margin: 7px;
border-radius: 7px;
}
#artikul{
color: #7a7a7a;
font-size: .9em;
margin:0px;
}
#pricename-book, .pricename-author {
margin:7px 0px;
text-align:left;
}
.pricename-author {
font-weight: bold;
color: #686868;
}
.pricename {
font-weight: bold;
text-align: center;
font-size: 1.1em;
}
.pricename-rubric, .pricename_author-rubric {
position: absolute;
margin: 0px;
right: 9px;
top: 5px;
text-transform: uppercase;
font-size: .7em;
font-weight: bold;
background: #e4e4e4;
padding: 0px 5px;
border-radius: 1px;
}
.pricename_author-rubric {
position: relative;
top:0px;
right:0px;
background: none;
padding:0px;
color: #0b59a3;
text-decoration: none;
}
.pricename-rubric a {
color: #0d58a3;
}
#priceanons {
width: calc(65% - 20px);
@@ -37,6 +74,12 @@ body.books-body {
box-sizing: border-box;
letter-spacing: 0.1px;
line-height: 25px;
position:relative;
}
#item_info-main {
list-style-type: none;
margin:0px;
padding:0px;
}
.price {
background: #0e920e;

View File

@@ -3,18 +3,18 @@
<img style="width:100%;" src="<?=$book['pic']?>">
</div>
<div id="priceanons">
<p class="artikul"><small>Артикул <?=$book['price_id']?></small></p>
<p id="artikul">Артикул <?=$book['price_id']?></p>
<h1 id="pricename-book"><?=$book['pricename']?></h1>
<?if ($book['priceauthor_id'] > 1):?>
<p class="pricename">
<a href="<?=SITE?>author/<?=$book['authorslug']?>"><?=$book['author']?></a>
<p class="pricename-author">
<?=$book['author']?> (<a class="pricename_author-rubric" href="<?=SITE?>author/<?=$book['authorslug']?>">Все книги автора</a>)
</p>
<?endif?>
<?if ($book['pricepart_id'] > 0):?>
<p style="text-align: right;">
<p class="pricename-rubric">
<a href="<?=SITE?>knigi/<?=$book['partalias']?>"><?=$book['partname']?></a>
</p>
<?endif?>
<p class="pricename"><?=$book['pricename']?></p>
<?=$book['priceanons']?>
<?if ($buy_status):?>
<p class="price"><a href="<?=$book['links']['pdf']?>">Читать PDF</a></p>
@@ -37,11 +37,6 @@
<?endif?>
<?if ($book['priceauthor_id'] > 1):?>
<p class="pricename">
<a href="<?=SITE?>author/<?=$book['authorslug']?>">Все книги автора</a>
</p>
<?endif?>
</div>
</section>