Skip to content

Commit 487f80f

Browse files
committed
refactor(communities, theme): Theme tweaks for communities ui.
1 parent 9a0bc1b commit 487f80f

4 files changed

Lines changed: 57 additions & 16 deletions

File tree

assets/less/site/collections/table.overrides

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
.ui.table {
33
thead th {
4-
background-color: @seafoam50;
4+
background-color: transparent; // @seafoam50;
55
color: @ivy80;
66
line-height: 1.15rem;
77
}
@@ -19,12 +19,12 @@
1919
// }
2020
tr {
2121
td:first-child:not(.ignored) {
22-
background-color: @seafoam50;
22+
background-color: transparent; // @seafoam50;
2323
color: @ivy80;
2424
font-weight: normal;
2525
}
2626
td:nth-child(2) {
27-
border-color: @borderColor;
27+
border-color: transparent; // @borderColor;
2828
}
2929
}
3030
}
@@ -47,4 +47,4 @@
4747
}
4848
}
4949
}
50-
}
50+
}

assets/less/site/elements/image.overrides

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,27 @@
2929
}
3030
}
3131
}
32-
.community-header .ui.image.community-image {
32+
.community-header .ui.image.community-image.community-header-logo {
3333
margin-top: 1rem;
34+
width: 100%;
35+
max-width: 100%;
36+
37+
@media (max-width: @largestMobileScreen) {
38+
width: 5rem;
39+
max-width: 5rem;
40+
}
41+
42+
img {
43+
width: 100%;
44+
max-width: none;
45+
max-height: none;
46+
}
47+
}
48+
// also used elsewhere
49+
img.community-header-logo {
50+
border-radius: @defaultBorderRadius;
51+
box-shadow: 0 0 0.5rem rgb(0 0 0 / 5%);
52+
border: 1px solid @sidebarBorderColor;
3453
}
3554
.communities-frontpage {
3655
.ui.icon.message > .icon:not(.close) {
@@ -52,11 +71,6 @@
5271
box-shadow: 0 0 0.5rem rgb(0 0 0 / 5%);
5372
border: 1px solid @sidebarBorderColor;
5473
}
55-
img.community-header-logo {
56-
border-radius: @defaultBorderRadius;
57-
box-shadow: 0 0 0.5rem rgb(0 0 0 / 5%);
58-
border: 1px solid @sidebarBorderColor;
59-
}
6074

6175
#communities-carousel .carousel .ui.items .item img {
6276
object-fit: cover;

assets/less/site/globals/site.overrides

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,33 @@ a {
9797

9898
// basic page structure
9999

100+
@supports (view-transition-name: none) {
101+
@view-transition {
102+
navigation: auto;
103+
}
104+
@media (prefers-reduced-motion: no-preference) {
105+
#community-detail-header {
106+
view-transition-name: community-detail-header;
107+
contain: layout;
108+
}
109+
main,
110+
.community-detail-content,
111+
.rel-mt-2.ui.container {
112+
view-transition-name: community-detail-content;
113+
}
114+
::view-transition-old(community-detail-content),
115+
::view-transition-new(community-detail-content) {
116+
animation-duration: 180ms;
117+
animation-timing-function: ease-out;
118+
}
119+
::view-transition-old(community-detail-header),
120+
::view-transition-new(community-detail-header) {
121+
animation-duration: 180ms;
122+
animation-timing-function: ease-out;
123+
}
124+
}
125+
}
126+
100127
#main {
101128
flex-grow: 1;
102129
display: flex;

assets/less/site/globals/site.variables

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
Breakpoints
3232
--------------------*/
3333

34-
@mobileBreakpoint: 320px;
35-
@tabletBreakpoint: 768px;
36-
@computerBreakpoint: 992px;
37-
@largeMonitorBreakpoint: 1200px;
38-
@widescreenMonitorBreakpoint: 1920px;
34+
// @mobileBreakpoint: 320px;
35+
// @tabletBreakpoint: 768px;
36+
// @computerBreakpoint: 992px;
37+
// @largeMonitorBreakpoint: 1200px;
38+
// @widescreenMonitorBreakpoint: 1920px;
3939

4040
/*-------------------
4141
Spacing
@@ -295,4 +295,4 @@
295295
Separators
296296
------------------*/
297297
@listSeparator: ";";
298-
@listCommaSeparator: ",";
298+
@listCommaSeparator: ",";

0 commit comments

Comments
 (0)