summaryrefslogtreecommitdiffstats
path: root/css/contact-details-avatar.scss
diff options
context:
space:
mode:
Diffstat (limited to 'css/contact-details-avatar.scss')
-rw-r--r--css/contact-details-avatar.scss64
1 files changed, 64 insertions, 0 deletions
diff --git a/css/contact-details-avatar.scss b/css/contact-details-avatar.scss
new file mode 100644
index 00000000..07b494ba
--- /dev/null
+++ b/css/contact-details-avatar.scss
@@ -0,0 +1,64 @@
+/**
+ * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
+ *
+ * @author John Molakvoæ <skjnldsv@protonmail.com>
+ * @author Team Popcorn <teampopcornberlin@gmail.com>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ // AVATAR
+ #contact-header-avatar {
+ position: relative;
+ height: 75px;
+ width: 75px;
+ border-radius: 50%;
+ overflow: hidden;
+ flex-shrink: 0;
+ margin: 0 22px 0 44px;
+ .contact-avatar-background {
+ background-color: var(--color-background-dark);
+ opacity: .2;
+ z-index: 0;
+ }
+ img {
+ z-index: 1;
+ }
+ label.icon-upload-white {
+ opacity: .5;
+ z-index: 2;
+ &:hover,
+ a:active,
+ a:focus {
+ opacity: .7;
+ }
+ }
+ img + label.icon-upload-white {
+ opacity: 0;
+ }
+ .contact-avatar-background,
+ img,
+ label.icon-upload-white {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ }
+ &__picture {
+ border-radius: 50%;
+ flex-shrink: 0;
+ }
+} \ No newline at end of file