Update modal share button

dev
gravel 2 years ago
parent cc99f181e0
commit 6eb7d9e1b8
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -185,11 +185,11 @@ header {
align-items: flex-start; align-items: flex-start;
padding-top: var(--body-margin); padding-top: var(--body-margin);
padding-inline: var(--body-margin); padding-inline: var(--body-margin);
--icon-size: 2.5rem; --feather-icon-size: 2.5rem;
} }
header .feather-icon, #search .feather-icon { header .feather-icon, #search .feather-icon {
font-size: var(--icon-size); font-size: var(--feather-icon-size);
} }
#header-start, #header-end { #header-start, #header-end {
@ -225,8 +225,8 @@ html:not(.js) :is(#search-container, #search-container *) {
#search-action-post { order: 2; } #search-action-post { order: 2; }
#search-bar { #search-bar {
--icon-size: 2rem; --feather-icon-size: 2rem;
height: var(--icon-size); height: var(--feather-icon-size);
width: 15rem; width: 15rem;
color: var(--primary-color); color: var(--primary-color);
background-color: var(--secondary-color); background-color: var(--secondary-color);
@ -575,7 +575,8 @@ footer, aside {
height: var(var(--modal-height)); height: var(var(--modal-height));
color: var(--primary-color); color: var(--primary-color);
background-color: var(--secondary-color); background-color: var(--secondary-color);
--icon-size: 4rem; --room-icon-size: 4rem;
--feather-icon-size: 2rem;
} }
#details-modal-contents { #details-modal-contents {
@ -637,24 +638,30 @@ footer, aside {
} }
#details-modal-title { #details-modal-title {
margin-bottom: calc( var(--icon-size) * 0.1 ); margin-bottom: calc( var(--room-icon-size) * 0.1 );
} }
#details-modal-community-icon-wrapper { #details-modal-community-icon-wrapper {
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
--strip: calc( var(--icon-size) / 25 ); --strip: calc( var(--room-icon-size) / 25 );
--padding-size: calc( var(--icon-size) - 1 * var(--strip) ); --padding-size: calc( var(--room-icon-size) - 1 * var(--strip) );
top: calc(var(--icon-size) * 0.5 - 0.6rem); top: calc(var(--room-icon-size) * 0.5 - 0.6rem);
width: var(--icon-size); width: var(--room-icon-size);
height: var(--icon-size); height: var(--room-icon-size);
margin-right: calc( var(--icon-size) * 0.3 ); margin-right: calc( var(--room-icon-size) * 0.3 );
/* box-shadow: var(--primary-color) 0 0 calc( var(--icon-size) / 10 ); */ /* box-shadow: var(--primary-color) 0 0 calc( var(--room-icon-size) / 10 ); */
border: var(--primary-color) var(--strip) solid; border: var(--primary-color) var(--strip) solid;
padding: var(--strip); padding: var(--strip);
border-radius: 100%; border-radius: 100%;
} }
#details-modal-copy-room-details-link {
position: relative;
margin-left: 0.5em;
top: calc( var(--feather-icon-size) * 0.5 - 1ex );
}
#details-modal-community-icon-wrapper:is([data-has-icon="false"], [data-icon-safety="-1"]) { #details-modal-community-icon-wrapper:is([data-has-icon="false"], [data-icon-safety="-1"]) {
display: none; display: none;
} }

@ -31,6 +31,14 @@
title="Open preview in new tab" title="Open preview in new tab"
href="#" href="#"
></a> ></a>
<img
id="details-modal-copy-room-details-link"
class="feather-icon clickable enter-clicks"
src="/assets/icons/share-2.svg"
alt="Share"
title="Share this Community"
tabindex="0"
>
</div> </div>
<p id="details-modal-description"> <p id="details-modal-description">
<span id="details-modal-description-inner" data-hydrate-with="description"></span> <span id="details-modal-description-inner" data-hydrate-with="description"></span>
@ -110,13 +118,6 @@
> >
Copy ID Copy ID
</button> </button>
<button
id="details-modal-copy-room-details-link"
class="themed-button"
title="Copy link to show details about this Community"
>
Share
</button>
<gap></gap> <gap></gap>
<div id="details-modal-pane-selection" class="hidden"> <div id="details-modal-pane-selection" class="hidden">
<button <button

Loading…
Cancel
Save