Skip to content

Commit ebf4c89

Browse files
sakshamarora1palkerecsenyi
authored andcommitted
semantic-ui: feed.overrides: Add placeholder css
Co-authored-by: Pal Kerecsenyi <[email protected]>
1 parent 5b65083 commit ebf4c89

File tree

2 files changed

+64
-6
lines changed

2 files changed

+64
-6
lines changed

invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/button.overrides

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,28 @@
8686

8787
.ui.button.text-only {
8888
padding: @verticalPadding @textOnlyHorizontalPadding;
89+
border: none !important;
8990
transform: translateX(-@textOnlyHorizontalPadding);
9091

92+
&.basic {
93+
box-shadow: none !important;
94+
}
95+
9196
&:not(:hover):not(:active):not(:focus) {
92-
background: none;
97+
background: none !important;
9398
}
9499

95100
&:hover:not(:active), &:focus:not(:active) {
96-
background-color: @backgroundColor;
101+
background-color: @backgroundColor !important;
102+
box-shadow: none !important;
103+
}
104+
105+
&:active, &:active:focus {
106+
background-color: @hoverBackgroundColor !important;
107+
box-shadow: none !important;
97108
}
98109

99-
&:active {
100-
background-color: @hoverBackgroundColor;
110+
&.centered {
111+
transform: none;
101112
}
102113
}

invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/feed.overrides

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@
194194
font-style: italic;
195195
color: @mutedTextColor;
196196
}
197+
198+
& > .placeholder {
199+
margin: 1rem;
200+
}
197201
}
198202

199203
.requests-action-event-icon {
@@ -265,8 +269,25 @@
265269
}
266270
}
267271
}
268-
.ui.feed.last-page .requests-event-item:first-child .requests-event-container {
269-
padding-top: @defaultPadding;
272+
273+
/* First element after LoadMore component */
274+
.ui.feed.stretched-feed .requests-event-item:first-child .requests-event-container:not(.reply) {
275+
padding-top: 3em;
276+
&::before {
277+
background: linear-gradient(180deg, transparent 0, @borderColor 75%) !important;
278+
}
279+
}
280+
281+
/* Last element before LoadMore component */
282+
.ui.feed.gradient-feed .requests-event-item:last-child .requests-event-container:not(.reply) {
283+
padding-bottom: 3em;
284+
&::before {
285+
background: linear-gradient(0deg, transparent 0, @borderColor 75%) !important;
286+
}
287+
}
288+
289+
.requests-pagination-load-more {
290+
cursor: pointer;
270291
}
271292

272293
.ui.feed {
@@ -414,3 +435,29 @@
414435
margin: 0;
415436
}
416437
}
438+
439+
.requests-placeholder-avatar {
440+
width: 28px;
441+
height: 28px;
442+
border-radius: 50%;
443+
margin-right: 0.75rem;
444+
position: relative;
445+
z-index: 9999;
446+
}
447+
448+
.requests-placeholder-event-icon {
449+
width: 24px;
450+
height: 21px;
451+
z-index: 9999;
452+
}
453+
454+
.requests-placeholder-avatar-icon {
455+
width: 20px;
456+
height: 20px;
457+
border-radius: 50%;
458+
margin-right: 5px;
459+
}
460+
461+
.requests-placeholder-summary-line {
462+
width: 150px;
463+
}

0 commit comments

Comments
 (0)