Commit c311689f by Скуратович Александр

Реализация кнопки на калькулятор

1 parent 8bb160d5
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#FFFFFF" class="bi bi-calculator-fill" viewBox="0 0 16 16">
<path d="M2 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2zm2 .5v2a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5h-7a.5.5 0 0 0-.5.5zm0 4v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5zM4.5 9a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1zM4 12.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5zM7.5 6a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1zM7 9.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5zm.5 2.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1zM10 6.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5zm.5 2.5a.5.5 0 0 0-.5.5v4a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 0-.5-.5h-1z"/>
</svg>
\ No newline at end of file \ No newline at end of file
...@@ -5,7 +5,8 @@ function fenix_open ($atts) ...@@ -5,7 +5,8 @@ function fenix_open ($atts)
array( array(
'post' => '', 'post' => '',
'id' => '', 'id' => '',
'link' => '#' 'link' => '#',
'link_calc' => ''
), ),
$atts, $atts,
'fenix_open' 'fenix_open'
...@@ -43,6 +44,11 @@ function fenix_open ($atts) ...@@ -43,6 +44,11 @@ function fenix_open ($atts)
'</div>'. '</div>'.
'<div class="text-center text-md-start">'. '<div class="text-center text-md-start">'.
'<a href="'.$atts['link'].'" class="btn btn-lg btn-style-0 rounded-pill mb-4">Получить консультацию</a>'. '<a href="'.$atts['link'].'" class="btn btn-lg btn-style-0 rounded-pill mb-4">Получить консультацию</a>'.
(
$atts['link_calc']!=''?
'<br/><a href="'.$atts['link_calc'].'" class="btn btn-lg btn-style-1 rounded-pill mb-4" data-icon="calculator">Рассчитать прибыль</a>':
''
).
'</div>'. '</div>'.
'</div>'. '</div>'.
'</div>'. '</div>'.
......
...@@ -337,6 +337,13 @@ Author: SANS ...@@ -337,6 +337,13 @@ Author: SANS
width: 27px; width: 27px;
height: 47px; height: 47px;
} }
:root [data-icon="calculator"]::before
{
background-image: url('./assets/images/icons/calculator.svg');
width: 23px;
height: 33px;
margin-right: 13px;
}
/*Доп стили кнопок*/ /*Доп стили кнопок*/
:root .btn.btn-style-0 { :root .btn.btn-style-0 {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!