summaryrefslogtreecommitdiffstats
path: root/webapp/sass/utils
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/sass/utils')
-rw-r--r--webapp/sass/utils/_mixins.scss72
-rw-r--r--webapp/sass/utils/_variables.scss10
2 files changed, 81 insertions, 1 deletions
diff --git a/webapp/sass/utils/_mixins.scss b/webapp/sass/utils/_mixins.scss
index 6e4488fca..e252086ae 100644
--- a/webapp/sass/utils/_mixins.scss
+++ b/webapp/sass/utils/_mixins.scss
@@ -26,4 +26,74 @@
@mixin cursor($value) {
cursor: -webkit-$value;
cursor: zoom-$value;
-} \ No newline at end of file
+}
+
+// Webrtc button
+@mixin webrtc-button {
+ .webrtc__button {
+ @include border-radius(50px);
+ display: block;
+ height: 32px;
+ width: 32px;
+
+ &.on,
+ &:hover {
+ background: darken($button--ready, 5%);
+ }
+
+ &:hover circle {
+ fill: darken($button--ready, 5%);
+ }
+
+ circle {
+ fill: $button--ready;
+
+ &.offline {
+ fill: $video-circle-offline;
+ }
+ }
+
+ path {
+ .on {
+ display: none;
+ }
+
+ .off {
+ display: block;
+ }
+ }
+
+ &.on {
+ path {
+ .on {
+ display: block;
+ }
+
+ .off {
+ display: none;
+ }
+ }
+
+ circle {
+ fill-opacity: 0;
+ }
+ }
+ }
+
+ a {
+ &[disabled] {
+ .webrtc__button {
+ &:hover {
+ background: none;
+ box-shadow: none;
+ }
+
+ &:hover {
+ circle {
+ fill: $video-circle-offline;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/webapp/sass/utils/_variables.scss b/webapp/sass/utils/_variables.scss
index 53004520e..ffbcc847e 100644
--- a/webapp/sass/utils/_variables.scss
+++ b/webapp/sass/utils/_variables.scss
@@ -17,3 +17,13 @@ $border-gray: 1px solid #ddd;
// Random variables
$border-rad: 1px;
+
+// Webrtc Variables
+$button--ready: #00A6EE;
+$video-circle-btn: #2f81b7;
+$video-circle-hover: #56C303;
+$video-circle-offline: #aaa;
+$button--cancel: #E41020;
+$button--pickup: #73B001;
+$connecting: $white;
+$webrtc-notification-bg: rgba(112, 128, 144, .8); \ No newline at end of file