notifications.css 6.46 KB
.uo-notifications {
    margin: 15px 15px 10px 0;
    padding: 0;
    border: 1px solid #e4e4e4;
    color: #3c3c3c;
    border-radius: 8px;
    background: #fff;
}

.uo-notifications h3 {
    color: #3c3c3c;
    font-family: "Nunito", -apple-system, system-ui, blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue", arial, sans-serif;
}

.uo-notifications p {
    color: #3c3c3c;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    margin: 5px 0 1em 0;
}

.uo-notifications span.notifications-count {
    background: #f16666;
    border: 2px solid #fff;
    border-radius: 20px;
    color: #f16666;
    display: block;
    font-size: 10px;
    height: auto;
    left: 30px;
    line-height: 8px;
    padding: 0;
    position: absolute;
    text-align: center;
    top: 8px;
    width: 8px;
}

.uo-notifications h3.uo-notifications__title {
    position: relative;
    border-bottom: 1px solid #e4e4e4;
    margin: 0;
    font-size: 16px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    color: #3c3c3c;
    width: 100%;
    box-sizing: border-box;
}

.uo-notifications h3.uo-notifications__title .dashicons-bell {
    margin-right: 10px;
}

.uo-notifications .uo-notifications-list {
    padding: 0;
    margin: 0;
}

.uo-notifications .uo-notifications-list__item {
    list-style: none;
    padding: 20px;
    margin: 0;
    display: none;
}

.uo-notifications .uo-notifications-list__item.active {
    display: block;
}

.uo-notifications .uo-notifications-list__item-content {
    max-width: 90%;
}

.uo-notifications .uo-notifications-list__item-content p {
    color: #676b6f;
}

.uo-notifications .uo-settings-header__title.uo-notifications__title {
    font-size: 22px;
}

.uo-notifications .uo-notifications-list__item-title {
    margin: 0 0 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.uo-notifications .uo-notifications-list__item-title h3 {
    padding: 0;
    margin: 0;
    font-size: 18px;
}

.uo-notifications .uo-notifications-list__item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

body.post-type-uo-recipe .uo-notifications {
    margin: 20px 20px 0 0;
}

body.post-type-uo-recipe.uo-recipe_page_uncanny-automator-config .uo-notifications {
    margin: 0 25px 25px 25px;
}

body.uo-recipe_page_uncanny-automator-tools .uo-notifications {
    margin: 15px 0;
}

/* Buttons */

/* Dismiss button */

.uo-notifications .uo-notifications-action-dismiss {
    position: relative;
    color: #e94b35;
    text-decoration: none;
    border: 1px solid #e94b35;
    padding: 2px 8px;
}

.uo-notifications .uo-notifications-action-dismiss:hover {
    background: #e94b35;
    color: #fff;
}

/* Primary and Secondary buttons */

.uo-notifications .uo-notifications-list__item-actions__links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.uo-notifications .uo-notifications-action-dismiss,
.uo-notifications .uo-notifications-list__item-actions__links a,
.uo-notifications .uo-notifications-list__item-actions__controls .uo-notifications-controller-prev,
.uo-notifications .uo-notifications-list__item-actions__controls .uo-notifications-controller-next {
    background: #fff;
    
    border-radius: 10px;
    
    display: inline-block;
    
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
   
    box-shadow: 0 2px 5px 0 rgba(0,0,0,.1);

    transition: background-color 150ms ease-in-out, color 150ms ease-in-out, border-color 150ms ease-in-out;
}

.uo-notifications .uo-notifications-list__item-actions__links a {
    padding: 6px 15px;
}

.uo-notifications .uo-notifications-list__item-actions__links .uo-notifications--primary-button {
    color: #0790e8;
    border: 1px solid #0790e8;
}

.uo-notifications .uo-notifications-list__item-actions__links .uo-notifications--primary-button:hover {
    background: #0790e8;
    color: #fff;
}

.uo-notifications .uo-notifications-list__item-actions__links .uo-notifications--secondary-button {
    color: #3c3c3c;
    border: 1px solid #9e9e9e;
}

.uo-notifications .uo-notifications-list__item-actions__links .uo-notifications--secondary-button:hover {
    background: #3c3c3c;
    color: #fff;
    border-color: #3c3c3c;
}

/* Controller arrows */

.uo-notifications .uo-notifications-list__item-actions__controls .uo-notifications-controller-prev,
.uo-notifications .uo-notifications-list__item-actions__controls .uo-notifications-controller-next {
    color: #3c3c3c;
    border: 1px solid #9e9e9e;
    padding: 2px 8px;
}

.uo-notifications .uo-notifications-list__item-actions__controls .uo-notifications-controller-prev:hover,
.uo-notifications .uo-notifications-list__item-actions__controls .uo-notifications-controller-next:hover {
    background: #3c3c3c;
    color: #fff;
    cursor: pointer;
    border-color: #3c3c3c;
}

.uo-notifications .uo-notifications-list__item-actions__controls .uo-notifications-controller-prev[disabled=true],
.uo-notifications .uo-notifications-list__item-actions__controls .uo-notifications-controller-next[disabled=true] {
    background-color: #8a8a8a;
    color: #fff;
    border-color: #8a8a8a;
    cursor: auto;
}

/* Loading animation */

.uo-notifications-action-dismiss--loading,
.uo-notifications-action-dismiss--loading:hover {
    color: transparent !important;
    background: #f29386 !important;
    border-color: #f29386 !important;
    cursor: not-allowed;
	pointer-events: none;
}

.uo-notifications-action-dismiss--loading::before {
    content: '';

    width: 18px;
    height: 18px;

    opacity: 1;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    transform-origin: 0 0;

    animation: spin-centered .8s linear infinite;

    z-index: 2;

    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNNDU2LjQzMyAzNzEuNzJsLTI3Ljc5LTE2LjA0NWMtNy4xOTItNC4xNTItMTAuMDUyLTEzLjEzNi02LjQ4Ny0yMC42MzYgMjUuODItNTQuMzI4IDIzLjU2Ni0xMTguNjAyLTYuNzY4LTE3MS4wMy0zMC4yNjUtNTIuNTI5LTg0LjgwMi04Ni42MjEtMTQ0Ljc2LTkxLjQyNEMyNjIuMzUgNzEuOTIyIDI1NiA2NC45NTMgMjU2IDU2LjY0OVYyNC41NmMwLTkuMzEgNy45MTYtMTYuNjA5IDE3LjIwNC0xNS45NiA4MS43OTUgNS43MTcgMTU2LjQxMiA1MS45MDIgMTk3LjYxMSAxMjMuNDA4IDQxLjMwMSA3MS4zODUgNDMuOTkgMTU5LjA5NiA4LjA0MiAyMzIuNzkyLTQuMDgyIDguMzY5LTE0LjM2MSAxMS41NzUtMjIuNDI0IDYuOTJ6IiBjbGFzcz0iIj48L3BhdGg+PC9zdmc+);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}