diff options
author | Jessica <jessica@Absolventas-MacBook-Pro.local> | 2018-08-15 18:18:35 +0200 |
---|---|---|
committer | Jessica <jessica@Absolventas-MacBook-Pro.local> | 2018-08-15 18:18:35 +0200 |
commit | fdeb168878309a20751e1721036f7a03e4bc53cc (patch) | |
tree | ca985c2e6c7f90b593569e1e58edb21751846ab2 /css | |
parent | bd287ef64360fdaeee06ebf434ee056d40464eff (diff) |
added BEM styling and structuring after meeting
Diffstat (limited to 'css')
-rw-r--r-- | css/contacts.scss | 2 | ||||
-rw-r--r-- | css/settings-section.scss (renamed from css/settings.scss) | 135 | ||||
-rw-r--r-- | css/settings/settings-addressbook-sharee.scss | 46 | ||||
-rw-r--r-- | css/settings/settings-addressbook-shares.scss | 56 | ||||
-rw-r--r-- | css/settings/settings-addressbook.scss | 31 |
5 files changed, 139 insertions, 131 deletions
diff --git a/css/contacts.scss b/css/contacts.scss index d1b2da3e..16911655 100644 --- a/css/contacts.scss +++ b/css/contacts.scss @@ -1,2 +1,2 @@ -@import 'settings'; +@import 'settings-section'; @import 'details'; diff --git a/css/settings.scss b/css/settings-section.scss index 74cfa7b8..a2696d3a 100644 --- a/css/settings.scss +++ b/css/settings-section.scss @@ -21,6 +21,11 @@ * */ + +@import 'settings/settings-addressbook'; +@import 'settings/settings-addressbook-shares'; +@import 'settings/settings-addressbook-sharee'; + // contacts settings section #app-settings-content { .settings-section { @@ -33,136 +38,6 @@ display: flex; } -// Addressbook lists -.addressbook { - display: flex; - align-items: center; - white-space: nowrap; - text-overflow: ellipsis; - - &__name { - display: block; - flex: 0 1 auto; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - } - &__share, - &__menu .icon-more { - width: 44px; - height: 44px; - opacity: .5; - &:hover, - &:focus, - &:active { - opacity: .7; - } - } - &__share { - margin-left: auto; - } -} - -// Addressbook sharees -.addressbook__shares { - width: 100%; - .dropdown-menu { - border: 1px solid #d1d1d1; - border-radius: 0 0 3px 3px; - max-height: 200px; - margin-top: -2px; - overflow-y: auto; - display: flex; - flex-wrap: wrap; - background-color: #fff; - position: relative; - width: 100%; - z-index: 500; - top: -2px; - left: 0px; - li { - width: 100%; - padding: 8px 9px 9px; - cursor: pointer; - } - li.active { - background: #f0f0f0; - } - } - &__input { - width: 100% !important; - margin-right: 0; - padding-right: 30px; - text-overflow: ellipsis; - } - &__list { - margin-top: 8px; - margin-bottom: 12px; - display: flex; - flex-direction: column; - } - .multiselect.multiselect-vue { - width: inherit; - .multiselect__tags:focus-within, .multiselect__tags:hover { - border-color: var(--color-primary-element); - } - } - .multiselect.multiselect-vue .multiselect__content-wrapper { - background: #f0f0f0; - width: inherit; - } - .shareematch--bold { - font-weight: bold; - } -} - -// Sharees settings for Addressbook -.addressbook__sharee { - padding: 0 5px; - display: inline-flex; - align-items: center; - &__identifier { - width: 100%; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - display: inline-block; - vertical-align: top; - opacity: 0.5; - } - &__utils { - padding: 0 !important; - float: right; - position: relative !important; - display: inline-flex; - align-items: center; - flex-shrink: 0; - height: 20px; - .checkbox + label { - padding: 0 !important; - } - } - - .icon { - margin-right: 5px; - opacity: 0.2; - width: 16px; - height: 16px; - display: inline-block; - } - - .icon-group { - background-image: url(/apps/contacts/img/group.svg); - } - - .icon-delete { - display: inline-block; - width: 24px; - height: 20px; - opacity: 0.4; - } -} - // Sort Contacts .sort-contacts { .multiselect.multiselect-vue { diff --git a/css/settings/settings-addressbook-sharee.scss b/css/settings/settings-addressbook-sharee.scss new file mode 100644 index 00000000..9ea3bd0b --- /dev/null +++ b/css/settings/settings-addressbook-sharee.scss @@ -0,0 +1,46 @@ +.addressbook__sharee { + padding: 0 5px; + display: inline-flex; + align-items: center; + width: 100%; + &__identifier { + width: 100%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + display: inline-block; + vertical-align: top; + opacity: 0.5; + } + &__utils { + padding: 0 !important; + float: right; + position: relative !important; + display: inline-flex; + align-items: center; + flex-shrink: 0; + height: 20px; + .checkbox + label { + padding: 0 !important; + } + } + + .icon { + margin-right: 5px; + opacity: 0.2; + width: 16px; + height: 16px; + display: inline-block; + } + + .icon-group { + background-image: url(/apps/contacts/img/group.svg); + } + + .icon-delete { + display: inline-block; + width: 24px; + height: 20px; + opacity: 0.4; + } +}
\ No newline at end of file diff --git a/css/settings/settings-addressbook-shares.scss b/css/settings/settings-addressbook-shares.scss new file mode 100644 index 00000000..c8ea519e --- /dev/null +++ b/css/settings/settings-addressbook-shares.scss @@ -0,0 +1,56 @@ +.addressbook-shares { + width: 100%; + .dropdown-menu { + border: 1px solid #d1d1d1; + border-radius: 0 0 3px 3px; + max-height: 200px; + margin-top: -2px; + overflow-y: auto; + display: flex; + flex-wrap: wrap; + background-color: #fff; + position: relative; + width: 100%; + z-index: 500; + top: -2px; + left: 0px; + li { + width: 100%; + padding: 8px 9px 9px; + cursor: pointer; + } + li.active { + background: #f0f0f0; + } + } + &__input { + width: 100% !important; + margin-right: 0; + padding-right: 30px; + text-overflow: ellipsis; + } + &__list { + margin-top: 8px; + margin-bottom: 12px; + display: flex; + flex-direction: column; + } + + .multiselect-vue { + width: inherit; + + .multiselect__tags:focus-within, + .multiselect__tags:hover { + border-color: var(--color-primary-element); + } + + .multiselect__content-wrapper { + background: #f0f0f0; + width: inherit; + } + + &__shareematch--bold { + font-weight: bold; + } + } +}
\ No newline at end of file diff --git a/css/settings/settings-addressbook.scss b/css/settings/settings-addressbook.scss new file mode 100644 index 00000000..bda520fa --- /dev/null +++ b/css/settings/settings-addressbook.scss @@ -0,0 +1,31 @@ +// BLOCK +.addressbook { + display: flex; + align-items: center; + white-space: nowrap; + text-overflow: ellipsis; + + &__name { + display: block; + flex: 0 1 auto; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + &__share, + &__menu .icon-more { + width: 44px; + height: 44px; + opacity: .5; + &:hover, + &:focus, + &:active { + opacity: .7; + } + } + &__share { + margin-left: auto; + } +} + +// MODIFIER
\ No newline at end of file |