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

Styling changes to the profile calendar widget #2019

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
e9ed289
Styling changes to the profile calendar widget
anishTP Apr 16, 2024
a1f3a12
Updated z-index for subnavbar and dropdown menu
anishTP Apr 16, 2024
cfaee0b
Fix rendering of projects when view is changed from year to month. Ad…
vidya-ram Apr 16, 2024
a019fe4
Updating the project filter
vidya-ram Apr 16, 2024
3f4e32c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 16, 2024
4a4589c
Bug fixes + fine tuned styling on year view
anishTP Apr 17, 2024
df555ec
Merge branch 'main' into calendar-mobile-styling-fixes
jace Apr 27, 2024
3e43278
Merge branch 'main' into calendar-mobile-styling-fixes
jace Apr 27, 2024
d492307
Aligned the filter icon and removed the square border at the bottom o…
anishTP Apr 30, 2024
0ef934c
Removed clipping on scrollbar
anishTP Apr 30, 2024
1243fc8
Removed bottom whitespace on mobile
anishTP Apr 30, 2024
b177a4d
Change css class names and css fixes
vidya-ram Apr 30, 2024
acb6d26
Merge branch 'calendar-mobile-styling-fixes' of https://github.com/ha…
vidya-ram Apr 30, 2024
6248e3a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 30, 2024
ce88db0
Style changes for event title popup
vidya-ram Apr 30, 2024
7bfe32f
Altered the button layout on the calendar header
anishTP Apr 30, 2024
ff5df2a
Remove extra class
vidya-ram Apr 30, 2024
06c296b
Tweaked styling on the filter icon and cleaned up the calendar header
anishTP Apr 30, 2024
381f3aa
Merge branch 'main' into calendar-mobile-styling-fixes
jace May 1, 2024
1da70fd
Merge branch 'calendar-mobile-styling-fixes' of https://github.com/ha…
vidya-ram May 2, 2024
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
10 changes: 10 additions & 0 deletions funnel/assets/js/profile_calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ $(() => {
return {
date: '',
showFilter: false,
loading: false,
calendarView: 'monthly',
access: 'both',
cfp: '',
Expand Down Expand Up @@ -49,6 +50,7 @@ $(() => {
}
return false;
},
lazyFetching: false,
eventTimeFormat: {
// like '14:30:00'
hour: '2-digit',
Expand All @@ -70,17 +72,20 @@ $(() => {
this.events = this.calendar.getEvents();
},
prev() {
this.loading = true;
this.calendar.prev();
this.updateTitle();
},
next() {
this.loading = true;
this.calendar.next();
this.updateTitle();
},
toggleFilterMenu() {
this.showFilter = !this.showFilter;
},
applyFilter() {
this.loading = true;
this.showFilter = false; // Close filter menu
switch (this.calendarView) {
case 'monthly':
Expand Down Expand Up @@ -115,5 +120,10 @@ $(() => {
});
},
},
watch: {
events() {
this.loading = false;
},
},
});
});
1 change: 1 addition & 0 deletions funnel/assets/sass/components/_subnavbar.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.sub-navbar-container--sticky {
margin-top: $mui-grid-padding;
z-index: 3;
}

.sub-navbar {
Expand Down
2 changes: 1 addition & 1 deletion funnel/assets/sass/mui/_dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
text-align: left;
background-color: $mui-dropdown-bg-color;
border-radius: $mui-dropdown-border-radius;
z-index: 1;
z-index: 4;
background-clip: padding-box;

// open state
Expand Down
175 changes: 108 additions & 67 deletions funnel/assets/sass/pages/profile_calendar.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,93 @@
@use 'sass:math';
@import '../base/variable';

.calendar-container {
.calendar {
width: 100%;
min-height: 300px;
min-height: 100vh;

.calendar__wrapper__project-list {
.calendar__wrapper__project-list__table {
border-collapse: collapse;
overflow: hidden;
margin: 0 !important;
border-radius: 16px;
tr {
border-bottom: 1px solid rgba(132, 146, 166, 0.3);
}

.calendar__wrapper__project-list__table__venue {
margin: $mui-grid-padding 0 0;
display: flex;
gap: $mui-grid-padding/4;
}
}
}

.calendar__wrapper__calendar__toolbar {
float: right;
padding: math.div($mui-grid-padding, 2) $mui-grid-padding;
width: 100%;
position: relative;
align-items: center;
z-index: 3;

.calendar__wrapper__calendar__toolbar__month {
font-size: 14px;
width: 100%;
height: 27px;
margin: math.div(-$mui-grid-padding, 2) math.div($mui-grid-padding, 2);
text-align: left;
font-variant: all-small-caps;
}

.calendar__wrapper__calendar__toolbar__filter {
height: 30.6px;
margin-right: math.div($mui-grid-padding, 1.25);
margin-top: math.div(-$mui-grid-padding, 8);
}

.calendar__wrapper__calendar__toolbar__filter__menu {
position: absolute;
left: 158px;
padding: $mui-grid-padding;
background-color: $mui-bg-color-primary;
z-index: 1000;
box-shadow:
0 0 2px rgba(0, 0, 0, 0.12),
0 2px 2px rgba(0, 0, 0, 0.2);
border-radius: 0 16px 16px 16px;
min-width: 200px;

button {
width: 100%;
margin-top: $mui-grid-padding;
}
}
}

@media (max-width: 768px) {
.calendar__wrapper .calendar__wrapper__headline {
order: 2;
}
.calendar__wrapper .calendar__wrapper__project-list {
order: 2;
}
.calendar__wrapper .calendar__wrapper__calendar {
order: 1;
margin: -$mui-grid-padding-double 0 $mui-grid-padding * 1.5;
position: sticky;
top: $mui-grid-padding-double;
z-index: 2;
}
}
}

.fc-header-toolbar {
display: none !important;
}

.fc {
margin: $mui-grid-padding auto;
margin: $mui-grid-padding auto 0;
width: 100%;
max-width: 100%;

Expand Down Expand Up @@ -54,7 +130,20 @@
.fc-multimonth-month {
justify-content: left;
padding: 0;
background: #fff;
}
.fc-multimonth-header {
border-radius: 16px;
}
.fc-view-harness-active > .fc-view {
border-radius: 16px;
inset: 10px 0 0;
}
.fc-scroller-harness-liquid {
border-radius: 0 0 16px 16px;
}
.fc-multimonth {
margin-top: -66px;
border: none !important;
}

--fc-border-color: #fff;
Expand All @@ -71,42 +160,34 @@
display: block;
}

table.proposal-list-table tr {
border-bottom: 1px solid rgba(132, 146, 166, 0.3);
}

.flex-wrapper--baseline {
justify-content: right;
padding: math.div($mui-grid-padding, 2) $mui-grid-padding 0 0;
position: relative;
z-index: 3;
}

.fc-text-caption {
font-size: 14px;
font-variant: all-small-caps;
.fc-theme-standard .fc-scrollgrid {
border: none;
}

.fc-multimonth {
margin: -66px 0 0;
.fc-scrollgrid-section td,
.fc-scrollgrid-section th {
border: none;
}

.fc-multimonth-title {
font-size: 14px !important;
font-variant: all-small-caps;
padding: $mui-grid-padding !important;
padding: $mui-grid-padding * 3 $mui-grid-padding $mui-grid-padding !important;
text-align: left !important;
font-weight: 600 !important;
}

.mui-table {
border-collapse: collapse;
overflow: hidden;
margin: 0 !important;
border-radius: 16px;
.fc-button {
padding: 0;
margin-left: math.div(-$mui-grid-padding, 4);
}

.fc-view-harness {
height: 270px !important;
height: 260px !important;
}

.fc-daygrid-day-events{
top: -$mui-grid-padding/4;
}

.fc-daygrid-day-frame {
Expand Down Expand Up @@ -135,43 +216,3 @@ table.proposal-list-table tr {
color: #1f2d3d;
font-weight: 700;
}

@media (max-width: 768px) {
.calendar_mobile .grid__col-12 {
order: 2;
}
.calendar_mobile .proposal_list {
order: 2;
}
.calendar_mobile .calendar_mobile_container {
order: 1;
margin: -$mui-grid-padding-double 0 $mui-grid-padding * 1.5;
position: sticky;
top: $mui-grid-padding-double;
z-index: 2;
}
}

.proposal_venue {
margin: $mui-grid-padding 0 0;
display: flex;
gap: math.div($mui-grid-padding, 4);
}

.filter-menu {
position: absolute;
left: 158px;
padding: $mui-grid-padding;
background-color: $mui-bg-color-primary;
z-index: 1000;
box-shadow:
0 0 2px rgba(0, 0, 0, 0.12),
0 2px 2px rgba(0, 0, 0, 0.2);
border-radius: 0 16px 16px 16px;
min-width: 200px;

button {
width: 100%;
margin-top: $mui-grid-padding;
}
}
Loading
Loading