File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
templates/user/notification Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 11<div role="main" aria-label="{{.Title}}" class="page-content user notification" id="notification_div" data-sequence-number="{{.SequenceNumber}}">
22 <div class="ui container">
33 {{$notificationUnreadCount := call .NotificationUnreadCount}}
4- <div class="tw-flex tw-items-center tw-justify-between tw-mb-4 ">
4+ <div class="tw-flex tw-items-center tw-justify-between tw-mb-[--page-spacing] ">
55 <div class="small-menu-items ui compact tiny menu">
66 <a class="{{if eq .Status 1}}active {{end}}item" href="{{AppSubUrl}}/notifications?q=unread">
77 {{ctx.Locale.Tr "notification.unread"}}
Original file line number Diff line number Diff line change 2424 --min-height-textarea : 132px ; /* padding + 6 lines + border = calc(1.57142em + 6lh + 2px), but lh is not fully supported */
2525 --tab-size : 4 ;
2626 --checkbox-size : 16px ; /* height and width of checkbox and radio inputs */
27+ --page-spacing : 16px ; /* space between page elements */
2728}
2829
2930: root * {
@@ -582,11 +583,14 @@ img.ui.avatar,
582583 margin-bottom : 14px ;
583584}
584585
585- /* add padding to all content when there is no .secondary.nav. this uses padding instead of
586- margin because with the negative margin on .ui.grid we would have to set margin-top: 0,
587- but that does not work universally for all pages */
586+ /* add margin to all pages when there is no .secondary.nav */
588587.page-content > : first-child : not (.secondary-nav ) {
589- padding-top : 14px ;
588+ margin-top : var (--page-spacing );
589+ }
590+ /* if .ui.grid is the first child the first grid-column has 'padding-top: 1rem' which we need
591+ to compensate here */
592+ .page-content > : first-child .ui .grid {
593+ margin-top : calc (var (--page-spacing ) - 1rem );
590594}
591595
592596.ui .pagination .menu .active .item {
Original file line number Diff line number Diff line change 22
33.flex-container {
44 display : flex !important ;
5- gap : 16px ;
5+ gap : var (--page-spacing );
6+ margin-top : var (--page-spacing );
67}
78
89.flex-container-nav {
You can’t perform that action at this time.
0 commit comments