Skip to content

Commit

Permalink
Improve layout and style of primary buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauricio Uehara authored and Mauricio Uehara committed Apr 24, 2020
1 parent 2ed5287 commit 8caadb1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion jarbas/layers/elm/Reimbursement/Map/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ view model =
Mdl
[ 0 ]
model.mdl
[ Button.minifab ]
[ Button.minifab, Button.primary ]
[ Icon.i "place"
, text (translate model.lang Map)
]
Expand Down
3 changes: 2 additions & 1 deletion jarbas/layers/elm/Reimbursement/Receipt/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ view model =
Mdl
[ 1 ]
model.mdl
[ Button.minifab ]
[ Button.minifab, Button.primary ]
[ Icon.i "receipt"
, text (translate model.lang ReceiptAvailable)
]
Expand All @@ -46,6 +46,7 @@ view model =
[ 0 ]
model.mdl
[ Button.minifab
, Button.primary
, Button.onClick (SearchReceipt model.reimbursement)
, Options.cs "receipt fetch-receipt"
]
Expand Down
2 changes: 1 addition & 1 deletion jarbas/layers/elm/Reimbursement/Tweet/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ view model =
Mdl
[ 1 ]
model.mdl
[ Button.minifab ]
[ Button.minifab, Button.primary ]
[ Icon.i "share"
, text (translate model.lang RosiesTweet)
]
Expand Down
11 changes: 5 additions & 6 deletions jarbas/layers/elm/Reimbursement/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import Http
import Internationalization exposing (translate)
import Internationalization.Types exposing (Language(..), TranslationId(..))
import Material.Button as Button
import Material.Color as Color
import Material.Grid exposing (Device(..), cell, grid, size)
import Material.Icon as Icon
import Material.List as List
Expand Down Expand Up @@ -461,7 +460,7 @@ viewReimbursement lang index reimbursement =

title =
Options.styled p
[ Typography.headline, Color.text Color.primary ]
[ Typography.headline ]
[ (translate lang ReimbursementTitle) ++ (toString reimbursement.documentId) |> text ]

supplier =
Expand All @@ -487,11 +486,11 @@ viewReimbursement lang index reimbursement =
[ text (translate lang ReimbursementChamberOfDeputies) ]
]
in
[ cell [ size Desktop 6, size Tablet 4, size Phone 2 ]
[ Options.styled div [ Options.css "margin-top" "3rem" ] [ title ] ]
, cell [ size Desktop 6, size Tablet 4, size Phone 2 ]
[ cell [ size Desktop 6, size Tablet 4, size Phone 4 ]
[ title ]
, cell [ size Desktop 6, size Tablet 4, size Phone 4 ]
[ Options.styled div
[ Options.css "margin-top" "3rem", Typography.right ]
[ Typography.right ]
[ tweet, receipt, mapButton ]
]
, cell [ size Desktop 6, size Tablet 8, size Phone 4 ]
Expand Down

0 comments on commit 8caadb1

Please sign in to comment.