Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
socialbase
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
socialbase
Commits
c39f7d59
Commit
c39f7d59
authored
3 years ago
by
serhii.myronets
Committed by
Serhii Myronets
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3261627
by agami4: Improve space of the avatar on the small teaser
parent
1572d8fc
No related branches found
No related tags found
1 merge request
!95
Issue #3261627 by agami4: Improve space of the avatar on the small teaser
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
assets/css/list.css
+37
-16
37 additions, 16 deletions
assets/css/list.css
components/02-atoms/list/list.scss
+5
-0
5 additions, 0 deletions
components/02-atoms/list/list.scss
with
42 additions
and
16 deletions
assets/css/list.css
+
37
−
16
View file @
c39f7d59
.list-item
{
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
-webkit-box-pack
:
center
;
-ms-flex-pack
:
center
;
justify-content
:
center
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
width
:
100%
;
padding-top
:
0.625rem
;
padding-bottom
:
0.625rem
;
...
...
@@ -11,32 +17,47 @@
.list-item__avatar
{
width
:
24px
;
height
:
24px
;
flex
:
0
0
24px
;
-webkit-box-flex
:
0
;
-ms-flex
:
0
0
24px
;
flex
:
0
0
24px
;
margin-right
:
10px
;
border-radius
:
50%
;
margin-top
:
2px
;
}
[
dir
=
'rtl'
]
.list-item__avatar
{
margin-right
:
0
;
margin-left
:
10px
;
}
.list-item__avatar--medium
{
width
:
44px
;
height
:
44px
;
flex-basis
:
44px
;
-ms-flex-preferred-size
:
44px
;
flex-basis
:
44px
;
}
.list-item--withlabel
{
flex-wrap
:
wrap
;
justify-content
:
flex-start
;
-ms-flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
-webkit-box-pack
:
start
;
-ms-flex-pack
:
start
;
justify-content
:
flex-start
;
}
.list-item__label
{
margin-right
:
20px
;
font-weight
:
500
;
flex-basis
:
100%
;
align-self
:
flex-start
;
-ms-flex-preferred-size
:
100%
;
flex-basis
:
100%
;
-ms-flex-item-align
:
start
;
align-self
:
flex-start
;
}
.list-item__text
{
flex-grow
:
1
;
-webkit-box-flex
:
1
;
-ms-flex-positive
:
1
;
flex-grow
:
1
;
max-width
:
100%
;
margin
:
0
;
font-size
:
.875rem
;
...
...
@@ -57,7 +78,9 @@
padding-left
:
1rem
;
padding-right
:
1rem
;
margin-bottom
:
-1px
;
justify-content
:
flex-start
;
-webkit-box-pack
:
start
;
-ms-flex-pack
:
start
;
justify-content
:
flex-start
;
}
.list-item--visibility
.form-group
label
{
...
...
@@ -65,10 +88,6 @@
cursor
:
pointer
;
}
.list-item--visibility
.form-group
.form-radio
{
z-index
:
-1
;
}
.list-item--visibility
:hover
,
.list-item--visibility
:focus-within
{
background-color
:
#e6e6e6
;
cursor
:
pointer
;
...
...
@@ -80,7 +99,8 @@
.dropdown-menu--visibility
>
.list-item--visibility
>
a
,
.dropdown-menu--visibility
>
.list-item--visibility
>
a
:hover
,
.dropdown-menu--visibility
>
.list-item--visibility
>
a
:focus
{
background-color
:
inherit
;
box-shadow
:
none
;
-webkit-box-shadow
:
none
;
box-shadow
:
none
;
outline
:
none
;
}
...
...
@@ -117,6 +137,7 @@
@media
(
min-width
:
600px
)
{
.list-item__label
{
flex-basis
:
180px
;
-ms-flex-preferred-size
:
180px
;
flex-basis
:
180px
;
}
}
This diff is collapsed.
Click to expand it.
components/02-atoms/list/list.scss
+
5
−
0
View file @
c39f7d59
...
...
@@ -51,6 +51,11 @@
margin-right
:
10px
;
border-radius
:
50%
;
margin-top
:
2px
;
// vertical alignment
[
dir
=
'rtl'
]
&
{
margin-right
:
0
;
margin-left
:
10px
;
}
}
.list-item__avatar--medium
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment