This commit is contained in:
2020-08-24 20:19:02 +02:00
parent 8ad7a9ccd1
commit a54e185701
19 changed files with 935 additions and 43 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -2,18 +2,25 @@ form{
&.user-login-form{
padding: 2rem;
background: white;
width: 100%;
max-width: 300px;
margin: auto;
& > div {
&:not(:last-child){
&:not(:last-child){
margin-bottom: 2rem;
}
.js-form-required{
margin-bottom: 0;
font-family: 'truenoregular';
}
label{
font-size: 0.9rem;
}
input{
border: 2px solid $color2;
border-radius: 10px;
padding: 0.5rem;
width: 100%;
&:focus{
border: 2px solid $color1;
border-radius: 10px!important;
@@ -22,7 +29,7 @@ form{
}
}
.description{
font-size: 0.8rem;
font-size: 0.6rem;
margin-top: 0.4rem;
font-family: 'truenolight';
}
@@ -15,14 +15,12 @@ footer{
& > div{
display: flex;
flex-wrap: nowrap;
@media screen and (min-width: 992px) {
@media screen and (min-width: 768px) {
display:block;
}
& > div{
width: calc((100% / 3) - #{$gutter});
max-width: 100px;
@media screen and (min-width: 992px) {
@media screen and (min-width: 768px) {
width: calc((100% / 2) - #{$gutter});
max-width: 200px;
margin-bottom: 2rem;
@@ -79,6 +79,7 @@ header{
display: block;
ul{
margin-bottom: 0;
flex-wrap: wrap;
li{
margin: 0 0.5rem;
&:not(:last-child){
@@ -1,6 +1,6 @@
.dl_ressource{
margin-top: 1.5rem;
font-size: 0.6rem;
font-size: 0.5rem;
line-height: 1.2;
font-family: 'truenoregular';
text-align: left;
@@ -20,6 +20,7 @@
height: 325px;
// background: none;
display: flex;
flex-direction: column;
margin: 3rem $gutter 1.5rem $gutter;
@media screen and (min-width: 768px) {
width: calc(100% / 2 - #{$gutter} * 2);
@@ -39,18 +40,7 @@
background: white;
}
}
&.last::after{
display: inline-block;
content: " ";
width: 3px;
height: auto;
margin: -2.5rem 0 0 0;
background: $color1;
position: relative;
left: 0.5rem;
}
&.first{
flex-direction: column;
span{
font-family: 'truenolight';
position: absolute;
@@ -59,6 +49,19 @@
font-size: 1.2rem;
line-height: 1.2;
}
&:not(:first-child){
&::before{
position: absolute;
display: block;
content: " ";
width: 1px;
height: calc(100% + 3rem);
margin: -2.5rem 0 0 0;
background: $color1;
left: -0.5rem;
top: 0;
}
}
}
}
}
@@ -51,6 +51,10 @@ article img,
object-fit: cover;
}
.layout-content{
width: 100%;
}
#presentation{
.__wrapper{
.__wrap_side{
@@ -150,7 +150,6 @@
$('.__slide article.programme[data-date]').each(function(i, el){
date = $(el).data('date');
if (dates.hasOwnProperty(date)) {
dates[date] += 1;
$(this).addClass('last');
@@ -159,7 +158,6 @@
dates[date] = 1;
$(this).addClass('first');
var dateValue = $(this).data('date');
console.log('dateValue',dateValue);
$("<span>"+dateValue+"</span>").prependTo($(this));
}
});
@@ -27,7 +27,7 @@
* @ingroup themeable
*/
#}
<div id="block-renderedsitesettingsblock-3" class="col-12 col-md-6 px-0 col-lg-12 px-0">
<div id="block-renderedsitesettingsblock-3" class="col-12 col-md-6 col-lg-12 pl-0">
{{ title_prefix }}
{% if label %}
<h2{{ title_attributes }}>{{ label }}</h2>
@@ -29,7 +29,7 @@
#}
<div class="col-12 d-md-flex d-lg-block col-lg-4 px-0">
<div id="block-renderedsitesettingsblock" class="col-12 col-md-6 col-lg-12 px-0">
<div id="block-renderedsitesettingsblock" class="col-12 col-md-6 col-lg-12 pl-0">
{{ title_prefix }}
{% if label %}
<h2{{ title_attributes }}>{{ label }}</h2>
@@ -0,0 +1,72 @@
{#
/**
* @file
* Default theme implementation for a field.
*
* To override output, copy the "field.html.twig" from the templates directory
* to your theme's directory and customize it, just like customizing other
* Drupal templates such as page.html.twig or node.html.twig.
*
* Instead of overriding the theming for all fields, you can also just override
* theming for a subset of fields using
* @link themeable Theme hook suggestions. @endlink For example,
* here are some theme hook suggestions that can be used for a field_foo field
* on an article node type:
* - field--node--field-foo--article.html.twig
* - field--node--field-foo.html.twig
* - field--node--article.html.twig
* - field--field-foo.html.twig
* - field--text-with-summary.html.twig
* - field.html.twig
*
* Available variables:
* - attributes: HTML attributes for the containing element.
* - label_hidden: Whether to show the field label or not.
* - title_attributes: HTML attributes for the title.
* - label: The label for the field.
* - multiple: TRUE if a field can contain multiple items.
* - items: List of all the field items. Each item contains:
* - attributes: List of HTML attributes for each item.
* - content: The field item's content.
* - entity_type: The entity type to which the field belongs.
* - field_name: The name of the field.
* - field_type: The type of the field.
* - label_display: The display settings for the label.
*
* @see template_preprocess_field()
*
* @ingroup themeable
*/
#}
{%
set title_classes = [
label_display == 'visually_hidden' ? 'visually-hidden',
]
%}
{% if label_hidden %}
{% if multiple %}
<div class="">
{% for item in items %}
<div class="">{{ item.content }}</div>
{% endfor %}
</div>
{% else %}
{% for item in items %}
<div{{ attributes }}>{{ item.content }}</div>
{% endfor %}
{% endif %}
{% else %}
<div{{ attributes }}>
<div{{ title_attributes.addClass(title_classes) }}>{{ label }}</div>
{% if multiple %}
<div>
{% endif %}
{% for item in items %}
<div{{ item.attributes }}>{{ item.content }}</div>
{% endfor %}
{% if multiple %}
</div>
{% endif %}
</div>
{% endif %}
@@ -16,6 +16,6 @@
{% if file_size %}
<a target="_blank" href="{{link['#title']}}">
<img src="{{link['#url']}}" alt="">
<img src="{{link['#url']}}" alt="logo">
</a>
{% endif %}
@@ -27,8 +27,8 @@
default_row_class ? 'views-row',
]
%}
<article class="thumbnails publications">
{# <article class="thumbnails"> #}
{{- row.content -}}
</article>
{# </article> #}
{% endfor %}
</div>
@@ -29,7 +29,7 @@
{% include 'themes/custom/popsu_colloque/template/components/share_rs.html.twig' %}
<div class="dl_ressource">
<a download class="blue" href="{{ file_url(site_settings.information_global.le_programme.uri) }}"><span>Telecharger la ressource en pdf</span></a>
<a download class="blue" href="{{ file_url(site_settings.information_global.le_programme.uri) }}"><span>Télécharger le programme en pdf</span></a>
</div>
</div>