Skip to content

Commit 187cdb3

Browse files
committed
formpane css and mobile
1 parent 6f7b52a commit 187cdb3

6 files changed

Lines changed: 423 additions & 254 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# solid-panes
2-
32
A set of core solid-compatible applets based on solid-ui
43

54
These are a set of interlinked applications, or parts of applications,
@@ -128,4 +127,8 @@ intended alternating light/dark nested backgrounds.
128127
Consider assigning the class after appending newTable into
129128
its parent table, or pass the parent table (or current nesting depth) into objectTree() so the decision can be made reliably. can you help me fix this without removing the dark altering
130129

131-
* GPT-5.4 Model: Make this (n3Pane) look good on mobile by indenting the lines that wrap.
130+
* GPT-5.4 Model: Make this (n3Pane) look good on mobile by indenting the lines that wrap.
131+
132+
* GPT-5.4 Model: Generate TypeScript types for the default pane.
133+
134+
* GPT-5.4 Model: Add a compatibility shim in the form pane for mixed `ui:Group` plus field typing.

src/form/formPane.css

Lines changed: 106 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,120 @@
1+
.formPane a {
2+
color: var(--color-text-link, #3b5998);
3+
text-decoration: none;
4+
}
5+
6+
.formPane a:link {
7+
color: var(--color-text-link, #3b5998);
8+
text-decoration: none;
9+
}
10+
11+
.formPane a:visited {
12+
color: var(--color-text-link-visited, #3b5998);
13+
text-decoration: none;
14+
}
15+
16+
.formPane a:hover {
17+
color: var(--color-text-link-hover, #3b5998);
18+
font-weight: bold;
19+
}
20+
21+
.formPane a:active {
22+
color: var(--color-text-link-active, #888);
23+
text-decoration: none;
24+
}
25+
26+
.formPane__message,
127
.formPaneMessage {
228
color: #666;
329
margin: var(--spacing-xs, 0.5em) 0;
430
padding: var(--spacing-xs, 0.35em) var(--spacing-xs, 0.5em);
531
}
632

7-
.formPaneMessageInfo {
33+
.formPane__message--info {
834
background-color: var(--color-main-block-bg, #eee);
935
}
1036

11-
.formPaneMessageError {
37+
.formPane__message--error {
1238
background-color: var(--color-log-error-bg, #fee);
1339
}
1440

15-
.formPaneEditButton {
16-
padding: var(--spacing-xs, 0.5em);
17-
border: .5em solid white;
41+
.formPane__editButton {
42+
margin-left: auto;
43+
align-self: center;
44+
padding: var(--spacing-xs, 0.5rem);
45+
border: .5rem solid white;
1846
font-size: 100%;
19-
float: right;
47+
float: none;
48+
}
49+
50+
.formPane .formPane__mobileTextareaValue > div {
51+
display: block;
52+
min-width: 0;
53+
position: relative;
54+
}
55+
56+
.formPane .formPane__mobileTextareaValue > div > textarea {
57+
box-sizing: border-box;
58+
max-width: 100%;
59+
min-width: 0;
60+
width: 100%;
61+
}
62+
63+
.formPane .formPane__mobileTextareaValue > div > button[type='button'] {
64+
float: none !important;
65+
position: absolute;
66+
right: 0;
67+
top: 0;
68+
}
69+
70+
.formPane[data-layout='mobile'] .formPane__mobileTextareaRow {
71+
flex-direction: column !important;
72+
align-items: stretch;
73+
}
74+
75+
.formPane[data-layout='mobile'] .formPane__mobileTextareaLabel {
76+
width: auto !important;
77+
padding-bottom: 0;
78+
}
79+
80+
.formPane[data-layout='mobile'] .formPane__mobileTextareaValue {
81+
box-sizing: border-box;
82+
min-width: 0;
83+
padding-right: var(--spacing-sm, 0.75rem);
84+
width: 100%;
85+
}
86+
87+
.formPane[data-layout='mobile'] .formPane__mobileTextareaValue textarea {
88+
box-sizing: border-box;
89+
margin-left: 0 !important;
90+
margin-right: 0 !important;
91+
max-width: 100%;
92+
width: 100%;
93+
}
94+
95+
@media (max-width: 960px) {
96+
.formPane .formPane__mobileTextareaRow {
97+
flex-direction: column !important;
98+
align-items: stretch;
99+
}
100+
101+
.formPane .formPane__mobileTextareaLabel {
102+
width: auto !important;
103+
padding-bottom: 0;
104+
}
105+
106+
.formPane .formPane__mobileTextareaValue {
107+
box-sizing: border-box;
108+
min-width: 0;
109+
padding-right: var(--spacing-sm, 0.75rem);
110+
width: 100%;
111+
}
112+
113+
.formPane .formPane__mobileTextareaValue textarea {
114+
box-sizing: border-box;
115+
margin-left: 0 !important;
116+
margin-right: 0 !important;
117+
max-width: 100%;
118+
width: 100%;
119+
}
20120
}

src/form/pane.js

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

0 commit comments

Comments
 (0)