aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-01-17 10:34:22 +0400
committerLibravatar GitHub <noreply@github.com>2018-01-17 10:34:22 +0400
commit81b49fba430959ec4e0946f905dc182d2733831c (patch)
treea1979dafda41ac804986ef57a68912a868cb5ac7 /src/styles
parentRemove idle timer dependency (diff)
parentMerge branch 'develop' of github.com:meetfranz/franz into develop (diff)
downloadferdium-app-81b49fba430959ec4e0946f905dc182d2733831c.tar.gz
ferdium-app-81b49fba430959ec4e0946f905dc182d2733831c.tar.zst
ferdium-app-81b49fba430959ec4e0946f905dc182d2733831c.zip
Merge branch 'develop' into feature/remove-miner
Diffstat (limited to 'src/styles')
-rw-r--r--src/styles/button.scss12
-rw-r--r--src/styles/image-upload.scss91
-rw-r--r--src/styles/main.scss1
-rw-r--r--src/styles/searchInput.scss16
-rw-r--r--src/styles/settings.scss49
-rw-r--r--src/styles/welcome.scss7
6 files changed, 143 insertions, 33 deletions
diff --git a/src/styles/button.scss b/src/styles/button.scss
index 75d2cb1d4..8d2adbbcc 100644
--- a/src/styles/button.scss
+++ b/src/styles/button.scss
@@ -48,6 +48,18 @@
48 } 48 }
49 } 49 }
50 50
51 &.franz-form__button--warning {
52 background: $theme-brand-warning;
53
54 &:hover {
55 background: darken($theme-brand-warning, 5%);
56 }
57
58 &:active {
59 background: lighten($theme-brand-warning, 5%);
60 }
61 }
62
51 &.franz-form__button--inverted { 63 &.franz-form__button--inverted {
52 background: none; 64 background: none;
53 padding: 10px 20px; 65 padding: 10px 20px;
diff --git a/src/styles/image-upload.scss b/src/styles/image-upload.scss
new file mode 100644
index 000000000..06176a7af
--- /dev/null
+++ b/src/styles/image-upload.scss
@@ -0,0 +1,91 @@
1.image-upload {
2 position: absolute;
3 width: 140px;
4 height: 140px;
5 border: 1px solid $theme-gray-lighter;
6 border-radius: $theme-border-radius-small;
7 background: $theme-gray-lightest;
8 overflow: hidden;
9 margin-top: 5px;
10
11 &__preview,
12 &__action {
13 position: absolute;
14 top: 0;
15 left: 0;
16 right: 0;
17 }
18
19 &__preview {
20 z-index: 1;
21 background-size: cover;
22 background-size: 100%;
23 background-repeat: no-repeat;
24 background-position: center center;
25 border-radius: 3px;
26 }
27
28 &__action {
29 position: relative;
30 z-index: 10;
31 opacity: 0;
32 transition: opacity 0.5s;
33 display: flex;
34 justify-content: center;
35
36 &-background {
37 position: absolute;
38 top: 0;
39 left: 0;
40 right: 0;
41 bottom: 0;
42 background: rgba($theme-gray, 0.7);
43 z-index: 10;
44 }
45
46 button {
47 position: relative;
48 z-index: 100;
49 color: #FFF;
50
51 .mdi {
52 color: #FFF;
53 }
54 }
55 }
56
57 &__dropzone {
58 text-align: center;
59 border-radius: 5px;
60 padding: 10px;
61 display: flex;
62 align-items: center;
63 justify-content: center;
64 flex-direction: column;
65 }
66
67 &__dropzone,
68 button {
69 .mdi {
70 margin-bottom: 5px;
71 }
72
73 p {
74 font-size: 10px;
75 line-height: 10px;
76 }
77 }
78
79 &:hover {
80 .image-upload__action {
81 opacity: 1;
82 }
83 }
84}
85
86.image-upload-wrapper {
87 .mdi {
88 font-size: 40px;
89 color: $theme-gray-light;
90 }
91} \ No newline at end of file
diff --git a/src/styles/main.scss b/src/styles/main.scss
index 0a082729c..261396f6f 100644
--- a/src/styles/main.scss
+++ b/src/styles/main.scss
@@ -35,3 +35,4 @@ $mdi-font-path: '../node_modules/mdi/fonts';
35@import './button.scss'; 35@import './button.scss';
36@import './searchInput.scss'; 36@import './searchInput.scss';
37@import './select.scss'; 37@import './select.scss';
38@import './image-upload.scss';
diff --git a/src/styles/searchInput.scss b/src/styles/searchInput.scss
index 28ff09fc4..633a31e09 100644
--- a/src/styles/searchInput.scss
+++ b/src/styles/searchInput.scss
@@ -1,4 +1,20 @@
1.search-input { 1.search-input {
2 width: 100%; 2 width: 100%;
3 height: auto; 3 height: auto;
4 display: flex;
5 align-items: center;
6 padding: 0 10px;
7 border-radius: 30px;
8 background: $theme-gray-lightest;
9 padding: 5px 10px;
10 @extend %headline;
11 color: $theme-gray-light;
12
13 input {
14 padding-left: 10px;
15 background: none;
16 border: 0;
17 flex: 1;
18 color: $theme-gray-light;
19 }
4} 20}
diff --git a/src/styles/settings.scss b/src/styles/settings.scss
index b29ed5468..2182c9b5f 100644
--- a/src/styles/settings.scss
+++ b/src/styles/settings.scss
@@ -111,6 +111,26 @@
111 &::-webkit-scrollbar-thumb:window-inactive { 111 &::-webkit-scrollbar-thumb:window-inactive {
112 background: none; 112 background: none;
113 } 113 }
114
115 .service-flex-grid {
116 display: flex;
117 }
118
119 .service-name {
120 flex: 1px;
121 }
122
123 .service-icon {
124 width: 140px;
125 float: right;
126 margin-top: 30px;
127 margin-left: 40px;
128
129 label {
130 font-weight: bold;
131 letter-spacing: -0.1px;
132 }
133 }
114 } 134 }
115 135
116 .settings__close { 136 .settings__close {
@@ -129,30 +149,13 @@
129 } 149 }
130 } 150 }
131 151
132 .settings__search-header { 152 .search-input {
133 display: flex; 153 margin-bottom: 30px;
134 align-items: center;
135 padding: 0 10px;
136 border-radius: $theme-border-radius;
137 transition: background $theme-transition-time;
138 @extend %headline;
139 font-size: 22px;
140
141 &:hover {
142 background: darken($theme-gray-lighter, 5%);
143 }
144
145 input {
146 padding-left: 10px;
147 background: none;
148 border: 0;
149 flex: 1;
150 @extend %headline;
151 }
152 } 154 }
153 155
154 &__options { 156 &__options {
155 margin-top: 20px; 157 margin-top: 20px;
158 flex: 1;
156 } 159 }
157 160
158 &__settings-group { 161 &__settings-group {
@@ -323,12 +326,6 @@
323 } 326 }
324 } 327 }
325 328
326 // @include element(add-service-teaser) {
327 // height: auto;
328 // margin-top: 20px;
329 // display: block;
330 // text-align: center;
331 // }
332 .emoji { 329 .emoji {
333 display: block; 330 display: block;
334 font-size: 40px; 331 font-size: 40px;
diff --git a/src/styles/welcome.scss b/src/styles/welcome.scss
index cfdcc80ad..46299b966 100644
--- a/src/styles/welcome.scss
+++ b/src/styles/welcome.scss
@@ -73,15 +73,8 @@
73 width: 35px; 73 width: 35px;
74 height: 35px; 74 height: 35px;
75 margin: 0 10px 15px; 75 margin: 0 10px 15px;
76 filter: grayscale(1)
77 opacity(0.5);
78 transition: 0.5s filter, 0.5s opacity; 76 transition: 0.5s filter, 0.5s opacity;
79 77
80 &:hover {
81 filter: grayscale(0);
82 opacity: (1);
83 }
84
85 img { 78 img {
86 width: 35px; 79 width: 35px;
87 } 80 }