aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionStackingView.scss
diff options
context:
space:
mode:
authorkimdahey <claire_kim1@brown.edu>2019-07-30 13:29:27 -0400
committerkimdahey <claire_kim1@brown.edu>2019-07-30 13:29:27 -0400
commitf03f94accabc2336d1c143fcb80bb0c3f5b70d99 (patch)
tree109c492634df6bcbc11bf61bc703552c0e4f4130 /src/client/views/collections/CollectionStackingView.scss
parentca91fe9e379fe3e2d48a0eb055415f008245ed31 (diff)
added toggle button
Diffstat (limited to 'src/client/views/collections/CollectionStackingView.scss')
-rw-r--r--src/client/views/collections/CollectionStackingView.scss53
1 files changed, 51 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionStackingView.scss b/src/client/views/collections/CollectionStackingView.scss
index 0cb01dc9d..3fcec265f 100644
--- a/src/client/views/collections/CollectionStackingView.scss
+++ b/src/client/views/collections/CollectionStackingView.scss
@@ -79,8 +79,8 @@
.collectionStackingView-sectionHeader {
text-align: center;
- margin-left: 5px;
- margin-right: 5px;
+ margin-left: 2px;
+ margin-right: 2px;
margin-top: 10px;
overflow: hidden;
@@ -102,6 +102,7 @@
font-size: 75%;
transition: transform 0.2s;
position: relative;
+ width: 98%;
.editableView-container-editing-oneLine,
.editableView-container-editing {
@@ -184,4 +185,52 @@
letter-spacing: 2px;
height: fit-content;
}
+
+ .rc-switch {
+ position: absolute;
+ display: inline-block;
+ bottom: 15px;
+ right: 15px;
+ width: 125px;
+ height: 54px;
+ border-radius: 40px 40px;
+ }
+
+ .rc-switch:after {
+ position: absolute;
+ width: 36px;
+ height: 36px;
+ left: 7px;
+ top: 9px;
+ border-radius: 50% 50%;
+ background-color: #fff;
+ content: " ";
+ cursor: pointer;
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
+ -webkit-transform: scale(1);
+ transform: scale(1);
+ transition: left 0.3s cubic-bezier(0.35, 0, 0.25, 1);
+ -webkit-animation-timing-function: cubic-bezier(0.35, 0, 0.25, 1);
+ animation-timing-function: cubic-bezier(0.35, 0, 0.25, 1);
+ -webkit-animation-duration: 0.3s;
+ animation-duration: 0.3s;
+ }
+
+ .rc-switch-checked:after {
+ left: 80px;
+ }
+
+ .rc-switch-inner {
+ color: #fff;
+ font-size: 22px;
+ position: absolute;
+ left: 50px;
+ top: 14px;
+ }
+
+ .rc-switch-checked .rc-switch-inner {
+ left: 17px;
+ }
+
+
} \ No newline at end of file