Skip to content
Open
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
58 changes: 44 additions & 14 deletions data/assets/css/components/_event-summary.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$thumbnailSizeMobile: 75px;

.next-events-summary,
.past-events-summary {
display: grid;
Expand All @@ -15,10 +17,13 @@
.event-summary {
position: relative;
justify-self: left;
margin-bottom: $space-large;
max-width: 300px;
margin-bottom: $space-medium;
width: 100%;

@include size-medium {
width: auto;
max-width: 300px;
margin-bottom: $space-large;
justify-self: center;
}

Expand All @@ -32,22 +37,36 @@
text-transform: uppercase;

.date-badge {
position: absolute;
top: 20px;
right: -10px;
background-color: $brand-color;
padding: 0 5px;
z-index: 1;

&.invert {
color: $brand-color;
background-color: $black;
display: none;

@include size-medium {
display: block;
position: absolute;
top: 20px;
right: -10px;
background-color: $brand-color;
padding: 0 5px;
z-index: 1;

&.invert {
color: $brand-color;
background-color: $black;
}
}
}

.reset-link {
margin-bottom: $space-small;
background-image: none;
float: left;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you use flex instead of float?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll work on that this week. I think because of the nesting, float was the easier solution, but I'll see if we can use flexbox instead.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I can't get this done easily because I'd need to change the HTML structure. Right now, I don't have lots of time, so I don't think it'll be possible in the next 1-2 weeks.

margin-right: $space-medium;
max-width: $thumbnailSizeMobile;

@include size-medium {
float: none;
margin-right: 0;
max-width: auto;
}

&:hover {
background-image: none;
Expand All @@ -57,13 +76,15 @@

img {
width: 100%;
max-width: 300px;
min-width: 50px;
outline: 4px solid $black;
border-radius: 50%;

background-color: whitesmoke;
transition: outline 120ms ease-in-out;

@include size-medium {
max-width: 300px;
width: 300px;
height: 300px;
}
Expand All @@ -77,13 +98,22 @@
text-align: left;
color: $text-color-secondary;
font-size: 0.9rem;
margin-left: $thumbnailSizeMobile;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope that with flex/grid instead of float this margin-left is not needed. But if it is truly needed, could you move it to https://github.com/VLCTechHub/VLCTechHub-site/blob/master/data/assets/css/abstract/_variables.scss in kebab-case?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll take a look as soon as the float issue is resolved

padding-left: $space-medium;
@include size-medium {
margin-left: 0;
padding-left: 0;
}
}

hr {
width: 30%;
height: 2px;
color: black;
background-color: black;
margin: $space-large auto $space-larger auto;
margin: $space-medium auto $space-large auto;
@include size-medium {
margin: $space-large auto $space-larger auto;
}
}
}