debian-mirror-gitlab/app/assets/stylesheets/framework/awards.scss

256 lines
6 KiB
SCSS
Raw Normal View History

2015-12-23 02:04:40 +05:30
.awards {
2017-09-10 17:25:29 +05:30
display: flex;
flex-wrap: wrap;
.emoji-icon {
width: 20px;
height: 20px;
}
2016-06-02 11:05:42 +05:30
}
2016-06-02 11:05:42 +05:30
.emoji-menu {
2018-03-17 18:26:18 +05:30
display: none;
2016-06-02 11:05:42 +05:30
position: absolute;
2017-08-17 22:00:37 +05:30
top: 0;
2016-06-02 11:05:42 +05:30
margin-top: 3px;
2016-08-24 12:49:21 +05:30
padding: $gl-padding;
2017-08-17 22:00:37 +05:30
z-index: 300;
2019-07-07 11:18:12 +05:30
width: $award-emoji-width;
2016-06-02 11:05:42 +05:30
font-size: 14px;
2020-04-22 19:07:51 +05:30
background-color: $white;
2017-08-17 22:00:37 +05:30
border: 1px solid $border-white-light;
2016-06-02 11:05:42 +05:30
border-radius: $border-radius-base;
2017-08-17 22:00:37 +05:30
box-shadow: 0 6px 12px $award-emoji-menu-shadow;
2016-06-02 11:05:42 +05:30
pointer-events: none;
opacity: 0;
2019-07-07 11:18:12 +05:30
transform: scale(0.2);
2016-06-02 11:05:42 +05:30
transform-origin: 0 -45px;
2019-07-07 11:18:12 +05:30
transition: 0.3s cubic-bezier(0.67, 0.06, 0.19, 1.44);
transition-property: transform, opacity;
2018-03-17 18:26:18 +05:30
&.is-rendered {
display: block;
}
&.is-aligned-right {
transform-origin: 100% -45px;
}
2016-06-02 11:05:42 +05:30
&.is-visible {
pointer-events: all;
opacity: 1;
transform: scale(1);
}
2015-12-23 02:04:40 +05:30
2016-06-02 11:05:42 +05:30
.emoji-menu-content {
height: 300px;
overflow-y: scroll;
}
2017-08-17 22:00:37 +05:30
.disabled {
cursor: default;
opacity: 0.5;
&:hover {
transform: none;
}
}
2019-07-07 11:18:12 +05:30
@include media-breakpoint-down(xs) {
width: $award-emoji-width-xs;
}
2016-06-02 11:05:42 +05:30
}
2015-12-23 02:04:40 +05:30
2016-08-24 12:49:21 +05:30
.emoji-search {
2019-07-07 11:18:12 +05:30
background-image: url('data:image/png;base64,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');
2016-08-24 12:49:21 +05:30
background-repeat: no-repeat;
background-position: right 5px center;
background-size: 16px;
}
2016-06-02 11:05:42 +05:30
.emoji-menu-list {
margin-bottom: 0;
2017-08-17 22:00:37 +05:30
padding-left: 0;
list-style: none;
2016-06-02 11:05:42 +05:30
}
2015-12-23 02:04:40 +05:30
2016-06-02 11:05:42 +05:30
.emoji-menu-list-item {
2017-08-17 22:00:37 +05:30
float: left;
2016-06-02 11:05:42 +05:30
padding: 3px;
margin-left: 1px;
margin-right: 1px;
}
2015-12-23 02:04:40 +05:30
2016-06-02 11:05:42 +05:30
.emoji-menu-btn {
display: block;
cursor: pointer;
width: 30px;
height: 30px;
padding: 0;
background: none;
border: 0;
border-radius: $border-radius-base;
2019-07-07 11:18:12 +05:30
transition: transform 0.15s cubic-bezier(0.3, 0, 0.2, 2);
2016-06-02 11:05:42 +05:30
&:hover {
background-color: transparent;
outline: 0;
transform: scale(1.3);
}
2015-12-23 02:04:40 +05:30
2016-06-02 11:05:42 +05:30
&:focus,
&:active {
outline: 0;
2015-12-23 02:04:40 +05:30
}
2016-06-02 11:05:42 +05:30
.emoji-icon {
display: inline-block;
position: relative;
2016-06-02 11:05:42 +05:30
top: 3px;
}
2018-11-08 19:23:39 +05:30
> gl-emoji {
line-height: 1.5;
}
2016-06-02 11:05:42 +05:30
}
2015-12-23 02:04:40 +05:30
2016-06-02 11:05:42 +05:30
.award-menu-holder {
display: inline-block;
2017-08-17 22:00:37 +05:30
.tooltip {
white-space: nowrap;
}
2016-06-02 11:05:42 +05:30
}
2015-12-23 02:04:40 +05:30
2016-06-02 11:05:42 +05:30
.award-control {
2017-09-10 17:25:29 +05:30
margin: 4px 8px 4px 0;
2016-06-02 11:05:42 +05:30
outline: 0;
2017-08-17 22:00:37 +05:30
position: relative;
2017-09-10 17:25:29 +05:30
display: block;
float: left;
2017-08-17 22:00:37 +05:30
&.disabled {
cursor: default;
&:hover,
&:focus,
&:active {
2020-04-22 19:07:51 +05:30
background-color: $white;
2017-08-17 22:00:37 +05:30
border-color: $border-color;
box-shadow: none;
}
}
2016-06-02 11:05:42 +05:30
&.active,
2017-08-17 22:00:37 +05:30
&:hover,
&:active,
&.is-active {
2018-11-20 20:47:30 +05:30
background-color: $blue-50;
border-color: $blue-200;
2016-06-02 11:05:42 +05:30
box-shadow: none;
outline: 0;
2017-08-17 22:00:37 +05:30
.award-control-icon svg {
2019-09-04 21:01:54 +05:30
fill: $blue-500;
2017-08-17 22:00:37 +05:30
}
.award-control-icon-neutral {
opacity: 0;
}
.award-control-icon-positive {
opacity: 1;
transform: scale(1.15);
}
}
&.is-active {
.award-control-icon-positive {
opacity: 0;
transform: scale(1);
}
.award-control-icon-super-positive {
opacity: 1;
transform: scale(1);
}
}
&.user-authored {
cursor: default;
2018-03-17 18:26:18 +05:30
background-color: $gray-light;
2020-07-28 23:09:34 +05:30
border-color: $gray-100;
2018-03-17 18:26:18 +05:30
color: $gl-text-color-disabled;
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
gl-emoji {
opacity: 0.4;
filter: grayscale(100%);
2017-08-17 22:00:37 +05:30
}
2016-06-02 11:05:42 +05:30
}
2015-12-23 02:04:40 +05:30
&.btn {
&:focus {
outline: 0;
}
2017-08-17 22:00:37 +05:30
.award-control-icon {
margin: 0;
}
}
2016-06-02 11:05:42 +05:30
&.is-loading {
.award-control-icon-normal,
.emoji-icon {
display: none;
2015-12-23 02:04:40 +05:30
}
2016-06-02 11:05:42 +05:30
.award-control-icon-loading {
display: block;
}
}
.icon,
2017-08-17 22:00:37 +05:30
gl-emoji,
2016-06-02 11:05:42 +05:30
.award-control-icon {
2017-08-17 22:00:37 +05:30
vertical-align: middle;
margin-right: 0.15em;
font-size: 1.5em;
line-height: 1;
2016-06-02 11:05:42 +05:30
}
.award-control-icon-loading {
display: none;
}
.award-control-icon {
2017-08-17 22:00:37 +05:30
color: $border-gray-normal;
margin-top: 1px;
padding: 0 2px;
svg {
margin-bottom: 1px;
2018-11-20 20:47:30 +05:30
height: $default-icon-size;
width: $default-icon-size;
2017-08-17 22:00:37 +05:30
border-radius: 50%;
2019-09-04 21:01:54 +05:30
fill: $gray-700;
2017-08-17 22:00:37 +05:30
}
}
.award-control-icon-positive,
.award-control-icon-super-positive {
2017-09-10 17:25:29 +05:30
@include transition(opacity, transform);
2017-08-17 22:00:37 +05:30
position: absolute;
left: 10px;
bottom: 6px;
opacity: 0;
2019-07-07 11:18:12 +05:30
path {
fill: $award-emoji-positive-add-lines;
}
2017-08-17 22:00:37 +05:30
}
.award-control-text {
vertical-align: middle;
2015-12-23 02:04:40 +05:30
}
}