Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Issue forks
socialbase-3201421
Commits
e819a27b
Commit
e819a27b
authored
Mar 16, 2021
by
Agami4
Browse files
Issue
#3203872
by agami4: Improve accordion and url alias elements
parent
e1c625ec
Changes
6
Hide whitespace changes
Inline
Side-by-side
assets/css/cards.css
View file @
e819a27b
...
...
@@ -25,6 +25,10 @@
font-size
:
1rem
;
}
summary
.card__title
{
padding-bottom
:
15px
;
}
.card__subtitle
{
font-size
:
0.75rem
;
display
:
block
;
...
...
assets/css/input-groups.css
View file @
e819a27b
...
...
@@ -47,7 +47,10 @@
}
.input-group-addon
{
-webkit-transition
:
border-color
ease-in-out
.15s
,
-webkit-box-shadow
ease-in-out
.15s
;
transition
:
border-color
ease-in-out
.15s
,
-webkit-box-shadow
ease-in-out
.15s
;
transition
:
border-color
ease-in-out
.15s
,
box-shadow
ease-in-out
.15s
;
transition
:
border-color
ease-in-out
.15s
,
box-shadow
ease-in-out
.15s
,
-webkit-box-shadow
ease-in-out
.15s
;
padding
:
6px
12px
;
font-size
:
16px
;
font-weight
:
normal
;
...
...
@@ -55,6 +58,17 @@
text-align
:
center
;
}
.input-group.input-group-expanded
.input-group-addon
{
padding
:
.75rem
.5rem
.75rem
1.25rem
;
font-size
:
.875rem
;
line-height
:
21px
;
}
.input-group.input-group-expanded
.input-group-addon
+
.form-control
{
max-width
:
240px
;
height
:
48px
;
}
.input-group-addon
:first-child
{
border-right
:
0
;
}
...
...
@@ -79,6 +93,7 @@
max-width
:
none
;
}
.form-disabled
.input-group-addon
{
background-color
:
#fff
;
.form-disabled
.input-group.input-group-expanded
,
.form-disabled
.input-group.input-group-expanded
+
.help-block
{
opacity
:
.5
;
}
components/02-atoms/cards/cards.scss
View file @
e819a27b
...
...
@@ -71,6 +71,11 @@
font-size
:
1rem
;
}
// The card title on the summary collapse block.
summary
.card__title
{
padding-bottom
:
15px
;
}
.card__subtitle
{
font-size
:
0
.75rem
;
display
:
block
;
...
...
components/03-molecules/form-elements/input-groups/input-groups.scss
View file @
e819a27b
...
...
@@ -70,6 +70,19 @@
text-align
:
center
;
}
.input-group.input-group-expanded
{
.input-group-addon
{
padding
:
.75rem
.5rem
.75rem
1
.25rem
;
font-size
:
.875rem
;
line-height
:
21px
;
+
.form-control
{
max-width
:
240px
;
height
:
48px
;
}
}
}
.input-group-addon
:first-child
{
border-right
:
0
;
}
...
...
@@ -93,6 +106,9 @@
max-width
:
none
;
}
.form-disabled
.input-group-addon
{
background-color
:
#fff
;
.form-disabled
{
.input-group.input-group-expanded
,
.input-group.input-group-expanded
+
.help-block
{
opacity
:
.5
;
}
}
\ No newline at end of file
templates/form/input--form-control.html.twig
View file @
e819a27b
...
...
@@ -26,9 +26,10 @@
]
%}
{{
attach_library
(
'socialbase/form--input-groups'
)
}}
{%
spaceless
%}
{%
if
input_group
%}
{{
attach_library
(
'socialbase/form--input-groups'
)
}}
<div
class=
"input-group"
>
{%
endif
%}
...
...
templates/system/details--collapsible.html.twig
View file @
e819a27b
...
...
@@ -18,7 +18,7 @@
#}
<details
{{
attributes.removeAttribute
(
'open'
)
.
addClass
(
'form-horizontal form-item js-form-item form-wrapper js-form-wrapper card panel panel-default'
)
}}
>
{%
-
if
title
-
%}
<summary
{{
summary_attributes.addClass
(
'card__title
card__title--underline
'
)
}}
>
<summary
{{
summary_attributes.addClass
(
'card__title'
)
}}
>
{{
title
}}
</summary>
{%
-
endif
-
%}
...
...
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