From efae21e6c2e6da0094183aeb9ebf7a9534a021ae Mon Sep 17 00:00:00 2001 From: gaelle morin Date: Wed, 8 Jul 2020 18:26:23 +0200 Subject: [PATCH] feature: project: modify image - refactoring --- src/styles/base/main.scss | 88 ------------------- src/styles/components/_index.scss | 3 +- .../components/project-edit-picture.scss | 39 ++++++++ 3 files changed, 41 insertions(+), 89 deletions(-) create mode 100644 src/styles/components/project-edit-picture.scss diff --git a/src/styles/base/main.scss b/src/styles/base/main.scss index a822009..950b85a 100644 --- a/src/styles/base/main.scss +++ b/src/styles/base/main.scss @@ -384,94 +384,6 @@ h5 { } } -/*.p_absolute { - position: absolute; - z-index: 1; -}*/ - -.project-edit-picture { - - >div>*:not(:last-child) { - margin-bottom: 2rem; - } - - solid-display { - max-height: 8.5vh; - max-width: 35vw; - } - - solid-ac-checker:first-of-type { - display: flex; - - #solid-picture-remove { - margin-left: 2rem; - } - } - - solid-ac-checker:last-of-type { - align-self: flex-end; - } -} - -.project-edit-picture hubl-user-avatar { - border-radius: 0; - max-height: 8.5vh; - max-width: 35vw; - background: antiquewhite; - display: inline-block; - - - object { - max-height: 8.5vh; - max-width: 35vw; - } - - img { - max-height: 8.5vh; - max-width: 35vw; - } -} - - -/*.p_relative { - position: relative; -} - -.is-inline-1200 { - - @include breakpoint(lg) { - flex-direction: row; - } -} - -.flex_vertical-center { - align-items: center; -} - -.flex_column { - flex-direction: column; -} - -.pull-left-1200 { - - @include breakpoint(lg) { - float: left; - } -} - - - -.profile-avatar { - height: 243px; - width: 243px; - margin-left: 2rem; -} - -solid-picture { - -}*/ - - .content-box { @include window-style-modal(); flex-direction: column; diff --git a/src/styles/components/_index.scss b/src/styles/components/_index.scss index d13f842..9f53556 100644 --- a/src/styles/components/_index.scss +++ b/src/styles/components/_index.scss @@ -3,4 +3,5 @@ @import 'filters'; @import 'sidebar'; @import 'skills'; -@import 'tags'; \ No newline at end of file +@import 'tags'; +@import 'project-edit-picture'; diff --git a/src/styles/components/project-edit-picture.scss b/src/styles/components/project-edit-picture.scss new file mode 100644 index 0000000..e167109 --- /dev/null +++ b/src/styles/components/project-edit-picture.scss @@ -0,0 +1,39 @@ +.project-edit-picture { + + >div>*:not(:last-child) { + margin-bottom: 2rem; + } + + hubl-user-avatar { + background: transparent; + border-radius: 0; + display: inline-block; + text-align: center; + + object, img { + position: relative; + } + } + + solid-ac-checker:first-of-type { + display: block; + + @include breakpoint(lg) { + display: flex; + } + + #solid-picture-remove { + margin-left: 0; + margin-top: 2rem; + + @include breakpoint(lg) { + margin-left: 2rem; + margin-top: 0; + } + } + } + + solid-ac-checker:last-of-type { + align-self: flex-end; + } +}