Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Category Slidedown Responsive Styling #653

Merged
merged 1 commit into from
Jun 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions express_webpack/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
</script>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OneSignal WebSDK Sandbox</title>
<link rel="shortcut icon" href="#">
</head>
Expand Down
214 changes: 107 additions & 107 deletions src/stylesheets/slidedown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,113 +69,6 @@ $border-radius: 0.5em;
}
}
}

.tagging-container {
display: flex;
margin: 2em 0;
}

.tagging-container-col {
flex: 1;
padding-left: 1em;
}

.onesignal-category-label {
display: block;
position: relative;
padding-left: 2.5em;
margin-bottom: 1.5em;
color: #051B2C;
font-size: 1em;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
height: 1.5em;
line-height: 1.5em;
float:left;
}

.onesignal-category-label input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}

.onesignal-category-label-text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: block;
max-width: 10em;
}

.onesignal-checkmark {
position: absolute;
top: 0;
left: 0;
height: 1.5em;
width: 1.5em;
border-radius: .25em;
cursor: pointer;
background-color: #ebedef;
}

/* On mouse-over, add a grey background color */
.onesignal-category-label:hover input ~ .onesignal-checkmark {
background-color: #dde1e4;
}

/* When the checkbox is checked, add a blue background */
.onesignal-category-label input:checked ~ .onesignal-checkmark {
transition: ease 75ms;
background-color: #4285f4;
}

/* Create the checkmark/indicator (hidden when not checked) */
.onesignal-checkmark:after {
content: "";
position: absolute;
display: none;
}

/* Show the checkmark when checked */
.onesignal-category-label input:checked ~ .onesignal-checkmark:after {
display: block;
}

/* Style the checkmark/indicator */
.onesignal-category-label .onesignal-checkmark:after {
left: 0.5em;
top: 0.25em;
width: 0.33em;
height: 0.66em;
border: solid white;
border-width: 0 3px 3px 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}

.onesignal-loading-container {
display: flex;
margin-top: 1em;
margin-bottom: 2em;
flex-direction: column;
align-items: center;

& .onesignal-loading-message {
flex: 1;
color: #CED3D8;
margin-top: .8125em;
}
}

.saving-loading-indicator-holder {
display: flex;
}
}

#blocked-slidedown {
Expand Down Expand Up @@ -216,6 +109,113 @@ $border-radius: 0.5em;
}
}

.tagging-container {
display: flex;
margin: 2em 0;
}

.tagging-container-col {
flex: 1;
padding-left: 1em;
}

.onesignal-category-label {
display: block;
position: relative;
padding-left: 2.5em;
margin-bottom: 1.5em;
color: #051B2C;
font-size: 1em;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
height: 1.5em;
line-height: 1.5em;
float:left;
}

.onesignal-category-label input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}

.onesignal-category-label-text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: block;
max-width: 8em;
}

.onesignal-checkmark {
position: absolute;
top: 0;
left: 0;
height: 1.5em;
width: 1.5em;
border-radius: .25em;
cursor: pointer;
background-color: #ebedef;
}

/* On mouse-over, add a grey background color */
.onesignal-category-label:hover input ~ .onesignal-checkmark {
background-color: #dde1e4;
}

/* When the checkbox is checked, add a blue background */
.onesignal-category-label input:checked ~ .onesignal-checkmark {
transition: ease 75ms;
background-color: #4285f4;
}

/* Create the checkmark/indicator (hidden when not checked) */
.onesignal-checkmark:after {
content: "";
position: absolute;
display: none;
}

/* Show the checkmark when checked */
.onesignal-category-label input:checked ~ .onesignal-checkmark:after {
display: block;
}

/* Style the checkmark/indicator */
.onesignal-category-label .onesignal-checkmark:after {
left: 0.5em;
top: 0.25em;
width: 0.33em;
height: 0.66em;
border: solid white;
border-width: 0 3px 3px 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}

.onesignal-loading-container {
display: flex;
margin-top: 1em;
margin-bottom: 2em;
flex-direction: column;
align-items: center;

& .onesignal-loading-message {
flex: 1;
color: #CED3D8;
margin-top: .8125em;
}
}

.saving-loading-indicator-holder {
display: flex;
}

#onesignal-slidedown-dialog {
box-sizing: border-box;
max-width: 100%;
Expand Down