File tree 3 files changed +11
-6
lines changed
templates/user/notification
3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
1
<div role="main" aria-label="{{.Title}}" class="page-content user notification" id="notification_div" data-sequence-number="{{.SequenceNumber}}">
2
2
<div class="ui container">
3
3
{{$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] ">
5
5
<div class="small-menu-items ui compact tiny menu">
6
6
<a class="{{if eq .Status 1}}active {{end}}item" href="{{AppSubUrl}}/notifications?q=unread">
7
7
{{ctx.Locale.Tr "notification.unread"}}
Original file line number Diff line number Diff line change 24
24
--min-height-textarea : 132px ; /* padding + 6 lines + border = calc(1.57142em + 6lh + 2px), but lh is not fully supported */
25
25
--tab-size : 4 ;
26
26
--checkbox-size : 16px ; /* height and width of checkbox and radio inputs */
27
+ --page-spacing : 16px ; /* space between page elements */
27
28
}
28
29
29
30
: root * {
@@ -656,11 +657,14 @@ img.ui.avatar,
656
657
margin-bottom : 14px ;
657
658
}
658
659
659
- /* add padding to all content when there is no .secondary.nav. this uses padding instead of
660
- margin because with the negative margin on .ui.grid we would have to set margin-top: 0,
661
- but that does not work universally for all pages */
660
+ /* add margin to all pages when there is no .secondary.nav */
662
661
.page-content > : first-child : not (.secondary-nav ) {
663
- padding-top : 14px ;
662
+ margin-top : var (--page-spacing );
663
+ }
664
+ /* if .ui.grid is the first child the first grid-column has 'padding-top: 1rem' which we need
665
+ to compensate here */
666
+ .page-content > : first-child .ui .grid {
667
+ margin-top : calc (var (--page-spacing ) - 1rem );
664
668
}
665
669
666
670
.ui .pagination .menu .active .item {
Original file line number Diff line number Diff line change 2
2
3
3
.flex-container {
4
4
display : flex !important ;
5
- gap : 16px ;
5
+ gap : var (--page-spacing );
6
+ margin-top : var (--page-spacing );
6
7
}
7
8
8
9
.flex-container-nav {
You can’t perform that action at this time.
0 commit comments