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
f220ef74
Commit
f220ef74
authored
Nov 24, 2017
by
Mattias J Duffy
Browse files
saving changes
parent
17a8d61b
Changes
11
Hide whitespace changes
Inline
Side-by-side
package.json
View file @
f220ef74
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
},
},
"proxy"
:
"http://localhost:3001"
,
"proxy"
:
"http://localhost:3001"
,
"scripts"
:
{
"scripts"
:
{
"build-css"
:
"node-sass-chokidar src/styles/
whatsOpen.scss
-o src/styles/"
,
"build-css"
:
"node-sass-chokidar src/styles/ -o src/styles/"
,
"watch-css"
:
"npm run build-css --watch --recursive"
,
"watch-css"
:
"npm run build-css --watch --recursive"
,
"start-js"
:
"react-scripts start"
,
"start-js"
:
"react-scripts start"
,
"start"
:
"npm-run-all -p watch-css start-js"
,
"start"
:
"npm-run-all -p watch-css start-js"
,
...
...
src/components/MapDialog.js
View file @
f220ef74
...
@@ -72,7 +72,7 @@ class MapDialog extends React.Component {
...
@@ -72,7 +72,7 @@ class MapDialog extends React.Component {
borderRadius
:
'
5px
'
,
borderRadius
:
'
5px
'
,
}}
}}
center
=
{
center
}
center
=
{
center
}
zoom
=
{
[
zoom
]
}
zoom
=
{
zoom
}
maxBounds
=
{
maxBounds
}
>
maxBounds
=
{
maxBounds
}
>
{(
facilities
.
length
>
0
)
&&
facilities
.
map
((
item
)
=>
{
{(
facilities
.
length
>
0
)
&&
facilities
.
map
((
item
)
=>
{
...
...
src/styles/_variables.scss
View file @
f220ef74
$breakpoints
:
(
xs
:
360px
,
sm
:
600px
,
md
:
900px
,
lg
:
1024px
,
xl
:
1680px
,
);
/* FacilityCard */
$fc-lg-scale
:
.8
;
$fc-sm-scale
:
.75
;
/* Favorite Button */
$favorite-button-lg-scale
:
.8
;
$favorite-button-sm-scale
:
.75
;
\ No newline at end of file
src/styles/components/appBar.css
0 → 100644
View file @
f220ef74
.app-bar
{
background-color
:
white
!important
;
box-shadow
:
0
1px
0
0
rgba
(
0
,
0
,
0
,
0.2
)
!important
;
}
.app-bar-title
{
margin-right
:
auto
!important
;
}
.app-bar-menu-button
{
display
:
none
!important
;
}
.app-bar-logo
{
width
:
30px
;
height
:
30px
;
margin-right
:
5px
;
}
.app-bar-text-color
{
color
:
#354052
;
}
@media
screen
and
(
max-width
:
600px
)
{
.app-bar-link-button
{
display
:
block
!important
;
padding
:
0
!important
;
text-align
:
left
;
}
.app-bar-menu-button
{
display
:
inherit
!important
;
}
.app-bar-hide
{
max-height
:
0
!important
;
overflow
:
hidden
;
}
.app-bar-tool-bar
{
flex-wrap
:
wrap
;
}
.app-bar-link-container
{
display
:
block
;
flex-basis
:
100%
;
transition
:
ease-in-out
2s
;
}
}
src/styles/components/cardContainer.css
0 → 100644
View file @
f220ef74
.card-container-root
{
margin
:
0
;
width
:
100%
;
display
:
flex
;
flex-wrap
:
wrap
;
}
src/styles/components/facilityCategory.css
0 → 100644
View file @
f220ef74
.facility-category-wrapper
{
display
:
flex
;
justify-content
:
center
;
}
.facility-category-icon
{
width
:
14px
!important
;
height
:
14px
!important
;
padding
:
4px
!important
;
}
.facility-category-icon
{
width
:
auto
!important
;
height
:
auto
!important
;
margin-right
:
8px
;
}
src/styles/components/facilityStatus.css
0 → 100644
View file @
f220ef74
.facility-status-text
{
align-items
:
center
;
border
:
1.5px
solid
;
border-radius
:
3px
;
padding
:
5px
;
font-weight
:
bold
!important
;
}
.facility-status-text.facility-status-closed
{
color
:
white
;
background-color
:
#f44336
;
border-color
:
#f44336
;
}
.facility-status-text.facility-status-open
{
color
:
#4caf50
;
border-color
:
#4caf50
;
}
src/styles/components/favoriteButton.scss
View file @
f220ef74
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
}
}
//Between lg and xl
//Between lg and xl
@media
screen
and
(
min-width
:
map-get
(
$breakpoints
,
lg
))
and
(
max-width
:
map-get
(
$breakpoints
,
xl
))
{
//@media screen and (min-width: map-get($breakpoints, lg)) and (max-width: map-get($breakpoints, xl)) {
@media
screen
and
(
min-width
:
1024px
)
and
(
max-width
:
1680px
)
{
.favorite-button-heart
{
.favorite-button-heart
{
height
:
24px
*
$favorite-button-lg-scale
!
important
;
height
:
24px
*
$favorite-button-lg-scale
!
important
;
width
:
24px
*
$favorite-button-lg-scale
!
important
;
width
:
24px
*
$favorite-button-lg-scale
!
important
;
...
@@ -30,7 +31,8 @@
...
@@ -30,7 +31,8 @@
}
}
//Under lg
//Under lg
@media
screen
and
(
max-width
:
map-get
(
$breakpoints
,
lg
))
{
//@media screen and (max-width: map-get($breakpoints, lg)) {
@media
screen
and
(
max-width
:
1024px
)
{
.favorite-button-heart
{
.favorite-button-heart
{
height
:
24px
*
$favorite-button-sm-scale
!
important
;
height
:
24px
*
$favorite-button-sm-scale
!
important
;
width
:
24px
*
$favorite-button-sm-scale
!
important
;
width
:
24px
*
$favorite-button-sm-scale
!
important
;
...
...
src/styles/components/textwTitle.scss
View file @
f220ef74
...
@@ -8,7 +8,8 @@
...
@@ -8,7 +8,8 @@
font-family
:
"Roboto-Medium"
;
font-family
:
"Roboto-Medium"
;
font-size
:
14px
;
font-size
:
14px
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
width
:
176px
;
width
:
100%
;
margin
:
8px
;
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
color
:
#354052
;
color
:
#354052
;
...
...
src/styles/containers/facilityCard.scss
View file @
f220ef74
...
@@ -87,7 +87,9 @@
...
@@ -87,7 +87,9 @@
}
}
//Between lg and xl
//Between lg and xl
@media
screen
and
(
min-width
:
map-get
(
$breakpoints
,
lg
))
and
(
max-width
:
map-get
(
$breakpoints
,
xl
))
{
// (min-width: 1024px) and (max-width: 1680px)
//@media screen and (min-width: map-get($breakpoints, lg)) and (max-width: map-get($breakpoints, xl)) {
@media
screen
and
(
min-width
:
1024px
)
and
(
max-width
:
1680px
)
{
.fc-root
{
.fc-root
{
width
:
250px
*
$fc-lg-scale
;
width
:
250px
*
$fc-lg-scale
;
height
:
230px
;
height
:
230px
;
...
@@ -125,7 +127,9 @@
...
@@ -125,7 +127,9 @@
}
}
//Under lg
//Under lg
@media
screen
and
(
max-width
:
map-get
(
$breakpoints
,
lg
))
{
// (max-width: 1024px)
//@media screen and (max-width: map-get($breakpoints, lg)) {
@media
screen
and
(
max-width
:
1024px
)
{
.fc-root
{
.fc-root
{
&
.fc-selected
{
&
.fc-selected
{
.fc-one-line-ellipsis
{
.fc-one-line-ellipsis
{
...
...
src/styles/whatsOpen.scss
View file @
f220ef74
...
@@ -11,4 +11,7 @@
...
@@ -11,4 +11,7 @@
@import
'./components/textwTitle'
;
@import
'./components/textwTitle'
;
@import
'./containers/facilityCard'
;
@import
'./containers/facilityCard'
;
@import
'./containers/layout'
;
@import
'./containers/layout'
;
\ No newline at end of file
.something
{
display
:
flex
;
}
\ 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