2022-06-16 18:44:05 +02:00
|
|
|
@button-font-size: @global-small-font-size;
|
2022-06-17 13:39:21 +02:00
|
|
|
@button-small-font-size: @global-xsmall-font-size;
|
2022-06-16 18:44:05 +02:00
|
|
|
@button-large-font-size: @global-font-size;
|
2022-08-03 19:45:44 +02:00
|
|
|
@button-font-weight: 600;
|
2022-06-16 18:44:05 +02:00
|
|
|
@button-border-width: @global-border-width;
|
|
|
|
@button-text-transform: uppercase;
|
|
|
|
@button-border-radius: 500px;
|
2023-11-30 22:01:14 +01:00
|
|
|
@button-shadow: @global-medium-box-shadow;
|
|
|
|
@button-hover-shadow: @global-small-box-shadow;
|
|
|
|
@button-active-shadow: @button-hover-shadow;
|
2022-06-16 18:44:05 +02:00
|
|
|
|
|
|
|
/* Default */
|
|
|
|
@button-default-background: @global-background;
|
|
|
|
@button-default-color: @global-color;
|
|
|
|
@button-default-box-shadow: @global-medium-box-shadow;
|
|
|
|
@button-default-border: transparent;
|
|
|
|
@button-default-hover-background: @global-background;
|
2023-11-30 22:01:14 +01:00
|
|
|
@button-default-hover-color: @button-shadow;
|
|
|
|
@button-default-hover-box-shadow: @button-hover-shadow;
|
2022-06-16 18:44:05 +02:00
|
|
|
@button-default-hover-border: transparent;
|
2023-11-14 15:07:20 +01:00
|
|
|
@button-default-active-background: @button-default-hover-background;
|
|
|
|
@button-default-active-color: @button-default-hover-color;
|
2023-11-30 22:01:14 +01:00
|
|
|
@button-default-active-box-shadow: @button-active-shadow;
|
2023-11-14 15:07:20 +01:00
|
|
|
@button-default-active-border: @button-default-hover-border;
|
2022-06-16 18:44:05 +02:00
|
|
|
|
|
|
|
/* Primary */
|
|
|
|
@button-primary-background: @global-primary-background;
|
|
|
|
@button-primary-background-gradient: @global-primary-gradient;
|
|
|
|
@button-primary-color: @global-inverse-color;
|
2023-11-30 22:01:14 +01:00
|
|
|
@button-primary-box-shadow: @button-shadow;
|
2022-06-16 18:44:05 +02:00
|
|
|
@button-primary-border: transparent;
|
|
|
|
@button-primary-hover-background: @global-secondary-background;
|
|
|
|
@button-primary-hover-background-gradient: none;
|
|
|
|
@button-primary-hover-color: @global-inverse-color;
|
2023-11-30 22:01:14 +01:00
|
|
|
@button-primary-hover-box-shadow: @button-hover-shadow;
|
2022-06-16 18:44:05 +02:00
|
|
|
@button-primary-hover-border: transparent;
|
2023-11-14 15:07:20 +01:00
|
|
|
@button-primary-active-background: @button-primary-hover-background;
|
|
|
|
@button-primary-active-background-gradient: @button-primary-hover-background-gradient;
|
|
|
|
@button-primary-active-color: @button-primary-hover-color;
|
2023-11-30 22:01:14 +01:00
|
|
|
@button-primary-active-box-shadow: @button-active-shadow;
|
2023-11-14 15:07:20 +01:00
|
|
|
@button-primary-active-border: @button-primary-hover-border;
|
2022-06-16 18:44:05 +02:00
|
|
|
|
|
|
|
/* Secondary */
|
|
|
|
@button-secondary-background: @global-background;
|
|
|
|
@button-secondary-background-gradient: none;
|
|
|
|
@button-secondary-color: @global-primary-background;
|
2023-11-30 22:01:14 +01:00
|
|
|
@button-secondary-box-shadow: @button-shadow;
|
2022-06-16 18:44:05 +02:00
|
|
|
@button-secondary-border: @global-primary-background;
|
|
|
|
@button-secondary-hover-background: @global-primary-background;
|
|
|
|
@button-secondary-hover-background-gradient: @global-primary-gradient;
|
|
|
|
@button-secondary-hover-color: @global-inverse-color;
|
2023-11-30 22:01:14 +01:00
|
|
|
@button-secondary-hover-box-shadow: @button-hover-shadow;
|
2022-06-16 18:44:05 +02:00
|
|
|
@button-secondary-hover-border: transparent;
|
2023-11-14 15:07:20 +01:00
|
|
|
@button-secondary-active-background: @button-secondary-hover-background;
|
|
|
|
@button-secondary-active-background-gradient: @button-secondary-hover-background-gradient;
|
|
|
|
@button-secondary-active-color: @button-secondary-hover-color;
|
2023-11-30 22:01:14 +01:00
|
|
|
@button-secondary-active-box-shadow: @button-active-shadow;
|
2023-11-14 15:07:20 +01:00
|
|
|
@button-secondary-active-border: @button-secondary-hover-border;
|
2022-06-16 18:44:05 +02:00
|
|
|
|
|
|
|
/* Danger */
|
|
|
|
@button-danger-background: @global-danger-background;
|
|
|
|
@button-danger-background-gradient: none;
|
|
|
|
@button-danger-color: @global-inverse-color;
|
2023-11-30 22:01:14 +01:00
|
|
|
@button-danger-box-shadow: @button-shadow;
|
2022-06-16 18:44:05 +02:00
|
|
|
@button-danger-border: @global-danger-background;
|
|
|
|
@button-danger-hover-background: @global-background;
|
|
|
|
@button-danger-hover-background-gradient: none;
|
|
|
|
@button-danger-hover-color: @global-danger-background;
|
2023-11-30 22:01:14 +01:00
|
|
|
@button-danger-hover-box-shadow: @button-hover-shadow;
|
2022-06-16 18:44:05 +02:00
|
|
|
@button-danger-hover-border: @global-danger-background;
|
2023-11-14 15:07:20 +01:00
|
|
|
@button-danger-active-background: @button-danger-hover-background;
|
|
|
|
@button-danger-active-background-gradient: @button-danger-hover-background-gradient;
|
|
|
|
@button-danger-active-color: @button-danger-hover-color;
|
2023-11-30 22:01:14 +01:00
|
|
|
@button-danger-active-box-shadow: @button-active-shadow;
|
2023-11-14 15:07:20 +01:00
|
|
|
@button-danger-active-border: @button-danger-hover-border;
|
2022-06-16 18:44:05 +02:00
|
|
|
|
|
|
|
/* Text */
|
|
|
|
@button-text-color: @global-primary-background;
|
|
|
|
@button-text-hover-color: @button-text-color;
|
|
|
|
|
|
|
|
/* Link */
|
2023-11-21 16:45:13 +01:00
|
|
|
@button-link-color: @openaire-primary-color;
|
|
|
|
@button-link-hover-color: @openaire-secondary-color;
|
2022-06-16 18:44:05 +02:00
|
|
|
|
|
|
|
/* Disabled */
|
|
|
|
@button-disabled-box-shadow: none;
|
|
|
|
@button-disabled-border: @global-border;
|
|
|
|
|
|
|
|
.hook-button() {
|
|
|
|
font-weight: @button-font-weight;
|
|
|
|
text-transform: @button-text-transform;
|
|
|
|
border-radius: @button-border-radius;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Default */
|
|
|
|
.hook-button-default() {
|
|
|
|
box-shadow: @button-default-box-shadow;
|
|
|
|
border: @button-border-width solid @button-default-border;
|
|
|
|
background-origin: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-button-default-hover() {
|
|
|
|
box-shadow: @button-default-hover-box-shadow;
|
|
|
|
border: @button-border-width solid @button-default-hover-border;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-button-default-active() {
|
|
|
|
box-shadow: @button-default-active-box-shadow;
|
|
|
|
border: @button-border-width solid @button-default-active-border;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Primary */
|
|
|
|
.hook-button-primary() {
|
|
|
|
box-shadow: @button-primary-box-shadow;
|
|
|
|
border: @button-border-width solid @button-primary-border;
|
|
|
|
background-image: @button-primary-background-gradient;
|
|
|
|
background-origin: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-button-primary-hover() {
|
|
|
|
box-shadow: @button-primary-hover-box-shadow;
|
|
|
|
border: @button-border-width solid @button-primary-hover-border;
|
|
|
|
background-image: @button-primary-hover-background-gradient;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-button-primary-active() {
|
|
|
|
box-shadow: @button-primary-active-box-shadow;
|
|
|
|
border: @button-border-width solid @button-primary-active-border;
|
|
|
|
background-image: @button-primary-active-background-gradient;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Secondary */
|
|
|
|
.hook-button-secondary() {
|
|
|
|
box-shadow: @button-secondary-box-shadow;
|
|
|
|
border: @button-border-width solid @button-secondary-border;
|
|
|
|
background-image: @button-secondary-background-gradient;
|
|
|
|
background-origin: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-button-secondary-hover() {
|
|
|
|
box-shadow: @button-secondary-hover-box-shadow;
|
|
|
|
border: @button-border-width solid @button-secondary-hover-border;
|
|
|
|
background-image: @button-secondary-hover-background-gradient;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-button-secondary-active() {
|
|
|
|
box-shadow: @button-secondary-active-box-shadow;
|
|
|
|
border: @button-border-width solid @button-secondary-active-border;
|
|
|
|
background-image: @button-secondary-active-background-gradient;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Danger */
|
|
|
|
.hook-button-danger() {
|
|
|
|
box-shadow: @button-danger-box-shadow;
|
|
|
|
border: @button-border-width solid @button-danger-border;
|
|
|
|
background-image: @button-danger-background-gradient;
|
|
|
|
background-origin: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-button-danger-hover() {
|
|
|
|
box-shadow: @button-danger-hover-box-shadow;
|
|
|
|
border: @button-border-width solid @button-danger-hover-border;
|
|
|
|
background-image: @button-danger-hover-background-gradient;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-button-danger-active() {
|
|
|
|
box-shadow: @button-danger-active-box-shadow;
|
|
|
|
border: @button-border-width solid @button-danger-active-border;
|
|
|
|
background-image: @button-danger-active-background-gradient;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Text */
|
|
|
|
.hook-button-text() {
|
2022-07-18 23:47:49 +02:00
|
|
|
padding: 0 1.5*1.42em 0 0;
|
2022-06-16 18:44:05 +02:00
|
|
|
border-radius: 0;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '\f1df';
|
|
|
|
font-family: "Material Icons Round";
|
2022-07-18 23:47:49 +02:00
|
|
|
font-size: 1.42em;
|
2022-06-16 18:44:05 +02:00
|
|
|
position: absolute;
|
2022-07-18 23:47:49 +02:00
|
|
|
transform: translateY(-50%);
|
|
|
|
top: 50%;
|
2022-06-16 18:44:05 +02:00
|
|
|
right: 0;
|
|
|
|
transition: right linear 0.2s;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover::before {
|
2022-07-18 23:47:49 +02:00
|
|
|
right: -0.25em;
|
2022-06-16 18:44:05 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Link */
|
|
|
|
.hook-button-link() {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Disable */
|
|
|
|
.hook-button-disabled() {
|
|
|
|
box-shadow: @button-disabled-box-shadow;
|
|
|
|
border: @button-border-width solid @button-disabled-border;
|
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
|
2024-02-08 16:47:24 +01:00
|
|
|
.hook-button-misc() {
|
|
|
|
a:hover {
|
|
|
|
& .uk-button-default:extend(.uk-button-default:hover){};
|
|
|
|
& .uk-button-primary:extend(.uk-button-primary:hover){};
|
|
|
|
& .uk-button-secondary:extend(.uk-button-secondary:hover){};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-16 18:44:05 +02:00
|
|
|
/* Inverse */
|
2023-11-30 22:01:14 +01:00
|
|
|
@inverse-button-box-shadow: @inverse-global-medium-box-shadow;
|
|
|
|
@inverse-button-hover-box-shadow: @inverse-global-small-box-shadow;
|
|
|
|
@inverse-button-active-box-shadow: @inverse-button-hover-box-shadow;
|
2022-06-16 18:44:05 +02:00
|
|
|
|
|
|
|
/* Default */
|
|
|
|
@inverse-button-default-background: @global-background;
|
|
|
|
@inverse-button-default-color: @global-color;
|
2023-11-30 22:01:14 +01:00
|
|
|
@inverse-button-default-box-shadow: @inverse-button-box-shadow;
|
2022-06-16 18:44:05 +02:00
|
|
|
@inverse-button-default-border: transparent;
|
|
|
|
@inverse-button-default-hover-background: @global-background;
|
|
|
|
@inverse-button-default-hover-color: @global-secondary-background;
|
2023-11-30 22:01:14 +01:00
|
|
|
@inverse-button-default-hover-box-shadow: @inverse-button-hover-box-shadow;
|
2022-06-16 18:44:05 +02:00
|
|
|
@inverse-button-default-hover-border: transparent;
|
|
|
|
@inverse-button-default-active-background: @global-background;
|
|
|
|
@inverse-button-default-active-color: @global-secondary-background;
|
2023-11-30 22:01:14 +01:00
|
|
|
@inverse-button-default-active-box-shadow: @inverse-button-active-box-shadow;
|
2022-06-16 18:44:05 +02:00
|
|
|
@inverse-button-default-active-border: transparent;
|
|
|
|
|
|
|
|
/* Primary */
|
2022-12-23 12:06:38 +01:00
|
|
|
@inverse-button-primary-background: @button-primary-background;
|
|
|
|
@inverse-button-primary-background-gradient: @button-primary-background-gradient;
|
|
|
|
@inverse-button-primary-color: @button-primary-color;
|
2023-11-30 22:01:14 +01:00
|
|
|
@inverse-button-primary-box-shadow: @inverse-button-box-shadow;
|
2022-12-23 12:06:38 +01:00
|
|
|
@inverse-button-primary-border: @button-primary-border;
|
|
|
|
@inverse-button-primary-hover-background: @button-primary-hover-background;
|
|
|
|
@inverse-button-primary-hover-background-gradient: @button-primary-hover-background-gradient;
|
|
|
|
@inverse-button-primary-hover-color: @button-primary-hover-color;
|
2023-11-30 22:01:14 +01:00
|
|
|
@inverse-button-primary-hover-box-shadow: @inverse-button-hover-box-shadow;
|
2022-12-23 12:06:38 +01:00
|
|
|
@inverse-button-primary-hover-border: @button-primary-hover-border;
|
|
|
|
@inverse-button-primary-active-background: @button-primary-active-background;
|
|
|
|
@inverse-button-primary-active-background-gradient: @button-primary-active-background-gradient;
|
|
|
|
@inverse-button-primary-active-color: @button-primary-active-color;
|
2023-11-30 22:01:14 +01:00
|
|
|
@inverse-button-primary-active-box-shadow: @inverse-button-active-box-shadow;
|
2022-12-23 12:06:38 +01:00
|
|
|
@inverse-button-primary-active-border: @button-primary-active-border;
|
2022-06-16 18:44:05 +02:00
|
|
|
|
|
|
|
/* Secondary */
|
|
|
|
@inverse-button-secondary-background: @global-background;
|
|
|
|
@inverse-button-secondary-background-gradient: none;
|
2022-12-23 12:06:38 +01:00
|
|
|
@inverse-button-secondary-color: @button-secondary-color;
|
2023-11-30 22:01:14 +01:00
|
|
|
@inverse-button-secondary-box-shadow: @inverse-button-box-shadow;
|
2022-12-23 12:06:38 +01:00
|
|
|
@inverse-button-secondary-border: @button-secondary-border;
|
|
|
|
@inverse-button-secondary-hover-background: @button-secondary-hover-background;
|
|
|
|
@inverse-button-secondary-hover-background-gradient: @button-secondary-hover-background-gradient;
|
|
|
|
@inverse-button-secondary-hover-color: @button-secondary-hover-color;
|
2023-11-30 22:01:14 +01:00
|
|
|
@inverse-button-secondary-hover-box-shadow: @inverse-button-hover-box-shadow;
|
2022-12-23 12:06:38 +01:00
|
|
|
@inverse-button-secondary-hover-border: @button-secondary-hover-border;
|
|
|
|
@inverse-button-secondary-active-background: @button-secondary-active-background;
|
|
|
|
@inverse-button-secondary-active-background-gradient: @button-secondary-active-background-gradient;
|
|
|
|
@inverse-button-secondary-active-color: @button-secondary-active-color;
|
2023-11-30 22:01:14 +01:00
|
|
|
@inverse-button-secondary-active-box-shadow: @inverse-button-active-box-shadow;
|
2022-06-16 18:44:05 +02:00
|
|
|
@inverse-button-secondary-active-border: transparent;
|
|
|
|
|
|
|
|
/* Danger */
|
2023-11-30 22:01:14 +01:00
|
|
|
@inverse-button-danger-box-shadow: @inverse-button-box-shadow;
|
|
|
|
@inverse-button-danger-hover-box-shadow: @button-secondary-hover-background;
|
|
|
|
@inverse-button-danger-active-box-shadow: @inverse-button-active-box-shadow;
|
2022-06-16 18:44:05 +02:00
|
|
|
|
|
|
|
/* Text */
|
|
|
|
@inverse-button-text-color: @global-inverse-color;
|
|
|
|
@inverse-button-text-hover-color: @inverse-button-text-color;
|
|
|
|
|
|
|
|
/* Link */
|
|
|
|
@inverse-button-link-color: @global-inverse-color;
|
|
|
|
@inverse-button-link-hover-color: @global-inverse-color;
|
|
|
|
@inverse-button-link-hover-text-transform: underline;
|
|
|
|
|
|
|
|
/* Disabled */
|
|
|
|
@inverse-button-disabled-background: @global-inverse-color;
|
|
|
|
@inverse-button-disabled-box-shadow: none;
|
|
|
|
@inverse-button-disabled-border: @global-inverse-color;
|
|
|
|
@inverse-button-disabled-color: @global-muted-color;
|
|
|
|
|
|
|
|
|
|
|
|
/* Default */
|
|
|
|
.hook-inverse-button-default() {
|
|
|
|
border-color: @inverse-button-default-border;
|
|
|
|
background-origin: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-inverse-button-default-hover() {
|
|
|
|
border-color: @inverse-button-default-hover-border;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-inverse-button-default-active() {
|
|
|
|
box-shadow: @inverse-button-default-active-box-shadow;
|
|
|
|
border-color: @inverse-button-default-active-border;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Primary */
|
|
|
|
.hook-inverse-button-primary() {
|
|
|
|
border-color: @inverse-button-primary-border;
|
|
|
|
background-image: @inverse-button-primary-background-gradient;
|
|
|
|
background-origin: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-inverse-button-primary-hover() {
|
|
|
|
border-color: @inverse-button-primary-hover-border;
|
|
|
|
background-image: @inverse-button-primary-hover-background-gradient;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-inverse-button-primary-active() {
|
|
|
|
border-color: @inverse-button-primary-active-border;
|
|
|
|
background-image: @inverse-button-primary-active-background-gradient;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Secondary */
|
|
|
|
.hook-inverse-button-secondary() {
|
|
|
|
border-color: @inverse-button-secondary-border;
|
|
|
|
background-image: @inverse-button-secondary-background-gradient;
|
|
|
|
background-origin: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-inverse-button-secondary-hover() {
|
|
|
|
border-color: @inverse-button-secondary-hover-border;
|
|
|
|
background-image: @inverse-button-secondary-hover-background-gradient;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-inverse-button-secondary-active() {
|
|
|
|
border-color: @inverse-button-secondary-active-border;
|
|
|
|
background-image: @inverse-button-secondary-active-background-gradient;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-inverse-misc() {
|
|
|
|
|
|
|
|
/* Default */
|
|
|
|
.uk-button-default {
|
|
|
|
box-shadow: @inverse-button-default-box-shadow;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
box-shadow: @inverse-button-default-hover-box-shadow;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
box-shadow: @inverse-button-default-active-box-shadow;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Primary */
|
|
|
|
.uk-button-primary {
|
|
|
|
box-shadow: @inverse-button-primary-box-shadow;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
box-shadow: @inverse-button-primary-hover-box-shadow;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
box-shadow: @inverse-button-primary-active-box-shadow;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Secondary */
|
|
|
|
.uk-button-secondary {
|
|
|
|
box-shadow: @inverse-button-secondary-box-shadow;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
box-shadow: @inverse-button-secondary-hover-box-shadow;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
box-shadow: @inverse-button-secondary-active-box-shadow;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Danger */
|
|
|
|
.uk-button-danger {
|
|
|
|
box-shadow: @inverse-button-danger-box-shadow;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
box-shadow: @inverse-button-danger-hover-box-shadow;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
box-shadow: @inverse-button-danger-active-box-shadow;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Disable */
|
|
|
|
.uk-button:disabled {
|
|
|
|
border-color: @inverse-button-disabled-border;
|
|
|
|
background-image: none;
|
|
|
|
background-color: @inverse-button-disabled-background;
|
|
|
|
color: @inverse-button-disabled-color;
|
|
|
|
box-shadow: @inverse-button-disabled-box-shadow;
|
|
|
|
}
|
|
|
|
}
|