{% block stylesheet %}
<style>
@media (min-width: 768px) {
.top-notice__box {
background-color: #FFF;
text-align: left;
width: 100%;
padding: 5% 180px;
}
.notice-left {
display: inline-block;
float: left;
width: 10%;
font-family: "Roboto", "ヒラギノ角ゴ ProN", "メイリオ", "sans-serif";
font-style: normal;
font-weight: 400;
font-size: 13px;
line-height: 15px;
color: #333333;
padding: 4.5px 0;
}
.notice-right {
display: inline-block;
float: right;
width: 85%;
font-family: "Roboto", "ヒラギノ角ゴ ProN", "メイリオ", "sans-serif";
font-style: normal;
font-weight: 300;
font-size: 15px;
line-height: 24px;
color: #333333;
}
.row-notice {
margin: 1%;
display: inline-block;
width: 100%;
font-family: "Roboto", "ヒラギノ角ゴ ProN", "メイリオ", "sans-serif";
font-weight: 300;
font-size: 15px;
line-height: 24px;
}
.notice-div {
margin-top: 40px;
}
}
@media (max-width: 1000px) {
.notice-right {
width: 75%;
}
}
@media (max-width: 768px) {
.top-notice__box {
text-align: left;
padding: 10% 20px;
}
.notice-left {
display: inline-block;
float: left;
width: 100%;
font-family: "Roboto", "ヒラギノ角ゴ ProN", "メイリオ", "sans-serif";
}
.notice-right {
display: inline-block;
float: right;
width: 100%;
font-family: "Roboto", "ヒラギノ角ゴ ProN", "メイリオ", "sans-serif";
}
.row-notice {
margin: 1%;
display: inline-block;
width: 100%;
font-weight: 300;
font-size: 15px;
line-height: 24px;
font-family: "Roboto", "ヒラギノ角ゴ ProN", "メイリオ", "sans-serif";
}
.pc-line {
border-top: 3px solid #2379E7;
position: relative;
top: 0;
width: 40px;
left: 0;
right: 0;
margin: 15px auto 20px;
border-radius: 8px;
}
}
</style>
{% endblock %}
{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% set NewsList = repository('Eccube\\Entity\\News').getList() %}
{% block main %}
{% if NewsList is not empty %}
<div class="top-notice__box">
<h2 class="top-service-title mt-0">お知らせ</h2>
<div class="pc-line"></div>
<div class="notice-div">
{% for News in NewsList %}
<div class="row-notice">
<div class="notice-left">{{ News.publish_date|date_day }}</div>
<div class="notice-right">{{ News.description|raw|nl2br }}</div>
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% endblock %}