| Server IP : 172.67.159.97 / Your IP : 216.73.217.154 Web Server : nginx/1.24.0 System : Linux wordpress-sites 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/rebeccaone.com/wp-content/plugins/envira-gallery/assets/scss/ |
Upload File : |
/* ==========================================================================
admin.css loads on all Envira Administration Screens:
- WP_List_Tables
- Add New
- Albums
- Settings
- NextGEN Import
Any styles that will be used by all of the above (or are useful to be included
for future use) should be added to this file:
- Header and Logo
- WordPress Red Button
========================================================================== */
/* ==========================================================================
Imports
========================================================================== */
@import "vars";
@import "mixins";
body.post-type-envira,
body.post-type-envira_album {
/**
* Quick Edit - Show Slug Option
*/
td.colspanchange {
/**
* Left Col
*/
fieldset.inline-edit-col-left {
div.inline-edit-col {
/* Slug */
label:nth-child(3) {
display: block;
}
}
}
}
// Remove WP 5.5 metabox arrows, bar.
#envira-gallery-settings .postbox-header,
#normal-sortables #envira-gallery .postbox-header {
display: none;
}
// Remove WP nags
#wpbody-content > div.error,
#wpbody-content .update-nag {
display: none;
}
// Remove left padding on the main content area, so items can be full width e.g. the header
#wpcontent {
padding-left: 0;
}
// adding some padding/margin around the WordPress update-nag
.update-nag {
margin-left: 20px;
margin-bottom: 20px;
display: none;
}
/**
* Subheading
*/
.subheading {
background-color: $white;
height: 45px;
margin-left: -20px;
@include mq(xs) {
height: auto;
padding-bottom: 20px;
}
h1 {
font-size: 20px;
font-weight: 400;
line-height: 45px;
margin: 0 0 0 20px;
padding-left: 20px;
}
}
/**
* Wrapper
*/
div.wrap {
margin: 0;
/**
* Page Title Action (i.e. Add New)
*/
a.page-title-action {
background-color: $primary_color;
border-color: $primary_color;
color: $white;
position: relative;
top: -37px;
left: 115px;
&:hover {
background: $primary_button_color_hover;
border-color: $primary_button_color_hover;
color: $white;
}
/* display: none; */ /* Trying To Prevent The "Shift" Upload Page Load Before JS can move the button */
/* margin-left: 10px; */ /* Change WordPress 4.7 */
}
/**
* Screen Title
* - h1 used from WordPress 4.3+
* - h2 used in WordPress 4.2-
* Updated To Account For WordPress 4.7+
*/
> h1,
> h2 {
margin: 0 0 0px 0;
background: $white;
font-weight: 600;
font-size: 20px;
width: 100%;
text-indent: 20px;
padding-bottom: 9px;
/**
* Page Title Action (i.e. Add New)
*/
a.page-title-action {
top: -3px;
left: auto;
&:hover {
background: $primary_button_color_hover;
border-color: $primary_button_color_hover;
color: $white;
}
/* display: none; */ /* Trying To Prevent The "Shift" Upload Page Load Before JS can move the button */
/* margin-left: 10px; */ /* Change WordPress 4.7 */
}
/**
* Subtitle (search results title)
*/
span.subtitle {
float: right;
}
}
/**
* Tab Panels
* - By default, they're hidden and the .envira-active class displays them
*/
.envira-tab {
display: none;
/**
* Active Tab
*/
&.envira-active {
display: block;
}
}
/**
* Code Snippets
*/
div.envira-code {
position: relative;
margin: 0 0 10px 0;
/**
* Clearfix
*/
&:after {
content: "";
display: table;
clear: both;
}
code {
display: block;
font-size: 11px;
padding: 5px 20px 5px 5px;
}
input[type=text],
textarea.code-textfield {
display: block;
font-size: 12px;
padding: 5px 20px 5px 5px;
border: 0;
width: 90%;
box-shadow: none;
background: #eaeaea;
}
input[type=text]:active,
input[type=text]:focus, {
border: 0;
}
/**
* Copy to Clipboard
*/
a.envira-clipboard {
position: absolute;
top: 5px;
right: 5px;
color: #23282d;
span {
display: block;
text-indent: -9999px;
}
}
}
}
/* ==========================================================================
Button Styles
========================================================================== */
.button {
@include borderRadius(2px);
padding: 0 16px 1px;
height: 33px;
text-decoration: none;
text-shadow: none;
font-weight: 600;
-webkit-box-shadow: none;
box-shadow: none;
/**
* Small
*/
&.button-small {
padding: 0 8px 1px;
line-height: 22px;
height: 24px;
}
/**
* Extra Large
* (.button-large is used on publish actions in WordPress, so we don't want to affect that)
*/
&.button-x-large {
padding: 0 32px 1px;
line-height: 48px;
height: 50px;
font-size: 18px;
text-transform: uppercase;
}
@include mq(xs) {
margin-top: 10px;
}
/**
* Screen Options
* - Don't set a height
*/
&.show-settings {
height: auto;
}
/**
* Green Button
* - Replaces WordPress' default primary button style
*/
&.button-primary {
background: $primary_button_color;
border-color: $primary_button_color;
-webkit-box-shadow: none;
box-shadow: none;
color: $white;
&:hover{
background: $primary_button_color_hover !important;
border-color: $primary_button_color_hover !important;
color: $white;
}
}
/**
* Red Button
*/
&.button-danger {
background: $danger_button_color;
border-color: $danger_button_color;
-webkit-box-shadow: none;
box-shadow: none;
color: $white;
&:hover{
background: $danger_button_color_hover;
border-color: $danger_button_color_hover;
color: $white;
}
}
&.button-nostyle {
background: none;
border: 0;
-webkit-box-shadow: none;
box-shadow: none;
color: $black;
display: inline;
font-weight: normal;
text-decoration: underline;
margin-left: 0 !important;
padding-left: 0;
margin-right: 0;
padding-right: 0;
&:hover{
background: none;
border: 0;
}
}
}
/* ==========================================================================
Thickbox (used for choosing a Default Gallery/Album)
========================================================================== */
div#TB_window {
div.wrap {
margin: 10px 20px 0 2px;
}
}
}
/* ==========================================================================
Language Specific
========================================================================== */
body.post-type-envira.locale-fr-fr,
body.post-type-envira_album.locale-fr-fr {
/**
* Wrapper
*/
div.wrap {
/**
* Page Title Action (i.e. Add New)
*/
a.page-title-action {
left: 220px;
}
}
}
/* ==========================================================================
Header
========================================================================== */
#envira-header-temp {
position: relative;
display: none;
}
#envira-top-notification {
position: relative;
background-color: $primary_color;
text-align: center;
color: white;
height: 40px;
vertical-align: middle;
p {
margin: 0;
padding: 0;
line-height: 40px;
font-size: 16px;
}
a {
color: white;
}
.envira-dismiss {
position: absolute;
top: 10px;
right: 10px;
}
}
#screen-options-link-wrap {
z-index: 9;
}
#envira-header {
background-color: #ebebeb;
background-image: url("../images/background.jpeg");
background-repeat: repeat;
height: $header-height;
display: flex;
justify-content: space-between;
align-items: center; /* <---- NEW */
@include mq(xxs) {
padding-top: 46px;
}
h1.envira-logo {
margin: 0;
margin-left: 20px;
img {
/**
* Image width and height (image is 2x so this ensures it displays correctly)
*/
width: 339px;
/**
* Responsive - ensure the logo doesn't exceed the header dimensions
*/
@include mq(xs) {
width: 90%;
}
}
a.envira-logo-link{
outline: none;
border: none;
box-shadow: none;
&:focus {
outline: none;
border: none;
box-shadow: none;
}
&:active {
outline: none;
border: none;
box-shadow: none;
}
}
}
.envira-right {
padding-right: 20px;
}
.envira-notifications-inbox {
position: relative;
&[data-count]:after {
background: $red;
border-radius: 50%;
bottom: 100%;
color: #fff;
content: attr(data-count);
display: block;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 12px;
font-weight: 700;
height: 16px;
left: 100%;
line-height: 18px;
min-width: 16px;
position: absolute;
text-align: center;
transform: translate(-40%, 30%);
}
}
}
#wpbody {
@include mq(xxs) {
padding-top: 0;
}
}
body.post-type-envira_album {
div.wrap {
/**
* Page Title Action (i.e. Add New)
*/
a.page-title-action {
left: 180px !important;
}
> h1,
> h2 {
a.page-title-action {
top: -3px !important;
left: auto !important;
}
}
}
}
body.post-php.post-type-envira_album {
div.wrap {
/**
* Page Title Action (i.e. Add New)
*/
a.page-title-action {
left: 200px !important;
}
> h1,
> h2 {
a.page-title-action {
top: -3px !important;
left: auto !important;
}
}
}
}
body.post-php.post-type-envira {
div.wrap {
/**
* Page Title Action (i.e. Add New)
*/
a.page-title-action {
left: 140px !important;
}
> h1,
> h2 {
a.page-title-action {
top: -3px !important;
left: auto !important;
}
}
}
}
/* ==========================================================================
Table, Add, Edit Screens
========================================================================== */
body.post-type-envira.edit-php,
body.post-type-envira.post-new-php,
body.post-type-envira.post-php,
body.post-type-envira_album.edit-php,
body.post-type-envira_album.post-new-php,
body.post-type-envira_album.post-php {
div.wrap {
/**
* Remove the margin on the wrapper
*/
margin: 0;
/**
* Add margin to notices
*/
> div.error,
> div.notice,
> div.updated {
margin-left: 20px;
margin-right: 20px;
}
}
}
/* ==========================================================================
Notifications Sidebar
========================================================================== */
.envira-notifications-close,
.envira-notifications-inbox {
&:hover {
cursor: pointer;
}
}
.envira-notifications-drawer {
box-sizing: border-box;
background: $white;
bottom: 0;
position: fixed;
right: -400px;
top: 32px;
transition: right 300ms ease 0s,visibility 0s ease 400ms;
visibility: hidden;
width: 400px;
z-index: 1100;
border: 1px solid $grey_dark_2;
.envira-notifications-open & {
right: 0;
transition: right 300ms ease 0s, visibility 0s ease 0ms;
visibility: visible;
}
}
.envira-notifications-overlay {
background-color: rgba(0, 0, 0, 0.3);
bottom: 0;
display: none;
left: 0;
opacity: .5;
position: fixed;
right: 0;
top: 46px;
transition: .5s;
z-index: 1052;
.folded & {
left: 36px;
}
.envira-notifications-open & {
display: block;
}
@media screen and (min-width: 783px) {
left: 36px;
.admin-bar & {
top: 32px;
}
}
@media screen and (min-width: 961px) {
left: 160px;
.folded & {
left: 36px;
}
}
}
.envira-notifications-header {
background: #EEEEEE;
border-bottom: 1px solid $grey_dark_2;
padding: 18px 40px 18px 20px;
.envira-notifications-close {
position: absolute;
right: 18px;
top: 22px;
path {
fill: #3C434A;
}
}
h3 {
color: #3C434A;
display: inline-block;
font-size: 14px;
font-weight: 700;
line-height: 21px;
margin: 0 10px 0 0;
}
}
.envira-notifications-list {
height: calc(100% - 130px);
overflow: auto;
ul {
margin: 0;
}
li {
border-bottom: 1px solid $grey_dark_2;
display: flex;
margin: 0;
padding: 20px;
font-size: 14px;
color: #3C434A99;
&:first-child {
border-top: none;
}
h4 {
color: hsl(210, 10%, 26%);
;
font-size: 14px;
font-weight: 600;
line-height: 21px;
margin: 0;
}
}
p {
color: #3C434A99;
font-size: 14px;
margin: 8px 0;
margin-bottom: 20px;
&.envira-start {
font-size: 12px;
}
}
.envira-button {
padding: 5px;
border-radius: 4px;
text-decoration: none;
font-size: 12px;
&.envira-button-primary {
background-color: #37993B;
color: $white;
}
&.envira-button-secondary {
border: 1px solid $grey_dark_2;
}
}
.envira-notification-actions{
display: flex;
justify-content: space-between;
align-items: center;
}
}
.envira-button-text {
font-size: 12px;
color: #3C434AB2;
}
.envira-notification-actions {
.envira-button {
margin-right: 10px;
}
}
.envira-notifications-footer {
border-top: 1px solid $grey_dark_2;
padding: 24px 27px;
text-align: right;
}
#envira-dismissed-title,
#envira-notifications-show-active,
.envira-notifications-dismissed {
display: none;
}
.show-dismissed {
#envira-notifications-show-dismissed,
.envira-notifications-active,
#envira-active-title {
display: none;
}
#envira-notifications-show-active,
#envira-dismissed-title {
display: inline-block;
}
.envira-notifications-dismissed {
display: block;
}
}
.envira-notifications-dismissed {
.envira-notification-dismiss {
display: none;
}
}
.envira-notification-icon {
margin-right: 10px;
}
/* ==========================================================================
Taxonomy Screens
========================================================================== */
body.post-type-envira.edit-tags-php,
body.post-type-envira.taxonomy-envira-tag {
div.wrap {
margin: 0;
/**
* Add margin to notices
*/
> div.error,
> div.notice,
> div.updated {
margin-left: 20px;
margin-right: 20px;
}
form.search-form,
form#edittag,
#col-container {
/**
* Re-establish the left and right margins, so there's spacing between the Admin Menu
* and the content
*/
margin: 0 20px;
}
/**
* Reduce our global custom button sizes so they align with inputs
*/
.button {
height: 28px;
line-height: 26px;
}
}
}
/* ==========================================================================
Third Party Screens
========================================================================== */
body.post-type-envira {
div.wrap {
/**
* Re-establish the left and right margins, so there's spacing between the Admin Menu
* and the content for any third party plugins which add sections / pages within Envira
*/
margin: 0 20px;
}
}
/* ==========================================================================
Media Bar
========================================================================== */
body.post-type-envira {
/* div.error {
position: absolute;
right: 300px;
top: 40px;
left: 0;
} */
}
/* ==========================================================================
Inline Alerts
========================================================================== */
body.post-type-envira {
form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table {
tr.inline-error-row {
padding: 0;
td {
padding-top: 10px;
padding-bottom: 10px;
padding-left: 0;
padding-right: 0;
}
div.inline-error {
p {
padding: 10px;
}
border: 1px solid red;
}
}
}
}
/* ==========================================================================
Responsive
========================================================================== */
@media screen and (max-width: 640px) {
body.post-type-envira,
body.post-type-envira_album {
/**
* Wrapper
*/
div.wrap {
/**
* Screen Title
*/
h1 {
/**
* Allow space for the "Search results for..." text to display, when searching
*/
padding-bottom: 9px;
/**
* Subtitle (search results title)
*/
span.subtitle {
clear: both;
width: 100%;
padding: 0;
}
}
/**
* Page Title Action (i.e. Add New)
*/
a.page-title-action {
top: -48px;
padding: 0 10px !important;
}
}
}
}
@media screen and (max-width: 340px) {
body.post-type-envira,
body.post-type-envira_album {
/**
* Wrapper
*/
div.wrap {
/**
* Screen Title
*/
h1 {
text-align: center;
/**
* Page Title Action (i.e. Add New)
*/
a.page-title-action {
display: block;
text-align: center;
margin: 10px 0 0 0;
}
}
}
}
}
/* ==========================================================================
Gallery List
========================================================================== */
@media screen and (max-width: 782px) {
body.post-type-envira .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
display: table-cell;
}
body.post-type-envira,
body.post-type-envira_album {
/**
* Wrapper
*/
div.wrap {
/**
* Page Title Action (i.e. Add New)
*/
a.page-title-action {
top: -37px;
padding: 0 10px !important;
}
}
}
}
/* ==========================================================================
Whitelabeled
========================================================================== */
body.envira-whitelabel {
#envira-header {
height: 40px;
}
}
/* ==========================================================================
RTL
========================================================================== */
body.rtl.post-type-envira div.wrap a.page-title-action {
left: -235px;
}
body.rtl ul#envira-tabs-nav {
float: right;
}
body.rtl form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs,
body.rtl form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs {
margin: 0 160px 0 0;
}
body.rtl form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images nav ul.envira-right-options,
body.rtl form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images nav ul.envira-right-options {
left: 20px;
right: inherit;
li.envira-select {
text-align: left;
}
}
/* ==========================================================================
Default Addon Adjustment
========================================================================== */
body.post-type-envira.envira-default-success,
body.post-type-envira_album.envira-default-success {
/**
* Wrapper
*/
div.wrap {
a.page-title-action {
top: -108px;
}
}
#wpbody-content {
#message {
margin-top: 20px;
}
}
}
/* ==========================================================================
Debug Screen
========================================================================== */
#envira-settings-debug #debug-textarea {
height: 500px;
width: 80%;
}
/* ==========================================================================
Welcome / Support Screen
========================================================================== */
ul#adminmenu {
li.menu-icon-envira {
ul.wp-submenu {
span {
margin-left: 0;
&.envira-addons {
color: $primary_color;
}
}
// li:nth-last-child(-n+4) {
// display: none;
// }
// li:last-child {
// display: block;
// }
}
}
}
body.envira-welcome-enabled {
ul#adminmenu {
li.menu-icon-envira {
ul.wp-submenu {
span {
margin-left: 0;
&.envira-addons {
color: $primary_color;
}
}
li:nth-last-child(-n+4) {
// display: none;
}
li:last-child {
display: block;
}
}
}
}
}
/* ==========================================================================
Modal General
========================================================================== */
.envira-addons .hidden {
display: none;
}
/* ==========================================================================
Widgets
========================================================================== */
.envira_widget_random_number_of_images,
.envira_widget_number_of_images {
max-width: 50px;
display: inline-block;
}
.js .importfile {
width: 0.1px;
height: 0.1px;
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;
}
.importfile + label {
max-width: 80%;
font-size: 1rem;
/* 20px */
font-weight: 700;
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
display: inline-block;
overflow: hidden;
padding: 5px 10px 0 0;
/* 10px 20px */
}
.no-js .importfile + label {
display: none;
}
.importfile:focus + label,
.importfile.has-focus + label {
outline: 1px dotted #000;
outline: -webkit-focus-ring-color auto 5px;
}
.importfile + label * {
/* pointer-events: none; */
/* in case of FastClick lib use */
}
.importfile + label svg {
width: 1em;
height: 1em;
vertical-align: middle;
fill: currentColor;
margin-top: -0.25em;
/* 4px */
margin-right: 0.25em;
/* 4px */
}
/* style 3 */
.importfile + label {
color: $primary_color;
}
.importfile:focus + label,
.importfile.has-focus + label,
.importfile + label:hover {
color: $primary_color;
}
/* ==========================================================================
WP 5.8+ Widget Editor
========================================================================== */
#envira-logo {
max-width: 100%;
}
/* ==========================================================================
Envira Permissions Modal - uses a11y-dialog
========================================================================== */
/**
* 1. Make the dialog container, and its child overlay spread across
* the entire window.
*/
#envira-gallery-settings .dialog-container,
#envira-gallery-settings .dialog-overlay {
position: fixed; /* 1 */
top: 0; /* 1 */
right: 0; /* 1 */
bottom: 0; /* 1 */
left: 0; /* 1 */
}
/**
* 1. Make sure the dialog container and all its descendants sits on
* top of the rest of the page.
* 2. Make the dialog container a flex container to easily center the
* dialog.
*/
#envira-gallery-settings .dialog-container {
z-index: 2; /* 1 */
display: flex; /* 2 */
}
/**
* 1. Make sure the dialog container and all its descendants are not
* visible and not focusable when it is hidden.
*/
#envira-gallery-settings .dialog-container[aria-hidden='true'] {
display: none; /* 1 */
}
/**
* 1. Make the overlay look like an overlay.
*/
#envira-gallery-settings .dialog-overlay {
background-color: rgb(43 46 56 / 0.9); /* 1 */
animation: fade-in 200ms both;
opacity: 0.5;
}
/**
* 1. Vertically and horizontally center the dialog in the page.
* 2. Make sure the dialog sits on top of the overlay.
* 3. Make sure the dialog has an opaque background.
*/
#envira-gallery-settings .dialog-content {
margin: auto; /* 1 */
z-index: 2; /* 2 */
position: relative; /* 2 */
background-color: white; /* 3 */
animation: fade-in 400ms 200ms both, slide-up 400ms 200ms both;
padding: 2em;
max-width: 90%;
width: 600px;
border-radius: 5px;
border-top: $primary_color 5px solid;
font-size: 1rem;
text-align: center;
}
#envira-gallery-settings .dialog-content p{
font-size: 1.2rem;
margin: 0 0 16px;
}
#envira-gallery-settings .dialog-content h3{
font-size: 1.4rem;
}
#envira-gallery-settings .dialog-content .envira-dialog-btn.primary{
background-color: $primary_color;
color: #fff;
border: 0;
border-radius: 5px;
cursor:pointer;
font-weight: 600;
line-height: 20px;
outline: none;
padding: 11px 17px;
}
#envira-gallery-settings .dialog-content .envira-dialog-btn{
background-color: #777777;
color: #fff;
border: 0;
border-radius: 5px;
cursor:pointer;
margin-left:10px;
font-weight: 600;
line-height: 20px;
outline: none;
padding: 11px 17px;
}
/** For the blur effect on licensing modal upgrade view */
.envira-admin-content {
position: relative;
.envira-admin-modal *, .envira-admin-modal *::before, .envira-admin-modal *::after {
/* -webkit-box-sizing: border-box; */
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.envira-admin-modal {
text-align: center;
width: 730px;
box-shadow: 0 0 60px 30px rgba(0, 0, 0, 0.15);
background-color: $white;
border-radius: 6px;
position: absolute;
top: 95px;
left: 50%;
margin: 0 auto 0 -365px;
z-index: 9999;
overflow: hidden;
h2 {
font-size: 20px;
margin: 0 0 16px 0;
padding: 0;
}
p {
font-size: 16px;
line-height: 24px;
color: #777777;
margin: 0 0 30px 0;
padding: 0;
}
ul {
float: left;
width: 50%;
margin: 0;
padding: 0 0 0 30px;
text-align: left;
}
li {
color: #777777;
font-size: 16px;
line-height: 28px;
padding: 6px 0;
display: flex;
svg {
padding-right: 10px;
}
}
}
.envira-admin-modal-content {
border-radius: 3px 3px 0 0;
padding: 40px;
}
.envira-admin-model-lists {
width: 100%;
}
.envira-admin-modal-button {
border-radius: 0 0 3px 3px;
text-align: center;
margin: 30px 0;
}
.envira-admin-modal-bonus {
position: relative;
padding: 30px;
background: #f5f5f5;
text-align: center;
p {
font-size: 14px;
margin: 0px;
}
svg {
position: absolute;
border-radius: 50%;
top: -14px;
background-color: $white;
}
}
.envira-admin-modal-text-link {
display: block;
margin: 15px 0;
font-size: 14px;
color: #3C434AB2;
}
.button.envira-button {
font-size: 21px;
height: 50px;
line-height: 48px;
background-color: $primary_color;
color: $white;
border-color: $primary_color;
&:hover {
background-color: $primary_button_color_hover;
border-color: $primary_button_color_hover;
}
}
.wrap{
webkit-filter: blur(3px);
-moz-filter: blur(3px);
-ms-filter: blur(3px);
-o-filter: blur(3px);
filter: blur(3px);
&:hover > * {
pointer-events: none !important;
}
}
.envira-clear,
.envira-clear::before,
.envira-clear::after {
content: " ";
display: table;
}
.envira-green {
color: #37993b;
}
}
.wp-core-ui .envira-primary-button:focus, .wp-core-ui .envira-primary-button:hover {
background: #37993b;
border-color: #95dc5e;
color: #fff;
box-shadow: none;
}
/** Toggle **/
.envira-toggle {
cursor: pointer;
display: inline-block;
}
.envira-switch {
display: inline-block;
background: #ccc;
border-radius: 18px;
width: 32px;
height: 18px;
position: relative;
vertical-align: middle;
transition: background 0.25s;
&:before,
&:after {
content: "";
}
&:before {
display: block;
background: linear-gradient(to bottom, #fff 0%,#eee 100%);
border-radius: 50%;
box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
width: 16px;
height: 16px;
position: absolute;
top: 1px;
left: 1px;
transition: left 0.25s;
}
.envira-toggle:hover &:before {
background: linear-gradient(to bottom, #fff 0%,#fff 100%);
box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
}
}
input[type='checkbox']:checked + .envira-switch {
background: #37993B;
&:before {
left: 15px;
}
}