Skip to content

Commit 2cfc4af

Browse files
leekelleheriOvergaard
authored andcommitted
Content dashboard, CSS tweaks
To tighten up the info boxes, adds drop-shadow.
1 parent d023ae3 commit 2cfc4af

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

src/Umbraco.Web.UI.Client/src/packages/umbraco-news/umbraco-news-dashboard.element.ts

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
2-
import { css, html, customElement } from '@umbraco-cms/backoffice/external/lit';
2+
import { css, customElement, html } from '@umbraco-cms/backoffice/external/lit';
33
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
44

55
@customElement('umb-umbraco-news-dashboard')
@@ -60,6 +60,7 @@ export class UmbUmbracoNewsDashboardElement extends UmbLitElement {
6060
display: block;
6161
padding: var(--uui-size-layout-1);
6262
}
63+
6364
p {
6465
position: relative;
6566
}
@@ -69,24 +70,33 @@ export class UmbUmbracoNewsDashboardElement extends UmbLitElement {
6970
grid-column-end: -1;
7071
margin-bottom: var(--uui-size-space-4);
7172
}
73+
7274
#info-links {
7375
display: grid;
74-
max-width: 1000px;
75-
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
76+
grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
7677
grid-gap: var(--uui-size-space-4);
78+
max-width: 1000px;
7779
}
80+
7881
.info-link {
79-
border: 1px solid var(--uui-color-border);
80-
padding: var(--uui-size-space-4);
81-
border-radius: calc(var(--uui-border-radius) * 2);
82-
line-height: 1.5;
82+
border: var(--uui-box-border-width, 0) solid
83+
var(--uui-box-border-color, var(--uui-color-divider-standalone, #e9e9eb));
84+
border-radius: var(--uui-box-border-radius, var(--uui-border-radius, 3px));
85+
box-shadow: var(
86+
--uui-box-box-shadow,
87+
var(--uui-shadow-depth-1, 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24))
88+
);
8389
background-color: var(--uui-color-surface);
8490
text-decoration: none;
91+
line-height: 1.5;
92+
padding: var(--uui-size-space-4);
8593
}
94+
8695
.info-link h3 {
8796
margin-top: 0;
8897
margin-bottom: var(--uui-size-space-1);
8998
}
99+
90100
.info-link p {
91101
margin-top: 0;
92102
margin-bottom: 0;

0 commit comments

Comments
 (0)