Skip to content

Commit

Permalink
Merge pull request #203 from abes-esr/THE-1167-Mettre-en-place-le-mod…
Browse files Browse the repository at this point in the history
…e-sombre-contrast

FIX intitulés des roles de cartes personnes
  • Loading branch information
clementdelafontaine authored Apr 4, 2024
2 parents 2f19d48 + e6044b1 commit acb5d61
Show file tree
Hide file tree
Showing 21 changed files with 330 additions and 49 deletions.
13 changes: 13 additions & 0 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -509,4 +509,17 @@ h4 {
order: 10;
}
}
.skeleton, .skeleton-cards {
background-color: rgb(var(--v-theme-gris-skeleton)) !important;
}
a,
a:visited,
a:hover,
a:active {
color: inherit;
text-decoration: none;
font-weight: 600;
}
</style>
Binary file removed assets/idref-icone.png
Binary file not shown.
3 changes: 2 additions & 1 deletion components/common/DomainSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ watch(() => currentRoute.path, () => {
}
.v-divider {
color: #0b2134;
color: rgb(var(--v-theme-gris-fonce));
opacity: 0.5;
border-width: 0 2px 0 0;
margin: 0 2rem 0 2rem;
Expand Down
7 changes: 1 addition & 6 deletions components/common/ExportButton.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
<template>
<v-menu location="bottom">
<template v-slot:activator="{ props }">
<v-btn flat append-icon="mdi-file-export-outline" variant="outlined" v-bind="props">
<template v-slot:append-icon>
<v-icon>
mdi-file-export-outline
</v-icon>
</template>
<v-btn flat append-icon="mdi-upload-box" variant="outlined" v-bind="props">
<p>{{ $t("theseView.exporter") }}</p>
</v-btn>
</template>
Expand Down
4 changes: 4 additions & 0 deletions components/common/HeaderCustom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,8 @@ header {
opacity: 1;
}
}
:deep(.v-switch__track) {
background-color: rgb(var(--v-theme-gris-switch));
}
</style>
17 changes: 8 additions & 9 deletions components/common/HeaderMobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,32 @@
<div class="left-side-buttons">
<!-- Bouton menu burger -->
<div class="buttons">
<v-icon @click="activateMenu" size="35px" :class="{ 'logo-active': showMenu }">mdi-menu
<v-icon :title="$t('menu')" @click="activateMenu" size="35px" :class="{ 'logo-active': showMenu }">mdi-menu
</v-icon>
<v-tooltip activator="parent">{{ $t('menu') }}</v-tooltip>
</div>
<v-btn variant="plain" @click="dialog = true" class="buttons language-accessibility-button"
:title="$t('access.btn')">
<img :alt="$t('header.accessibility')" id="logo-handicap-visuel" :src="'/icone-handicap-visuel-' + colorMode + '.svg'" />
<v-tooltip activator="parent">{{ $t('header.accessibility') }}</v-tooltip>
</v-btn>
</div>
<div class="right-side-buttons">
<!-- Bouton filtres-->
<button v-if="type === 'resultats'" @click="activateFilterMenu" color="primary"
class="filter-mobile-nav-bar buttons">
<v-icon v-bind="props" size="35px">mdi-filter-menu-outline
<v-icon :title="$t('filtres')" v-bind="props" size="35px">mdi-filter-menu-outline
</v-icon>
<v-tooltip activator="parent" location="start">{{ $t('filtres') }}</v-tooltip>
</button>
<!-- Bouton accès theses -->
<button
v-if="type === 'these' && theseSoutenue && (categoriesValide.length > 0 || boutonsAutres.length > 0) || (theseSoutenue && status === 'enCours')"
@click="activateThesisAccess" class="filter-mobile-nav-bar buttons">
<v-icon v-bind="props" color="primary" size="35px">mdi-book-arrow-down-outline
<v-icon :title="$t('theseView.access')" v-bind="props" color="primary" size="35px">mdi-book-arrow-down-outline
</v-icon>
<v-tooltip activator="parent">{{ $t('theseView.access') }}</v-tooltip>
</button>
<!-- Bouton menu recherche/selecteur these/personnes-->
<div v-if="type !== 'home'" class="buttons">
<v-icon @click="activateSearchBar" size="35px" :class="{ 'logo-active': showSearchBar }">mdi-magnify
<v-icon :title="$t('rechercher')" @click="activateSearchBar" size="35px" :class="{ 'logo-active': showSearchBar }">mdi-magnify
</v-icon>
<v-tooltip activator="parent" location="start">{{ $t('rechercher') }}</v-tooltip>
</div>
</div>
</nav>
Expand Down Expand Up @@ -337,4 +332,8 @@ watch(changeContrast, newValue => {
:deep(.v-btn--variant-plain) {
opacity: 1 !important;
}
:deep(.v-switch__track) {
background-color: rgb(var(--v-theme-gris-switch));
}
</style>
19 changes: 15 additions & 4 deletions components/common/Keywords.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<div class="mots-cles-controlles" v-if="rameauKeywords.length > 0">
<div class="subtitle">
<h3>{{ $t("motCleControle") }}</h3>
<v-btn class="info-button" flat icon="mdi-information-outline" title="Informations sur les mots clés">
<v-btn class="info-button" flat title="Informations sur les mots clés">
<v-icon size="22">mdi-information-outline</v-icon>
<span class="sr-only">Informations sur les mots clés</span>
</v-btn>
<v-overlay activator=".info-button" location-strategy="connected" scroll-strategy="close">
Expand Down Expand Up @@ -270,6 +271,11 @@ h3 {
color: rgb(var(--v-theme-text-dark-blue))
}
.info-button {
min-width: unset;
padding: 0 8px;
}
.mdi-list-box.v-icon--size-default {
font-size: 30px;
width: 35px;
Expand All @@ -285,11 +291,12 @@ h3 {
margin-top: unset !important;
.free-chip {
background-color: rgb(var(--v-theme-secondary-darken-2)) !important;
background-color: rgb(var(--v-theme-secondary-darken-3)) !important;
}
.rameau-chip {
background-color: rgb(var(--v-theme-orange-abes)) !important;
background-color: rgb(var(--v-theme-orange-abes-thesaurus)) !important;
color: rgb(var(--v-theme-thesaurus-text));
}
.chips {
Expand All @@ -316,7 +323,7 @@ h3 {
font-family: Roboto Black, sans-serif;
font-weight: 600;
font-size: 16px;
color: rgb(var(--v-theme-surface));
color: rgb(var(--v-theme-white-text));
}
.v-chip--disabled {
Expand Down Expand Up @@ -390,4 +397,8 @@ h3 {
width: fit-content;
}
}
:deep(.v-chip__underlay) {
opacity: 0 !important;
}
</style>
10 changes: 10 additions & 0 deletions components/common/results/FacetDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,16 @@ watch(() => props.resetTextFields,
opacity: 0.9;
}
.facet-search-bar {
:deep(.v-field__outline) {
--v-field-border-opacity: 1;
}
:deep(.v-label) {
opacity: 1 !important;
}
}
.panel-text {
overflow: auto;
padding: 0 10px;
Expand Down
4 changes: 2 additions & 2 deletions components/common/results/ResultComponents.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</CommonResultsResultList>
</div>
<div v-else>
<div v-for="i in currentShowingNumber" :key="i" class="skeleton">
<div v-for="i in currentShowingNumber" :key="i" class="skeleton-wrapper">
<v-card :flat="true" style="margin-bottom: 1rem;">
<v-skeleton-loader type="article">
</v-skeleton-loader>
Expand Down Expand Up @@ -182,7 +182,7 @@ watch(() => props.resetPage, () => {
min-height: 190px;
}
.skeleton {
.skeleton-wrapper {
padding: 0;
display: grid;
grid-template-columns: 95%
Expand Down
13 changes: 7 additions & 6 deletions components/organismes/OrganismeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<a :href="`https://www.idref.fr/${props.id}`" class="idref-logo" target="_blank"
alt="Accéder à IdRef, le référentiel des personnes et des structures"
title="Accéder à IdRef, le référentiel des personnes et des structures">
<img alt="logo IdRef" id="logoIdref" src="@/assets/idref-icone.png" />
<img alt="Accéder à la page IdRef correspondante" id="logoIdref" :src="'/idref-icone-' + colorMode + '.svg'" />
<span>IdRef</span>
</a>
</div>
Expand All @@ -77,13 +77,13 @@
<div v-for="(these, index) in item[key]" :key="these" class="card-wrapper">
<v-lazy :options="{ threshold: 1.0 }">

<ResultCard :titre="these.titrePrincipal"
<ThesesResultsResultCard :titre="these.titrePrincipal"
:date="these.status === 'enCours' ? these.datePremiereInscriptionDoctorat : these.dateSoutenance"
:auteur="these.auteurs" :directeurs="these.directeurs"
:discipline="these.discipline" :etab="these.etabSoutenanceN"
:etabPPN="these.etabSoutenancePpn" :id="these.id"
:status="these.status">
</ResultCard>
</ThesesResultsResultCard>
</v-lazy>
<hr class="result-dividers" v-if="index < item[key].length - 1" />
</div>
Expand All @@ -100,7 +100,7 @@
</div>
</div>
<ClientOnly>
<ScrollToTopButton class="scroll-to-top-wrapper" :nb-result=1></ScrollToTopButton>
<CommonScrollToTopButton class="scroll-to-top-wrapper" :nb-result=1></CommonScrollToTopButton>
</ClientOnly>
</div>
</template>
Expand All @@ -109,8 +109,9 @@
import { useI18n } from "vue-i18n";
import { ref, defineAsyncComponent } from "vue";
import { useDisplay } from "vuetify";
import ResultCard from "../theses/results/ResultCard.vue";
import ScrollToTopButton from "../common/ScrollToTopButton.vue";
import { useColorMode } from '@vueuse/core';

const colorMode = useColorMode();

const { mobile } = useDisplay();
const { t } = useI18n();
Expand Down
5 changes: 3 additions & 2 deletions components/personnes/PersonneView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</h1>
<a v-if="item.has_idref" class="idref-logo" :href="`https://www.idref.fr/${item.id}`" target="_blank"
title="Accéder à IdRef, le référentiel des personnes et des structures">
<img alt="logo IdRef" id="logoIdref" src="@/assets/idref-icone.png" />
<img alt="Accéder à la page IdRef correspondante" id="logoIdref" :src="'/idref-icone-' + colorMode + '.svg'" />
<span>IdRef</span>
</a>
</div>
Expand Down Expand Up @@ -107,8 +107,9 @@
import { useI18n } from "vue-i18n";
import { defineAsyncComponent, onUpdated, ref } from 'vue';
import { useDisplay } from "vuetify";
import { useColorMode } from '@vueuse/core';


const colorMode = useColorMode();
const { mobile } = useDisplay();
const MessageBox = defineAsyncComponent(() => import('@/components/common/MessageBox.vue'));
const { getPersonne } = usePersonnesAPI();
Expand Down
4 changes: 3 additions & 1 deletion components/personnes/results/PersonnesCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="idref-container">
<a v-if="item.has_idref" :href="`https://www.idref.fr/${item.id}`" target="_blank"
title="Accéder à IdRef, le référentiel des personnes et des structures" class="idref-logo">
<img alt="logo IdRef" id="logoIdref" src="@/assets/idref-icone.png" />
<img alt="Accéder à la page IdRef correspondante" id="logoIdref" :src="'/idref-icone-' + colorMode + '.svg'" />
<span>IdRef</span>
</a>
</div>
Expand Down Expand Up @@ -46,7 +46,9 @@
<script setup>
import { computed } from 'vue';
import { useDisplay } from "vuetify";
import { useColorMode } from '@vueuse/core';
const colorMode = useColorMode();
const router = useRouter();
const currentRoute = useRoute();
const { mobile } = useDisplay();
Expand Down
8 changes: 8 additions & 0 deletions components/personnes/search/SearchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ defineExpose({
:deep(.v-combobox__selection) {
overflow: hidden !important;
}
:deep(.v-label) {
opacity: 1 !important;
}
}
.searchbar__action {
Expand Down Expand Up @@ -361,6 +365,10 @@ defineExpose({
:deep(.v-field--appended) {
padding-inline-end: 0 !important;
}
:deep(.v-field__outline) {
--v-field-border-opacity: 1 !important;
}
</style>

<style lang="scss">
Expand Down
11 changes: 8 additions & 3 deletions components/theses/ButtonsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
</v-expansion-panel-title>
<v-expansion-panel-text>
<div class="buttons-list" v-for="b in sousCategorie.boutons" :key="b">
<v-btn v-if="b.typeAcces == 'ACCES_ESR'" color="secondary-darken-2" append-icon="mdi-open-in-new"
<v-btn v-if="b.typeAcces == 'ACCES_ESR'" class="thesis-access-buttons" append-icon="mdi-open-in-new"
@click="checkboxModal = false; dialog = true; dialogUrl = b.url.startsWith('http') ? b.url : baseURL + b.url"
:aria-label="b.libelle" :flat="true">{{
b.libelle }}
</v-btn>
<v-btn v-else-if="b.url" color="secondary-darken-2" append-icon="mdi-open-in-new"
<v-btn v-else-if="b.url" class="thesis-access-buttons" append-icon="mdi-open-in-new"
:href="b.url.startsWith('http') ? b.url : baseURL + b.url" target="_blank" :title="b.libelle"
:aria-label="b.libelle" :flat="true">{{
b.libelle }}
Expand Down Expand Up @@ -64,7 +64,7 @@
</v-expansion-panel-title>
<v-expansion-panel-text>
<div class="buttons-list" v-for="b in boutonsAutres" :key="b">
<v-btn v-if="b.url" color="secondary-darken-2" append-icon="mdi-open-in-new"
<v-btn v-if="b.url" class="thesis-access-buttons" append-icon="mdi-open-in-new"
:href="b.url.startsWith('http') ? b.url : baseURL + b.url" target="_blank" :title="b.libelle"
:aria-label="b.libelle" :flat="true">{{
b.libelle }}
Expand Down Expand Up @@ -454,4 +454,9 @@ h4 {
margin-left: 10px;
}
}
.thesis-access-buttons {
background-color: rgb(var(--v-theme-secondary-darken-3));
color: rgb(var(--v-theme-white-text));
}
</style>
8 changes: 0 additions & 8 deletions components/theses/results/ResultCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,6 @@ const route = useRoute();
<style scoped lang="scss">
@use 'vuetify/settings';
a,
a:visited,
a:hover,
a:active {
color: inherit;
text-decoration: none;
}
.card-container {
display: flex;
flex-direction: column;
Expand Down
4 changes: 4 additions & 0 deletions components/theses/search/AdvancedForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,10 @@ hr {
color: rgb(var(--v-theme-secondary-darken-2));
font-weight: 500;
}
:deep(.v-switch__track) {
background-color: rgb(var(--v-theme-gris-switch));
}
</style>

<style>
Expand Down
9 changes: 8 additions & 1 deletion components/theses/search/SearchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ defineExpose({
:deep(.v-combobox__selection) {
overflow: hidden !important;
}
:deep(.v-label) {
opacity: 1 !important;
}
}
.searchbar__action {
Expand All @@ -259,7 +263,6 @@ defineExpose({
:deep(.v-label) {
color: rgb(var(--v-theme-primary));
opacity: 1;
font-size: 0.95rem;
}
Expand Down Expand Up @@ -336,6 +339,10 @@ defineExpose({
:deep(.v-field--appended) {
padding-inline-end: 0 !important;
}
:deep(.v-field__outline) {
--v-field-border-opacity: 1 !important;
}
</style>

<style lang="scss">
Expand Down
Loading

0 comments on commit acb5d61

Please sign in to comment.