Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed portrait layout with no content card #240

Merged
merged 2 commits into from
Oct 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 55 additions & 61 deletions src/TagzApp.Web/wwwroot/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,31 +55,31 @@ body {
grid-row-gap: 15px;
}

#taggedContent .ProfilePicture,
#overlayDisplay .ProfilePicture,
#overlayDisplay.showPreview .ProfilePicture,
#portraitOverlayDisplay .ProfilePicture,
#portraitOverlayDisplay.showPreview .ProfilePicture {
grid-area: 1 / 1 / 2 / 2;
width: 36px;
height: 36px;
border-radius: 50%;
}
#taggedContent .ProfilePicture,
#overlayDisplay .ProfilePicture,
#overlayDisplay.showPreview .ProfilePicture,
#portraitOverlayDisplay .ProfilePicture,
#portraitOverlayDisplay.showPreview .ProfilePicture {
grid-area: 1 / 1 / 2 / 2;
width: 36px;
height: 36px;
border-radius: 50%;
}

#taggedContent .byline,
#overlayDisplay .byline,
#overlayDisplay.showPreview .byline,
#portraitOverlayDisplay .byline,
#portraitOverlayDisplay.showPreview .byline {
grid-area: 1 / 2 / 2 / 3;
min-width: 170px;
overflow: hidden;
white-space: nowrap;
height: 2.5em;
}
#taggedContent .byline,
#overlayDisplay .byline,
#overlayDisplay.showPreview .byline,
#portraitOverlayDisplay .byline,
#portraitOverlayDisplay.showPreview .byline {
grid-area: 1 / 2 / 2 / 3;
min-width: 170px;
overflow: hidden;
white-space: nowrap;
height: 2.5em;
}

#taggedContent .provider,
#overlayDisplay .provider,
#overlayDisplay .provider,
#portraitOverlayDisplay .provider {
grid-area: 1 / 3 / 2 / 4;
font-size: 20px;
Expand All @@ -93,7 +93,7 @@ body {
#taggedContent .time,
#overlayDisplay .time,
#overlayDisplay.showPreview .time,
#portraitOverlayDisplay.showPreview .time {
#portraitOverlayDisplay .time {
grid-area: 2 / 1 / 3 / 4;
color: var(--bs-body-color);
font-family: Helvetica;
Expand All @@ -107,7 +107,7 @@ body {
#taggedContent .content,
#overlayDisplay .content,
#overlayDisplay.showPreview .content,
#portraitOverlayDisplay.showPreview .content {
#portraitOverlayDisplay .content {
grid-area: 3 / 1 / 4 / 4;
display: block;
width: 100%;
Expand All @@ -133,8 +133,7 @@ span.invisible {
display: none;
}

#overlayDisplay .contentcard
{
#overlayDisplay .contentcard {
grid-area: 1 / 4 / 3 / 5;
display: block;
max-width: 400px;
Expand All @@ -145,18 +144,15 @@ span.invisible {
position: relative;
}



#overlayDisplay .contentcard img
{
border-radius: 4px;
max-width: 400px;
max-height: 282px;
position: absolute;
top: 50%;
left: 50%;
transform: translateY(-50%) translateX(-50%);
}
#overlayDisplay .contentcard img {
border-radius: 4px;
max-width: 400px;
max-height: 282px;
position: absolute;
top: 50%;
left: 50%;
transform: translateY(-50%) translateX(-50%);
}

#portraitOverlayDisplay .contentcard {
grid-area: 4 / 1 / 5 / 3;
Expand All @@ -169,30 +165,28 @@ span.invisible {
position: relative;
}

#portraitOverlayDisplay .contentcard img {
border-radius: 4px;
max-width: 375px;
max-height: 282px;
position: absolute;
top: 50%;
left: 50%;
transform: translateY(-50%) translateX(-50%);
}

#portraitOverlayDisplay .contentcard video {
border-radius: 4px;
max-width: 375px;
max-height: 282px;
position: absolute;
top: 50%;
left: 50%;
transform: translateY(-50%) translateX(-50%);
}
#portraitOverlayDisplay .contentcard img {
border-radius: 4px;
max-width: 375px;
max-height: 282px;
position: absolute;
top: 50%;
left: 50%;
transform: translateY(-50%) translateX(-50%);
}

#portraitOverlayDisplay .contentcard video {
border-radius: 4px;
max-width: 375px;
max-height: 282px;
position: absolute;
top: 50%;
left: 50%;
transform: translateY(-50%) translateX(-50%);
}

#overlayDisplay .author,
#portraitOverlayDisplay .author
{
#portraitOverlayDisplay .author {
font-family: Helvetica;
font-size: 16px;
font-style: normal;
Expand Down Expand Up @@ -282,7 +276,8 @@ span.invisible {
position: relative;
}

#portraitOverlayDisplay.showPreview {
#portraitOverlayDisplay.showPreview,
#portraitOverlayDisplay.show {
display: grid;
grid-template-columns: 36px 1fr 16px;
grid-template-rows: 36px 14px 1fr auto;
Expand All @@ -296,7 +291,6 @@ span.invisible {
font-family: Arial, Helvetica, sans-serif;
}


.modal-body .contentcard {
border-radius: 4px;
width: 100%;
Expand Down