woocommerce/plugins/woocommerce-admin/client/activity-panel/style.scss

277 lines
5.0 KiB
SCSS
Raw Normal View History

.woocommerce-layout__activity-panel {
display: flex;
flex-direction: row;
align-items: center;
height: $header-height;
}
.woocommerce-layout__activity-panel-tabs {
width: 100%;
display: flex;
height: $header-height;
justify-content: flex-end;
.dashicon,
.gridicon {
width: 100%;
}
svg {
width: 24px;
height: 24px;
&.woocommerce-layout__activity-panel-tab-icon {
fill: none;
rect,
path {
stroke: currentColor;
}
}
.setup-progress-slice {
stroke: none;
}
.setup-progress-ring {
stroke-width: 2px;
}
}
.woocommerce-layout__homescreen-display-options {
svg.woocommerce-layout__activity-panel-tab-icon {
height: 14px;
}
}
.woocommerce-layout__homescreen-extension-tasklist-toggle {
min-width: 205px;
}
.components-icon-button {
display: initial;
text-indent: 0;
border-radius: 0;
&.has-text {
svg {
margin: 0;
}
}
}
.woocommerce-layout__activity-panel-tab {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
border: none;
outline: none;
cursor: pointer;
background-color: $studio-white;
width: 100%;
height: $header-height;
color: $gray-700;
white-space: nowrap;
&::before {
background-color: var(--wp-admin-theme-color);
bottom: 0;
content: "";
height: 0;
opacity: 0;
transition-property: height, opacity;
transition-duration: 300ms;
transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
left: 0;
position: absolute;
right: 0;
}
&.is-active,
&.is-opened {
color: $gray-900;
box-shadow: none;
&::before {
height: 3px;
opacity: 1;
}
}
&.has-unread::after,
&.woocommerce-layout__activity-panel-tab-wordpress-notices::after {
content: " ";
position: absolute;
padding: 1px;
background: $alert-red;
border: 2px solid $studio-white;
width: 4px;
height: 4px;
display: inline-block;
border-radius: 50%;
top: 8px;
left: 50%;
@include breakpoint( "782px-960px" ) {
right: 18px;
left: initial;
margin-left: 0;
}
@include breakpoint( ">960px" ) {
right: 28px;
left: initial;
margin-left: 0;
}
}
&:hover,
&.components-button:not(:disabled):not([aria-disabled="true"]):hover {
background-color: $gray-100;
box-shadow: none;
&.has-unread::after,
&.woocommerce-layout__activity-panel-tab-wordpress-notices::after {
border-color: $gray-200;
}
}
&:focus,
&.components-button:not(:disabled):not([aria-disabled="true"]):focus {
box-shadow: inset -1px -1px 0 $gray-700, inset 1px 1px 0 $gray-700;
}
// Hide display options if we're in single column.
@include breakpoint( "<782px" ) {
&.display-options {
display: none;
}
}
}
.woocommerce-layout__activity-panel-popover {
margin-top: 0;
z-index: 1001; // One higher than the other activity panels.
.components-menu-group {
padding: 12px;
}
}
}
.woocommerce-layout:has(.woocommerce-homescreen) {
.woocommerce-layout__activity-panel-tabs {
.woocommerce-layout__activity-panel-tab {
color: var(--wp-admin-theme-color) !important;
font-size: 13px;
font-style: normal;
font-weight: 400;
line-height: 20px; /* 153.846% */
&.has-icon {
padding: 6px 12px;
}
svg {
fill: #1e1e1e;
}
}
}
}
.woocommerce-layout__activity-panel-toggle-bubble.has-unread::after {
content: " ";
position: absolute;
padding: 1px;
background: $core-orange;
border: 2px solid $studio-white;
width: 4px;
height: 4px;
display: inline-block;
border-radius: 50%;
top: 6px;
right: 4px;
}
@keyframes tabSwitch {
0%,
100% {
transform: translateX(0);
}
50% {
transform: translateX(100px);
}
}
@mixin activity-panel-slide {
transition-property: transform box-shadow;
transition-duration: 300ms;
transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
@media screen and ( prefers-reduced-motion: reduce ) {
transition-duration: 1ms;
}
}
.woocommerce-layout__activity-panel-wrapper {
height: calc(100vh - #{$header-height + $adminbar-height-mobile});
background: $gray-100;
Show task and activity notifications in the Inbox panel (https://github.com/woocommerce/woocommerce-admin/pull/7017) * Added abbreviated panels This commit adds abbreviated panels * Added notifications getter * Variables renamed * Added unread-indicators refactor * Open panel by default * Refactor unread-indicators * Renamed a few files and added event recording * Modified "critical alert" presentation * Removed useless control * Renamed const * Added control to InboxPanel component * Multiple critical alerts handling * Fixed styles * Moved Inbox panel styles # Conflicts: # packages/experimental/src/inbox-note/style.scss * Added tests * Inbox panel width reduced * Small refactor for unread notifications * Renamed abbreviated card component * Added changelog # Conflicts: # readme.txt # Conflicts: # readme.txt * Renamed inbox-panel and the cards config file * Renamed unread notifications variable * Fixed abbreviated card box-shadow * Small refactor to unread-indicators file * Refactored method getInitialState * Added scroll to task list # Conflicts: # client/task-list/task-list.js * Small CSS changes to titles * Fixed changelog # Conflicts: # readme.txt # Conflicts: # readme.txt * Added param to filter `woocommerce_admin_onboarding_task_list` * Removed extensibility from `getAbbreviatedNotifications` * Fixed chunk name * Removed `critical` prop from `AbbreviatedCard` comopnent * Moved AbbreviatedCard component to `packages` This commit moves the component `AbbreviatedCard` to `packages` # Conflicts: # docs/components/_sidebar.md # packages/components/CHANGELOG.md # packages/components/src/index.js # Conflicts: # packages/components/CHANGELOG.md * Removed `critical alerts` tag from abbreviated card This commit removes the tag `critical alerts` from the `Things to do next` abbreviated card * Removed filter `woocommerce_admin_abbreviated_card_list` * Fixed icon * Added defaut value to `hasUnreadNotifications` * Fix mapSelect error when the dismissed tasks option isn't populated. * Added AbbreviatedNotificationsPanel * Added tests * Renamed `getUnreadNotes` to `isNotesPanelVisible` * Removed abbreviated-card.js * Added singular/plural copy handling * Renamed method `getInitialState` to `getInitialOpenState` * Fixed Link prop * Revert "Fixed Link prop" This reverts commit 74e6a7fae030766eb5d6be098caa15478f2cb2c6. * Fixed Link prop * Added task list visibility check * Fixed scroll after redirect # Conflicts: # client/task-list/index.js * Added propType to `AbbreviatedCard` * Fixed `Add-task doc example * Removed default values from ActivityPanel * Fixed multiple calls to a filter Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com> Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2021-06-09 13:56:45 +00:00
width: 430px;
@include breakpoint( "<782px" ) {
width: 100%;
}
transform: translateX(100%);
@include activity-panel-slide();
position: absolute;
right: 0;
top: 100%;
z-index: 1000;
overflow-x: hidden;
overflow-y: auto;
@include breakpoint( ">782px" ) {
height: calc(100vh - #{$header-height + $adminbar-height});
}
.has-woocommerce-navigation & {
height: calc(100vh - #{$header-height});
top: #{$header-height};
}
&.is-open {
transform: initial;
box-shadow: 0 12px 12px 0 rgba(85, 93, 102, 0.3);
}
&.is-switching {
animation: tabSwitch;
animation-duration: 300ms;
@media screen and ( prefers-reduced-motion: reduce ) {
animation: none;
}
}
.woocommerce-empty-content {
padding-left: $gap-large;
padding-right: $gap-large;
}
}
.woocommerce-layout__activity-panel-avatar-flag-overlay {
position: relative;
top: -$gap-small;
.woocommerce-flag {
position: relative;
top: 16px;
border: 2px solid $studio-white;
}
}
.woocommerce-layout__notice-list-hide {
display: none;
}