diff --git a/addons/default/visiosoft/profile-module/resources/assets/css/profile.css b/addons/default/visiosoft/profile-module/resources/assets/css/profile.css deleted file mode 100644 index 9ccc05938..000000000 --- a/addons/default/visiosoft/profile-module/resources/assets/css/profile.css +++ /dev/null @@ -1,5 +0,0 @@ -.profile-section .nav-link.active { - background-color: #343a40 !important; - border-color: #343a40 #343a40 #343a40; - color: white!important; -} \ No newline at end of file diff --git a/addons/default/visiosoft/profile-module/resources/assets/css/profile.scss b/addons/default/visiosoft/profile-module/resources/assets/css/profile.scss new file mode 100644 index 000000000..cf8f444de --- /dev/null +++ b/addons/default/visiosoft/profile-module/resources/assets/css/profile.scss @@ -0,0 +1,92 @@ +.profile-section .nav-link.active { + background-color: #343a40 !important; + border-color: #343a40 #343a40 #343a40; + color: white!important; +} + +.profile-nav-toggler { + color: rgba(0,0,0,.5); + border: 1px solid rgba(0,0,0,.1); + padding: .25rem .75rem; + font-size: 1.25rem; + line-height: 1; + background-color: transparent; + border-radius: .25rem; +} + +.profile-navigation { + padding: 1.5rem .25rem; + height: 100%; + position: fixed; + top: 0; + left: 0; + overflow-y: auto; + z-index: 9999; + -webkit-transform: translateX(-100%); + -ms-transform: translateX(-100%); + transform: translateX(-100%); + -webkit-transition: 300ms ease; + transition: 300ms ease; + @media only screen and (min-width: 768px) { + padding: 1.5rem 2.25rem; + height: initial; + position: initial; + -webkit-transform: initial; + -ms-transform: initial; + transform: initial; + } + + &.reveal { + -webkit-transform: translateX(0%); + -ms-transform: translateX(0%); + transform: translateX(0%); + -webkit-transition: 300ms ease; + transition: 300ms ease; + } + + a { + display: flex; + align-items: center; + margin-bottom: 1.25rem; + + &.active, &:hover { + cursor: pointer; + + p { + color: #707070; + font-weight: 500; + } + } + + &:first-child { + p { + font-weight: 500; + color: #707070; + } + } + + img { + margin-right: .75rem; + width: 1.5rem; + height: 1.5rem; + } + + p { + color: #A1A1A1; + margin-bottom: 0; + } + } +} + +.overlay { + position: fixed; + display: none; + top: 0; + left: 0; + right: 0; + bottom: 0; + cursor: pointer; + background: #000; + opacity: .2; + z-index: 1; +} \ No newline at end of file diff --git a/addons/default/visiosoft/profile-module/resources/assets/js/profile-nav.js b/addons/default/visiosoft/profile-module/resources/assets/js/profile-nav.js new file mode 100644 index 000000000..b9adb169d --- /dev/null +++ b/addons/default/visiosoft/profile-module/resources/assets/js/profile-nav.js @@ -0,0 +1,8 @@ +$('#navbarSideButton').on('click', function() { + $('#navbarSide').addClass('reveal'); + $('.overlay').show(); +}); +$('.overlay').on('click', function(){ + $('#navbarSide').removeClass('reveal'); + $('.overlay').hide(); +}); diff --git a/addons/default/visiosoft/profile-module/resources/images/interface.svg b/addons/default/visiosoft/profile-module/resources/images/interface.svg new file mode 100644 index 000000000..6b1df5999 --- /dev/null +++ b/addons/default/visiosoft/profile-module/resources/images/interface.svg @@ -0,0 +1,6 @@ + + diff --git a/addons/default/visiosoft/profile-module/resources/images/location.svg b/addons/default/visiosoft/profile-module/resources/images/location.svg new file mode 100644 index 000000000..74fcde598 --- /dev/null +++ b/addons/default/visiosoft/profile-module/resources/images/location.svg @@ -0,0 +1,2 @@ + + diff --git a/addons/default/visiosoft/profile-module/resources/images/social-media.svg b/addons/default/visiosoft/profile-module/resources/images/social-media.svg new file mode 100644 index 000000000..e948e1bfc --- /dev/null +++ b/addons/default/visiosoft/profile-module/resources/images/social-media.svg @@ -0,0 +1,2 @@ + + diff --git a/addons/default/visiosoft/profile-module/resources/images/website.svg b/addons/default/visiosoft/profile-module/resources/images/website.svg new file mode 100644 index 000000000..babe27185 --- /dev/null +++ b/addons/default/visiosoft/profile-module/resources/images/website.svg @@ -0,0 +1,2 @@ + + diff --git a/addons/default/visiosoft/profile-module/resources/views/address/create.twig b/addons/default/visiosoft/profile-module/resources/views/address/create.twig index 8713e5d86..587478940 100644 --- a/addons/default/visiosoft/profile-module/resources/views/address/create.twig +++ b/addons/default/visiosoft/profile-module/resources/views/address/create.twig @@ -1,8 +1,15 @@ {% extends "theme::layouts/default" %} + +{% block styles %} + {{ asset_style("visiosoft.module.profile::assets/css/profile.scss") }} +{% endblock %} + {% block content %}