Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
49386210
Commit
49386210
authored
Aug 16, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nicer CSS and markup for room configuration forms.
parent
add3b8ef
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
57 additions
and
23 deletions
+57
-23
css/converse.css
css/converse.css
+15
-2
css/inverse.css
css/inverse.css
+18
-6
sass/_core.scss
sass/_core.scss
+11
-1
sass/inverse/_core.scss
sass/inverse/_core.scss
+4
-5
src/templates/form_checkbox.html
src/templates/form_checkbox.html
+2
-2
src/templates/form_input.html
src/templates/form_input.html
+3
-5
src/templates/form_select.html
src/templates/form_select.html
+4
-2
No files found.
css/converse.css
View file @
49386210
...
@@ -1360,10 +1360,23 @@
...
@@ -1360,10 +1360,23 @@
padding
:
1em
;
}
padding
:
1em
;
}
#converse-embedded-chat
form
.pure-form.converse-form
legend
,
#converse-embedded-chat
form
.pure-form.converse-form
legend
,
#conversejs
form
.pure-form.converse-form
legend
{
#conversejs
form
.pure-form.converse-form
legend
{
color
:
#777
;
}
color
:
#777
;
font-size
:
125%
;
}
#converse-embedded-chat
form
.pure-form.converse-form
input
[
type
=
checkbox
],
#conversejs
form
.pure-form.converse-form
input
[
type
=
checkbox
]
{
display
:
block
;
}
#converse-embedded-chat
form
.pure-form.converse-form
select
,
#converse-embedded-chat
form
.pure-form.converse-form
input
[
type
=
password
],
#converse-embedded-chat
form
.pure-form.converse-form
input
[
type
=
number
],
#converse-embedded-chat
form
.pure-form.converse-form
input
[
type
=
text
],
#conversejs
form
.pure-form.converse-form
select
,
#conversejs
form
.pure-form.converse-form
input
[
type
=
password
],
#conversejs
form
.pure-form.converse-form
input
[
type
=
number
],
#conversejs
form
.pure-form.converse-form
input
[
type
=
text
]
{
min-width
:
50%
;
}
#converse-embedded-chat
form
.pure-form.converse-form
label
,
#converse-embedded-chat
form
.pure-form.converse-form
label
,
#conversejs
form
.pure-form.converse-form
label
{
#conversejs
form
.pure-form.converse-form
label
{
margin
-top
:
1em
;
margin
:
1em
0
;
font-size
:
16px
;
}
font-size
:
16px
;
}
#converse-embedded-chat
form
.pure-form.converse-form
input
[
type
=
text
],
#converse-embedded-chat
form
.pure-form.converse-form
input
[
type
=
text
],
#converse-embedded-chat
form
.pure-form.converse-form
input
[
type
=
password
],
#converse-embedded-chat
form
.pure-form.converse-form
input
[
type
=
password
],
...
...
css/inverse.css
View file @
49386210
...
@@ -1360,10 +1360,23 @@
...
@@ -1360,10 +1360,23 @@
padding
:
1em
;
}
padding
:
1em
;
}
#converse-embedded-chat
form
.pure-form.converse-form
legend
,
#converse-embedded-chat
form
.pure-form.converse-form
legend
,
#conversejs
form
.pure-form.converse-form
legend
{
#conversejs
form
.pure-form.converse-form
legend
{
color
:
#777
;
}
color
:
#777
;
font-size
:
125%
;
}
#converse-embedded-chat
form
.pure-form.converse-form
input
[
type
=
checkbox
],
#conversejs
form
.pure-form.converse-form
input
[
type
=
checkbox
]
{
display
:
block
;
}
#converse-embedded-chat
form
.pure-form.converse-form
select
,
#converse-embedded-chat
form
.pure-form.converse-form
input
[
type
=
password
],
#converse-embedded-chat
form
.pure-form.converse-form
input
[
type
=
number
],
#converse-embedded-chat
form
.pure-form.converse-form
input
[
type
=
text
],
#conversejs
form
.pure-form.converse-form
select
,
#conversejs
form
.pure-form.converse-form
input
[
type
=
password
],
#conversejs
form
.pure-form.converse-form
input
[
type
=
number
],
#conversejs
form
.pure-form.converse-form
input
[
type
=
text
]
{
min-width
:
50%
;
}
#converse-embedded-chat
form
.pure-form.converse-form
label
,
#converse-embedded-chat
form
.pure-form.converse-form
label
,
#conversejs
form
.pure-form.converse-form
label
{
#conversejs
form
.pure-form.converse-form
label
{
margin
-top
:
1em
;
margin
:
1em
0
;
font-size
:
18px
;
}
font-size
:
18px
;
}
#converse-embedded-chat
form
.pure-form.converse-form
input
[
type
=
text
],
#converse-embedded-chat
form
.pure-form.converse-form
input
[
type
=
text
],
#converse-embedded-chat
form
.pure-form.converse-form
input
[
type
=
password
],
#converse-embedded-chat
form
.pure-form.converse-form
input
[
type
=
password
],
...
@@ -1445,10 +1458,9 @@ body {
...
@@ -1445,10 +1458,9 @@ body {
height
:
100vh
;
}
height
:
100vh
;
}
#conversejs
form
.pure-form.converse-form
{
#conversejs
form
.pure-form.converse-form
{
margin
:
1em
;
}
margin
:
1em
;
}
#conversejs
form
.pure-form.converse-form
legend
{
#conversejs
form
.pure-form.converse-form
input
[
type
=
checkbox
]
{
color
:
#777
;
}
margin-left
:
1em
;
#conversejs
form
.pure-form.converse-form
label
{
display
:
inline
;
}
margin-top
:
1em
;
}
#conversejs
form
.pure-form.converse-form
input
[
type
=
text
],
#conversejs
form
.pure-form.converse-form
input
[
type
=
text
],
#conversejs
form
.pure-form.converse-form
input
[
type
=
password
],
#conversejs
form
.pure-form.converse-form
input
[
type
=
password
],
#conversejs
form
.pure-form.converse-form
input
[
type
=
number
],
#conversejs
form
.pure-form.converse-form
input
[
type
=
number
],
...
...
sass/_core.scss
View file @
49386210
...
@@ -194,9 +194,19 @@
...
@@ -194,9 +194,19 @@
padding
:
1em
;
padding
:
1em
;
legend
{
legend
{
color
:
$text-color
;
color
:
$text-color
;
font-size
:
125%
;
}
input
[
type
=
checkbox
]
{
display
:
block
;
}
select
,
input
[
type
=
password
],
input
[
type
=
number
],
input
[
type
=
text
]
{
min-width
:
50%
;
}
}
label
{
label
{
margin
-top
:
1em
;
margin
:
1em
0
;
font-size
:
$font-size-large
;
font-size
:
$font-size-large
;
}
}
input
[
type
=
text
],
input
[
type
=
text
],
...
...
sass/inverse/_core.scss
View file @
49386210
...
@@ -39,11 +39,10 @@ body {
...
@@ -39,11 +39,10 @@ body {
form
{
form
{
&
.pure-form.converse-form
{
&
.pure-form.converse-form
{
margin
:
1em
;
margin
:
1em
;
legend
{
color
:
$text-color
;
input
[
type
=
checkbox
]
{
}
margin-left
:
1em
;
label
{
display
:
inline
;
margin-top
:
1em
;
}
}
input
[
type
=
text
],
input
[
type
=
text
],
input
[
type
=
password
],
input
[
type
=
password
],
...
...
src/templates/form_checkbox.html
View file @
49386210
<label
>
{{{label}}}
</label>
<label
class=
"checkbox"
for=
"{{{name}}}"
>
{{{label}}}
<input
name=
"{{{name}}}"
type=
"{{{type}}}"
{{{
checked
}}}
>
</label>
<input
name=
"{{{name}}}"
type=
"{{{type}}}"
{{{
checked
}}}
>
src/templates/form_input.html
View file @
49386210
{[ if (label) { ]}
<label>
<label>
{{{label}}}
{{{label}}}
</label>
<input
name=
"{{{name}}}"
type=
"{{{type}}}"
{[ } ]}
<input
name=
"{{{name}}}"
type=
"{{{type}}}"
{[
if
(
value
)
{
]}
value=
"{{{value}}}"
{[
}
]}
{[
if
(
value
)
{
]}
value=
"{{{value}}}"
{[
}
]}
{[
if
(
required
)
{
]}
class=
"required"
{[
}
]}
>
{[
if
(
required
)
{
]}
class=
"required"
{[
}
]}
>
</label>
src/templates/form_select.html
View file @
49386210
<label>
{{{label}}}
</label>
<label>
<select
name=
"{{{name}}}"
{[
if
(
multiple
)
{
]}
multiple=
"multiple"
{[
}
]}
>
{{options}}
</select>
{{{label}}}
<select
name=
"{{{name}}}"
{[
if
(
multiple
)
{
]}
multiple=
"multiple"
{[
}
]}
>
{{options}}
</select>
</label>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment