Skip to content

Commit

Permalink
Fix random bits and pieces, again
Browse files Browse the repository at this point in the history
* Remove some use of italic fonts since that's old school
* Fix glitchy render on footer
* Remove some bad styling
  • Loading branch information
ivarnakken committed Jul 22, 2023
1 parent 6c9cf4b commit 2ec92d3
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 24 deletions.
1 change: 1 addition & 0 deletions app/components/Footer/Footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
flex-direction: row;
justify-content: space-between;
padding: 0.9em;
margin-bottom: -1px; /* In case of glitchy render */
background: url('app/assets/skyline.svg') bottom center no-repeat;

@media (--small-viewport) {
Expand Down
9 changes: 0 additions & 9 deletions app/components/Poll/Poll.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,6 @@
justify-content: space-between;
}

.arrow {
margin-top: 9px;
cursor: pointer;

&:hover {
color: var(--lego-red-color-hover);
}
}

.blurContainer {
display: none;
position: absolute;
Expand Down
1 change: 0 additions & 1 deletion app/components/Poll/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ class Poll extends Component<Props, State> {
onClick={this.toggleTruncate}
name={expanded ? 'chevron-up' : 'chevron-down'}
size={20}
className={styles.arrow}
/>
</Flex>
)}
Expand Down
5 changes: 2 additions & 3 deletions app/routes/admin/groups/components/GroupView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ type GroupProps = {

const Group = (props: GroupProps) => {
const { description } = props.group;
const descriptionText =
description && description.length ? `(${description})` : '';
const { match, group } = props;

return (
<div>
<Helmet title={props.group.name} />
<header>
<h2>{props.group.name}</h2>
<span>{descriptionText}</span>
<span>{description || ''}</span>
</header>
<Switch>
<RouteWrapper
Expand Down
5 changes: 2 additions & 3 deletions app/routes/events/components/EventEditor/EventEditor.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
}

.registrationDeadlineHours {
font-size: 100%;
margin: 0;
font-style: italic;
color: var(--secondary-font-color);
font-size: var(--font-size-sm);
}

.metaField {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/events/components/EventEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ function EventEditor({
className={styles.formField}
/>
<p className={styles.registrationDeadlineHours}>
Stenger:{' '}
Stenger{' '}
<FormatTime time={moment(event.registrationDeadline)} />
</p>
</Tooltip>
Expand Down
5 changes: 0 additions & 5 deletions app/routes/interestgroups/components/InterestGroup.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
opacity: 0.7;
}

.description {
font-size: var(--font-size-lg);
font-style: italic;
}

.listItem {
margin: 8px;
padding-left: 4px;
Expand Down
8 changes: 6 additions & 2 deletions app/routes/interestgroups/components/InterestGroupDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ const ButtonRow = ({
: () => joinGroup(group.id, currentUser);
return (
<Flex>
<Button onClick={onClick}>
<Button
success={membership === undefined}
danger={membership !== undefined}
onClick={onClick}
>
{membership ? 'Forlat gruppen' : 'Bli med i gruppen'}
</Button>
</Flex>
Expand Down Expand Up @@ -122,7 +126,7 @@ function InterestGroupDetail(props: Props) {
/>
<ContentSection>
<ContentMain>
<p className={styles.description}>{group.description}</p>
<p>{group.description}</p>
<DisplayContent content={group.text} />
<ButtonRow {...props} />
</ContentMain>
Expand Down

0 comments on commit 2ec92d3

Please sign in to comment.