summaryrefslogtreecommitdiffstats
path: root/webapp/sass/utils
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-14 08:50:46 -0400
committerChristopher Speller <crspeller@gmail.com>2016-03-16 18:02:55 -0400
commit12896bd23eeba79884245c1c29fdc568cf21a7fa (patch)
tree4e7f83d3e2564b9b89d669e9f7905ff11768b11a /webapp/sass/utils
parent29fe6a3d13c9c7aa490fffebbe5d1b5fdf1e3090 (diff)
downloadchat-12896bd23eeba79884245c1c29fdc568cf21a7fa.tar.gz
chat-12896bd23eeba79884245c1c29fdc568cf21a7fa.tar.bz2
chat-12896bd23eeba79884245c1c29fdc568cf21a7fa.zip
Converting to Webpack. Stage 1.
Diffstat (limited to 'webapp/sass/utils')
-rw-r--r--webapp/sass/utils/_animations.scss19
-rw-r--r--webapp/sass/utils/_functions.scss9
-rw-r--r--webapp/sass/utils/_mixins.scss8
-rw-r--r--webapp/sass/utils/_module.scss5
-rw-r--r--webapp/sass/utils/_variables.scss13
5 files changed, 54 insertions, 0 deletions
diff --git a/webapp/sass/utils/_animations.scss b/webapp/sass/utils/_animations.scss
new file mode 100644
index 000000000..767e30847
--- /dev/null
+++ b/webapp/sass/utils/_animations.scss
@@ -0,0 +1,19 @@
+@charset 'UTF-8';
+
+@-webkit-keyframes spin2 {
+ from {
+ -webkit-transform: rotate(0deg);
+ }
+ to {
+ -webkit-transform: rotate(360deg);
+ }
+}
+
+@keyframes spin {
+ from {
+ transform: scale(1) rotate(0deg);
+ }
+ to {
+ transform: scale(1) rotate(360deg);
+ }
+}
diff --git a/webapp/sass/utils/_functions.scss b/webapp/sass/utils/_functions.scss
new file mode 100644
index 000000000..9013920fa
--- /dev/null
+++ b/webapp/sass/utils/_functions.scss
@@ -0,0 +1,9 @@
+@charset "UTF-8";
+
+@function em($pixels, $context: 14px) {
+ @return #{$pixels/$context}em
+}
+
+%popover-box-shadow {
+ @include box-shadow(rgba(black, .175) 1px -3px 12px);
+} \ No newline at end of file
diff --git a/webapp/sass/utils/_mixins.scss b/webapp/sass/utils/_mixins.scss
new file mode 100644
index 000000000..28723e1a5
--- /dev/null
+++ b/webapp/sass/utils/_mixins.scss
@@ -0,0 +1,8 @@
+@charset 'UTF-8';
+
+@mixin file-icon($path) {
+ background: #fff url($path);
+ background-position: center;
+ background-repeat: no-repeat;
+ @include background-size(60px auto);
+}
diff --git a/webapp/sass/utils/_module.scss b/webapp/sass/utils/_module.scss
new file mode 100644
index 000000000..e7f0c0c46
--- /dev/null
+++ b/webapp/sass/utils/_module.scss
@@ -0,0 +1,5 @@
+// Only for combining all the files in this folder
+@import 'variables';
+@import 'animations';
+@import 'functions';
+@import 'mixins';
diff --git a/webapp/sass/utils/_variables.scss b/webapp/sass/utils/_variables.scss
new file mode 100644
index 000000000..065c37a17
--- /dev/null
+++ b/webapp/sass/utils/_variables.scss
@@ -0,0 +1,13 @@
+@charset 'UTF-8';
+
+// Color Variables
+$color--primary: rgb(35, 137, 215);
+$color--primary--hover: darken($color--primary, 10%);
+$bg--gray: rgb(245, 245, 245);
+$bg--white: rgb(255, 255, 255);
+
+// Page Variables
+$border-gray: 1px solid #ddd;
+
+// Random variables
+$border-rad: 1px;