admin/src/index.css
@tailwind base;
@tailwind components;
@tailwind utilities;
@font-face {
font-family: "Marianne";
src:
local("Marianne"),
url("./fonts/Marianne/Marianne-Light_Italic.woff") format("woff");
font-weight: 300;
font-style: italic;
}
@font-face {
font-family: "Marianne";
src:
local("Marianne"),
url("./fonts/Marianne/Marianne-Light.woff") format("woff");
font-weight: 300;
font-style: normal;
}
@font-face {
font-family: "Marianne";
src:
local("Marianne"),
url("./fonts/Marianne/Marianne-Regular.woff") format("woff");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Marianne";
src:
local("Marianne"),
url("./fonts/Marianne/Marianne-Regular_Italic.woff") format("woff");
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: "Marianne";
src:
local("Marianne"),
url("./fonts/Marianne/Marianne-Medium_Italic.woff") format("woff");
font-weight: 500;
font-style: italic;
}
@font-face {
font-family: "Marianne";
src:
local("Marianne"),
url("./fonts/Marianne/Marianne-Medium.woff") format("woff");
font-weight: 500;
font-style: normal;
}
@font-face {
font-family: "Marianne";
src:
local("Marianne"),
url("./fonts/Marianne/Marianne-Bold_Italic.woff") format("woff");
font-weight: 600;
font-style: italic;
}
@font-face {
font-family: "Marianne";
src:
local("Marianne"),
url("./fonts/Marianne/Marianne-Bold.woff") format("woff");
font-weight: 600;
font-style: normal;
}
@font-face {
font-family: "Marianne";
src:
local("Marianne"),
url("./fonts/Marianne/Marianne-Bold_Italic.woff") format("woff");
font-weight: 700;
font-style: italic;
}
@font-face {
font-family: "Marianne";
src:
local("Marianne"),
url("./fonts/Marianne/Marianne-Bold.woff") format("woff");
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: "Marianne";
src:
local("Marianne"),
url("./fonts/Marianne/Marianne-ExtraBold_Italic.woff") format("woff");
font-weight: 800;
font-style: italic;
}
@font-face {
font-family: "Marianne";
src:
local("Marianne"),
url("./fonts/Marianne/Marianne-ExtraBold.woff") format("woff");
font-weight: 800;
font-style: normal;
}
@font-face {
font-family: "Marianne";
src:
local("Marianne"),
url("./fonts/Marianne/Marianne-Thin_Italic.woff") format("woff");
font-weight: 100;
font-style: italic;
}
@font-face {
font-family: "Marianne";
src:
local("Marianne"),
url("./fonts/Marianne/Marianne-Thin.woff") format("woff");
font-weight: 100;
font-style: normal;
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
font-family: "Marianne", sans-serif;
font-size: 14px;
font-weight: 400;
background-color: #f3f4f6;
color: #242526;
}
ul {
list-style: inside;
position: 0;
margin: 0;
}
#root {
display: flex;
flex-direction: column;
}
.main {
display: flex;
min-height: 100vh;
flex-direction: column;
}
input:focus,
textarea:focus,
select:focus {
outline: none;
}
table tr {
cursor: pointer;
}
a {
text-decoration: none;
color: inherit;
}
a:hover {
text-decoration: none;
}
.modal-backdrop {
background-color: #585765;
}
.modal-backdrop.show {
opacity: 0.5;
}
h2 {
margin-top: 2rem;
font-size: 2.5rem;
}
h3 {
font-size: 2rem;
}
h4 {
font-size: 1.25rem;
}
@layer components {
input,
textarea,
select {
@apply focus:outline-none focus:ring-0 !important;
}
.stats-card {
@apply flex items-center justify-between gap-4 overflow-hidden rounded-lg bg-white px-4 py-5 shadow transition-shadow hover:shadow-md sm:p-6;
}
.stats-card-grid {
@apply mt-5 grid grid-cols-4 gap-5;
}
.stats-card-disabled {
@apply transform-none hover:shadow;
}
.stats-card-wrapper {
@apply flex h-full flex-1 flex-col justify-between;
}
.stats-card-title {
@apply truncate text-sm font-medium text-gray-500;
}
.stats-card-value {
@apply mt-1 flex w-full items-center justify-between gap-2 text-3xl font-semibold;
}
.stats-card-value span {
@apply text-lg font-medium;
}
.stats-card-arrow {
@apply flex-none text-xl text-brand-grey;
}
.footer a {
@apply text-brand-grey transition-colors hover:text-snu-purple-300;
}
}
/* Filtre Reactive Base */
.datasearch-searchfield {
font-family: "Marianne";
margin-right: 10px;
height: 42px;
overflow: hidden;
box-shadow: none;
align-items: center;
background-color: white;
border-radius: 7px;
border: 1px solid #d1d5db;
padding: 0;
justify-content: center;
}
.datasearch-searchfield .searchbox {
height: 42px;
font-size: 12px;
display: block;
width: 25rem;
background-color: #fff;
color: #4b5563;
outline: 0;
padding: 15px 20px;
border-radius: 6px;
margin-right: 15px;
border: none;
}
.dropdown-filter button {
font-family: "Marianne";
height: 2.5rem;
background-color: #fff;
border: 1px solid #d1d5db;
border-radius: 6px;
padding: 10px 20px;
font-size: 14px;
color: #242526;
min-width: 150px;
max-width: 300px;
cursor: pointer;
}
.dropdown-filter button:first-of-type {
margin-right: 10px;
}
.dropdown-filter button div {
width: 100%;
overflow: ellipsis;
}
/* Result table reactive base */
.reactive-result {
font-family: "Marianne";
position: relative;
padding-bottom: 10px;
}
.reactive-result .pagination {
display: flex;
justify-content: flex-end;
padding: 10px 25px;
background: #fff;
margin: 0;
}
.reactive-result .pagination a {
background: #f7fafc;
color: #242526;
padding: 3px 10px;
font-size: 12px;
margin: 0 5px;
}
.reactive-result .pagination a.active {
font-weight: 600;
}
.reactive-result .pagination a:first-child {
background-image: url("/src/assets/left.svg");
}
.reactive-result .pagination a:last-child {
background-image: url("/src/assets/right.svg");
}
.reactive-result .pagination a:first-child,
.reactive-result .pagination a:last-child {
font-size: 0;
height: 24px;
width: 30px;
background-position: center;
background-repeat: no-repeat;
background-size: 8px;
}
.reactive-result select.sort-options {
font-family: "Marianne";
background: transparent;
background-image: transparent;
background-image: url("/src/assets/reactiveList-sort-arrow.svg");
background-repeat: no-repeat;
background-position-x: 100%;
background-position-y: 54%;
position: absolute;
text-align: end;
top: 2.5rem;
right: 3rem;
outline: 0;
padding: 0.2rem 2rem 0.2rem 0.5rem;
font-size: 0.7rem;
color: #374151;
min-width: 250px;
font-size: 13px;
cursor: pointer;
}
/* REACT DATE PICKER */
.rdp {
--rdp-accent-color: #2563eb;
--rdp-background-color: #eff6ff;
--rdp-accent-color-dark: #2563eb;
--rdp-background-color-dark: #2563eb;
--rdp-outline: none; /* Outline border for focused elements */
--rdp-outline-selected: none; /* Outline border for focused _and_ selected elements */
margin: 1em;
}
.rdp-caption {
position: relative;
height: 40px;
}
.rdp-caption_dropdowns {
position: relative;
left: 50%;
transform: translateX(-50%);
}
.rdp-nav_button_next {
color: #797b86;
}
.rdp-nav_button_previous {
position: absolute;
left: 0;
color: #797b86;
}
.rdp-nav_button_previous:hover {
background-color: #eff6ff;
}
.rdp-nav_button_previous:hover {
background-color: #eff6ff !important;
}
.rdp-nav_button_next:hover {
background-color: #eff6ff !important;
}
.rdp-dropdown_month {
text-transform: capitalize;
}
.rdp-day_selected {
background-color: #2563eb;
color: #fff;
border-radius: 8px;
}
.rdp-button:hover:not([disabled]):not(.rdp-day_selected) {
background-color: transparent;
}
.rdp-dropdown:focus-visible:not([disabled]) + .rdp-caption_label {
background-color: transparent;
border: none;
}
.rdp-day:hover:not([disabled]):not(.rdp-day_selected) {
background-color: #eff6ff;
border-radius: 8px;
}
.rdp-day_today:not(.rdp-day_outside):not(.rdp-day_selected) {
font-weight: bold;
color: #2563eb;
}
.rdp-head_cell {
font-size: 11px;
color: #797b86;
font-weight: 500;
text-transform: capitalize;
}
.rdp-day_outside:not(.rdp-day_selected) {
color: #d6d8e1;
opacity: 1;
}
.rdp-day_outside:is(.rdp-day_selected) {
background-color: #2563eb;
color: #fff;
opacity: 1;
}
.rdp:not([dir="rtl"]) .rdp-day_range_start:not(.rdp-day_range_end) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.rdp:not([dir="rtl"]) .rdp-day_range_end:not(.rdp-day_range_start) {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.rdp[dir="rtl"] .rdp-day_range_start:not(.rdp-day_range_end) {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.rdp[dir="rtl"] .rdp-day_range_end:not(.rdp-day_range_start) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.rdp-day_range_end.rdp-day_range_start {
border-radius: 100%;
}
.rdp-day_range_middle {
border-radius: 0;
}
.rdp-cell {
height: 100%;
padding-top: 1px;
padding-bottom: 1px;
text-align: center;
}
.rdp-dropdown_icon {
margin: 0 0 0 5px;
color: #797b86;
}
@layer utilities {
/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
}
/* react-redux-toastr */
.redux-toastr .rrt-holder {
display: flex;
align-items: center;
justify-items: center;
}
.redux-toastr .toastr .rrt-left-container {
width: 50px;
}
.redux-toastr .toastr .rrt-middle-container {
margin-left: 50px;
width: 75%;
}
.redux-toastr .toastr .rrt-left-container .rrt-holder {
width: auto;
left: 15px;
top: 35px;
}
.redux-toastr .toastr .rrt-left-container .toastr-icon {
margin: auto;
}
.redux-toastr .toastr .close-toastr {
color: white;
}