Skip to content

Commit f3bf54c

Browse files
WEB-237: Improve Individual Collection Sheet layout (#2634)
1 parent 102d3b4 commit f3bf54c

File tree

1 file changed

+109
-11
lines changed

1 file changed

+109
-11
lines changed

src/app/collections/individual-collection-sheet/individual-collection-sheet.component.scss

Lines changed: 109 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@
1414
margin-top: 1em;
1515
}
1616

17+
// Common margin utility classes
18+
.m-b-20 {
19+
margin-bottom: 20px;
20+
}
21+
22+
.m-r-10 {
23+
margin-right: 10px;
24+
}
25+
1726
// Form field underlines for light mode
1827
::ng-deep .mat-form-field.mat-form-field .mat-form-field-underline {
1928
background-color: rgb(0 0 0 / 42%);
@@ -29,6 +38,71 @@
2938
}
3039
}
3140

41+
.showcollectionsheet {
42+
.container {
43+
max-width: 73rem;
44+
}
45+
}
46+
47+
// Card styling in collection sheet
48+
.showcollectionsheet .container mat-card {
49+
padding: 24px;
50+
border-radius: 8px;
51+
box-shadow: 0 2px 10px rgb(0 0 0 / 8%);
52+
}
53+
54+
// Parameters button styling
55+
.showcollectionsheet .container .m-b-20 {
56+
margin-bottom: 20px;
57+
padding: 10px 0;
58+
display: flex;
59+
align-items: center;
60+
}
61+
62+
.showcollectionsheet .container .m-b-20 button {
63+
min-width: 120px;
64+
font-weight: 500;
65+
box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
66+
transition: all 0.3s ease;
67+
}
68+
69+
.showcollectionsheet .container .m-b-20 button:hover {
70+
box-shadow: 0 4px 8px rgb(0 0 0 / 15%);
71+
transform: translateY(-2px);
72+
}
73+
74+
// Heading styling
75+
.showcollectionsheet .container h2.mat-h2 {
76+
margin-bottom: 20px;
77+
font-weight: 500;
78+
color: rgb(0 0 0 / 87%);
79+
border-bottom: 1px solid rgb(0 0 0 / 12%);
80+
padding-bottom: 10px;
81+
}
82+
83+
// Table styling
84+
.showcollectionsheet .container table.mat-elevation-z1 {
85+
width: 100%;
86+
margin-bottom: 24px;
87+
box-shadow: none;
88+
border: 1px solid rgb(0 0 0 / 12%);
89+
}
90+
91+
.showcollectionsheet .container table.mat-elevation-z1 th.mat-header-cell {
92+
font-weight: 500;
93+
color: rgb(0 0 0 / 87%);
94+
background-color: rgb(0 0 0 / 4%);
95+
}
96+
97+
.showcollectionsheet .container table.mat-elevation-z1 td.mat-cell,
98+
.showcollectionsheet .container table.mat-elevation-z1 th.mat-header-cell {
99+
padding: 12px 16px;
100+
}
101+
102+
.showcollectionsheet .container table.mat-elevation-z1 tr.mat-row:hover {
103+
background-color: rgb(0 0 0 / 2%);
104+
}
105+
32106
// Dark theme form field underlines
33107
.dark-theme .container {
34108
::ng-deep .mat-form-field.mat-form-field .mat-form-field-underline {
@@ -45,10 +119,34 @@
45119
}
46120
}
47121

48-
.showcollectionsheet {
49-
.container {
50-
max-width: 73rem;
51-
}
122+
// Dark theme card styling
123+
.dark-theme .showcollectionsheet .container mat-card {
124+
background-color: #424242;
125+
}
126+
127+
// Dark theme button styling
128+
.dark-theme .showcollectionsheet .container .m-b-20 button {
129+
box-shadow: 0 2px 4px rgb(0 0 0 / 30%);
130+
}
131+
132+
// Dark theme heading styling
133+
.dark-theme .showcollectionsheet .container h2.mat-h2 {
134+
color: rgb(255 255 255 / 87%);
135+
border-bottom-color: rgb(255 255 255 / 12%);
136+
}
137+
138+
// Dark theme table styling
139+
.dark-theme .showcollectionsheet .container table.mat-elevation-z1 {
140+
border-color: rgb(255 255 255 / 12%);
141+
}
142+
143+
.dark-theme .showcollectionsheet .container table.mat-elevation-z1 th.mat-header-cell {
144+
color: rgb(255 255 255 / 87%);
145+
background-color: rgb(255 255 255 / 10%);
146+
}
147+
148+
.dark-theme .showcollectionsheet .container table.mat-elevation-z1 tr.mat-row:hover {
149+
background-color: rgb(255 255 255 / 5%);
52150
}
53151

54152
.alert {
@@ -60,13 +158,13 @@
60158
line-height: 1.43;
61159
border-radius: 4px;
62160
letter-spacing: normal;
161+
}
63162

64-
.message {
65-
padding: 8px 0;
66-
}
163+
.alert .message {
164+
padding: 8px 0;
165+
}
67166

68-
.alert-check {
69-
color: #f44336;
70-
margin-right: 2px;
71-
}
167+
.alert .alert-check {
168+
color: #f44336;
169+
margin-right: 2px;
72170
}

0 commit comments

Comments
 (0)