Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit bfa72ff

Browse files
authored
[feature] [design] improved controls and options for layout
1 parent 4591525 commit bfa72ff

32 files changed

Lines changed: 1565 additions & 971 deletions

css/base.css

Lines changed: 32 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
:root {
2+
--accent: 250, 130, 0;
23
--black: 0, 0, 0;
34
--white: 255, 255, 255;
45
--shade-01: 38, 40, 49;
@@ -44,7 +45,6 @@
4445
--form-checkbox-radio-chcked-label: var(--gray-16);
4546
--form-checkbox-radio-disabled-label: var(--gray-04);
4647
--form-range-thumb: var(--gray-12);
47-
--accent: 0, 255, 0;
4848
--root-font-size: 14px;
4949
--radius: 0.2em;
5050
--line-width: 0.2em;
@@ -66,9 +66,10 @@
6666
--z-index-modal: 7000;
6767
--z-index-menu: 8000;
6868
--z-index-auto-suggest-list: 8000;
69+
--z-index-edge: 9000;
70+
--header-area-width: 100%;
6971
--header-shade-color: transparent;
7072
--header-shade-opacity: none;
71-
--header-height: 0;
7273
--header-search-width: 0%;
7374
--header-shade-padding-top: calc(var(--line-width) * var(--header-shade-padding-multiplier-top));
7475
--header-shade-padding-bottom: calc(var(--line-width) * var(--header-shade-padding-multiplier-bottom));
@@ -78,14 +79,13 @@
7879
--header-border-width-bottom: calc(var(--line-width) * var(--header-border-width-multiplier-bottom));
7980
--header-border-width-multiplier-top: 1;
8081
--header-border-width-multiplier-bottom: 1;
82+
--link-area-width: 100%;
8183
--background-image: none;
8284
--background-opacity: 1;
8385
--background-accent-opacity: 0;
8486
--background-blur: 0;
85-
--layout-width: calc(70vw - var(--layout-width-gutter));
86-
--layout-width-gutter: var(--gutter) * 8;
87-
--menu-border-width: 2px;
88-
--menu-border: var(--menu-border-width) solid rgb(var(--gray-02));
87+
--layout-width: 80%;
88+
--menu-border: calc(var(--line-width) * 1) solid rgb(var(--gray-03));
8989
--shadow-small: 0 2px 1px rgba(0, 0, 0, 0.1), 0 3px 2px rgba(0, 0, 0, 0.1);
9090
--shadow-medium: 0 4px 10px rgba(0, 0, 0, 0.1), 0 6px 15px rgba(0, 0, 0, 0.1);
9191
--shadow-large: 0 4px 10px rgba(0, 0, 0, 0.1), 0 6px 30px rgba(0, 0, 0, 0.1);
@@ -102,13 +102,15 @@
102102
}
103103

104104
:root.is-bookmarks-style-block {
105-
--link-height: 7em;
105+
--link-items-width: 20%;
106+
--link-items-height: 10em;
106107
--url-height: 20%;
107108
--edit-height: 30%;
108109
}
109110

110111
:root.is-bookmarks-style-list {
111-
--link-height: 4em;
112+
--link-items-width: 20%;
113+
--link-items-height: 4em;
112114
--url-height: 30%;
113115
--edit-height: 50%;
114116
}
@@ -117,10 +119,6 @@
117119
:root {
118120
--root-font-size: 16px;
119121
}
120-
121-
:root.is-bookmarks-style-block {
122-
--link-height: 9em;
123-
}
124122
}
125123

