Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-web
Commits
4137dd7d
Commit
4137dd7d
authored
Dec 01, 2017
by
Andrew Hrdy
Browse files
More work on mobile cards.
parent
15b43742
Pipeline
#1806
passed with stage
in 1 minute and 41 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/containers/FacilityCard.js
View file @
4137dd7d
...
...
@@ -61,7 +61,7 @@ class FacilityCard extends React.Component {
<
CardContent
className
=
{
'
fc-card-content
'
}
>
<
Grid
container
alignItems
=
{
'
center
'
}
direction
=
{
'
column
'
}
className
=
{
'
fc-small-grid-container-spacing
'
}
>
<
Grid
item
className
=
{
classnames
(
'
fc-small-grid-item-spacing
'
,
'
fc-ellipsis-container
'
)}
>
<
Grid
item
className
=
{
classnames
(
'
fc-small-grid-item-spacing
'
,
'
fc-ellipsis-container
'
,
'
fc-title-container
'
)}
>
<
Typography
type
=
{
'
subheading
'
}
align
=
{
'
center
'
}
className
=
{
classnames
(
'
fc-title
'
,
'
fc-one-line-ellipsis
'
)}
>
{
removeBrackets
(
facility
.
facility_name
)}
<
/Typography
>
...
...
src/styles/containers/facilityCard.scss
View file @
4137dd7d
...
...
@@ -60,6 +60,31 @@
padding-top
:
8px
;
}
.fc-one-line-ellipsis
{
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
}
.fc-two-line-ellipsis
{
position
:
relative
;
line-height
:
1em
;
max-height
:
2em
;
overflow
:
hidden
;
}
@supports
(
-webkit-line-clamp
:
2
)
{
.fc-two-line-ellipsis
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-
webkit-box
!
important
;
/* autoprefixer: off */
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
/* autoprefixer: on */
}
}
//Above lg
@media
screen
and
(
min-width
:
map-get
(
$breakpoints
,
lg
))
{
.fc-root
{
...
...
@@ -69,31 +94,6 @@
transform
:
scale
(
.9
);
}
}
.fc-two-line-ellipsis
{
position
:
relative
;
line-height
:
1em
;
max-height
:
2em
;
overflow
:
hidden
;
}
@supports
(
-webkit-line-clamp
:
2
)
{
.fc-two-line-ellipsis
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-
webkit-box
!
important
;
/* autoprefixer: off */
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
/* autoprefixer: on */
}
}
.fc-one-line-ellipsis
{
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
}
}
//Between lg and xl
...
...
@@ -142,14 +142,15 @@
.fc-card-content
{
flex
:
1
;
min-width
:
0
;
}
.fc-media
{
display
:
none
!
important
;
}
.fc-
logo
-container
{
margin
:
0
!
important
;
.fc-
title
-container
{
width
:
90%
;
}
.fc-extra-info
{
...
...
@@ -157,24 +158,17 @@
width
:
100%
!
important
;
padding
:
0
!
important
;
justify-content
:
center
;
font-size
:
11px
;
}
}
//Under lg
@media
screen
and
(
max-width
:
map-get
(
$breakpoints
,
lg
)
-
1px
)
{
.fc-small-grid-item-spacing
{
padding
:
0
8px
!
important
;
}
.fc-media
{
height
:
115px
*
$fc-sm-scale
;
}
.fc-logo-container
{
width
:
100px
*
$fc-sm-scale
;
height
:
100px
*
$fc-sm-scale
;
margin
-top
:
-60px
*
$fc-sm-scale
;
margin
:
0
!
important
;
border-radius
:
50%
;
border
:
5px
*
$fc-sm-scale
solid
white
;
}
...
...
@@ -184,16 +178,8 @@
height
:
100px
*
$fc-sm-scale
;
}
.fc-extra-info
{
font-size
:
11px
;
}
.fc-card-map-marker-icon
{
height
:
20px
!
important
;
width
:
20px
!
important
;
}
.fc-map-dialog
{
width
:
100%
!
important
;
}
}
\ No newline at end of file
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