126124
::selection {
@@ -140,27 +138,40 @@ body {
140138
font-family: var(--font-regular);
141139
display: flex;
142140
flex-direction: column;
143-
height: 100vh;
141+
justify-content: center;
142+
align-items: center;
143+
min-height: 100vh;
144144
transition: background-color var(--animation-speed-fast) ease-in-out;
145145
}
146146

147-
.is-header-alignment-vertical-top body {
147+
.is-layout-scroll-past-end body {
148+
margin-bottom: 40vh;
149+
}
150+
151+
.is-layout-alignment-horizontal-left body {
152+
align-items: flex-start;
153+
}
154+
155+
.is-layout-alignment-horizontal-center body {
156+
align-items: center;
157+
}
158+
159+
.is-layout-alignment-horizontal-right body {
160+
align-items: flex-end;
161+
}
162+
163+
.is-layout-alignment-vertical-top body {
148164
justify-content: flex-start;
149165
}
150166

151-
.is-header-alignment-vertical-center body {
167+
.is-layout-alignment-vertical-center body {
152168
justify-content: center;
153169
}
154170

155-
.is-header-alignment-vertical-bottom body {
171+
.is-layout-alignment-vertical-bottom body {
156172
justify-content: flex-end;
157173
}
158174

159-
.is-bookmarks-show-link body {
160-
display: inherit;
161-
height: inherit;
162-
}
163-
164175
.is-theme-style-dark {
165176
--gray-01: var(--shade-01);
166177
--gray-02: var(--shade-02);

css/clock.css

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
flex-wrap: wrap;
1414
}
1515

16+
.is-header-items-alignment-horizontal-left .clock {
17+
justify-content: flex-start;
18+
}
19+
20+
.is-header-items-alignment-horizontal-center .clock {
21+
justify-content: center;
22+
}
23+
24+
.is-header-items-alignment-horizontal-right .clock {
25+
justify-content: flex-end;
26+
}
27+
1628
.clock-separator,
1729
.clock-hours,
1830
.clock-minutes,
@@ -27,7 +39,6 @@
2739

2840
.clock-separator {
2941
justify-content: center;
30-
/* min-width: 0.5em; */
3142
color: rgb(var(--accent));
3243
}
3344

@@ -39,14 +50,18 @@
3950
min-width: 1.25em;
4051
}
4152

42-
.clock [class^="clock-"]:not(:first-child):not([class^="clock-separator"]),
43-
.clock [class*=" clock-"]:not(:first-child):not([class*=" clock-separator"]) {
44-
margin-left: 0.2em;
53+
.is-header-items-alignment-horizontal-left .clock-item:not(:last-child) {
54+
margin-right: 0.2em;
4555
}
4656

47-
.clock [class^="clock-"]:not(:last-child):not([class^="clock-separator"]),
48-
.clock [class*=" clock-"]:not(:last-child):not([class*=" clock-separator"]) {
49-
margin-right: 0.2em;
57+
.is-header-items-alignment-horizontal-center .clock-item:not(:first-child),
58+
.is-header-items-alignment-horizontal-center .clock-item:not(:last-child) {
59+
margin-left: 0.1em;
60+
margin-right: 0.1em;
61+
}
62+
63+
.is-header-items-alignment-horizontal-right .clock-item:not(:first-child) {
64+
margin-left: 0.2em;
5065
}
5166

5267
.clock-hours {

css/container.css

Lines changed: 0 additions & 29 deletions
This file was deleted.

css/date.css

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
flex-wrap: wrap;
1414
}
1515

16+
.is-header-items-alignment-horizontal-left .date {
17+
justify-content: flex-start;
18+
}
19+
20+
.is-header-items-alignment-horizontal-center .date {
21+
justify-content: center;
22+
}
23+
24+
.is-header-items-alignment-horizontal-right .date {
25+
justify-content: flex-end;
26+
}
27+
1628
.date-separator,
1729
.date-date,
1830
.date-day,
@@ -27,7 +39,6 @@
2739

2840
.date-separator {
2941
justify-content: center;
30-
/* min-width: 0.5em; */
3142
color: rgb(var(--accent));
3243
}
3344

@@ -38,14 +49,18 @@
3849
justify-content: center;
3950
}
4051

41-
.date [class^="date-"]:not(:first-child):not([class^="date-separator"]),
42-
.date [class*=" date-"]:not(:first-child):not([class*=" date-separator"]) {
43-
margin-left: 0.2em;
52+
.is-header-items-alignment-horizontal-left .date-item:not(:last-child) {
53+
margin-right: 0.2em;
4454
}
4555

46-
.date [class^="date-"]:not(:last-child):not([class^="date-separator"]),
47-
.date [class*=" date-"]:not(:last-child):not([class*=" date-separator"]) {
48-
margin-right: 0.2em;
56+
.is-header-items-alignment-horizontal-center .date-item:not(:first-child),
57+
.is-header-items-alignment-horizontal-center .date-item:not(:last-child) {
58+
margin-left: 0.1em;
59+
margin-right: 0.1em;
60+
}
61+
62+
.is-header-items-alignment-horizontal-right .date-item:not(:first-child) {
63+
margin-left: 0.2em;
4964
}
5065

5166
.date-day {

css/edge.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.edge {
2+
background-color: rgba(var(--accent), 0.10);
3+
width: 0;
4+
height: 0;
5+
position: absolute;
6+
top: 0;
7+
left: 0;
8+
opacity: 0;
9+
border-radius: calc(var(--radius) * 2);
10+
box-shadow: inset 0 0 0 var(--line-width) rgb(var(--accent)), inset 0 0 0 calc(var(--line-width) * 2) rgba(var(--accent), 0.25), inset 0 0 0 calc(var(--line-width) * 3) rgba(var(--accent), 0.25);
11+
z-index: var(--z-index-edge);
12+
pointer-events: none;
13+
transition: opacity var(--animation-speed-fast) ease-in-out;
14+
}

css/form.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ input[type="range"][disabled]~.input-helper {
745745
.form-group {
746746
margin: 0 0 1em 0;
747747
display: inline-flex;
748-
justify-content: center;
748+
justify-content: flex-start;
749749
align-items: stretch;
750750
width: 100%;
751751
}

css/greeting.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,3 @@
2020
justify-content: center;
2121
align-items: center;
2222
}
23-
24-
.greeting-item-text {
25-
white-space: nowrap;
26-
overflow: hidden;
27-
text-overflow: ellipsis;
28-
}

0 commit comments

Comments
 (0)