front fixes

This commit is contained in:
DieMyst 2020-12-09 02:41:32 +03:00
parent 31d8cf7db2
commit f41fa23303
8 changed files with 11 additions and 7 deletions

View File

@ -28,7 +28,7 @@ view model id =
in
div [ classes "fl w-100" ]
[ div [ classes "fl w-100 pb4 pt4" ]
[ div [ redFont, classes "f1 fw4 pt5" ] [ text ("Blueprint: " ++ bi.name) ]
[ div [ redFont, classes "f1 fw4 pt3 pb2" ] [ text ("Blueprint: " ++ bi.name) ]
, span [ classes "fl w-100", darkRed ] [ text bi.id ]
]
, div [ classes "fl w-100 bg-white mt2 ph4 pt3 mb5 pb3 br3" ] [ viewInfo bi ]

View File

@ -37,7 +37,7 @@ viewService : BlueprintInfo -> Html msg
viewService blueprint =
div [ classes "fl w-100 w-third-ns pr3 lucida" ]
[ a [ attribute "href" ("/blueprint/" ++ blueprint.id)
, classes "fl w-100 bg-white black mw6 mr3 mb3 hide-child pv3 pl4 br3 element-box ba b--white bw2 no-underline"
, classes "fl w-100 bg-white black mw6 mr3 mb3 hide-child pv3 pl4 br3 element-box ba b--white no-underline"
]
[ div [ classes "w-100 mb3 pt1 b f3 overflow-hidden" ] [ text blueprint.name ]
, div [ classes "w-100 mb4 fw4 gray-font" ] [ text "By ", span [classes "lucida-in normal"] [text blueprint.author] ]

View File

@ -12,7 +12,7 @@ import Palette exposing (classes, redFont)
view : Model -> Html msg
view model =
div [ classes "pt4" ]
[ div [ redFont, classes "f1 fw4 pt5 pb3" ] [ text "Developer Hub" ]
[ div [ redFont, classes "f1 fw4 pt3 pb3" ] [ text "Developer Hub" ]
, welcomeText
, div [ classes "pt4 f3 fw5 pb4" ] [ text "Featured Blueprints" ]
, Blueprints.View.view model

View File

@ -49,7 +49,7 @@ view model filter =
viewTable : List Instance -> Html msg
viewTable instances =
div [ classes "pa1 mt2 bg-white br3 overflow-auto" ]
div [ classes "pa1 bg-white br3 overflow-auto" ]
[ div [ classes "mw8-ns pa2 " ]
[ table [ classes "f6 w-100 center ws-normal-ns", attribute "cellspacing" "0" ]
[ thead []

View File

@ -37,7 +37,7 @@ signaturesView signatures =
signatureView : Signature -> Html msg
signatureView signature =
div [ classes "i fl w-100 mv2" ]
div [ classes "i f6 fl w-100 mv2" ]
[ text "fn "
, span [classes "fw5"] [text signature.name]
, text (interpolate "({0}) -> {1}" [ argumentsToString signature.arguments, outputToString signature.output_types ]) ]

View File

@ -33,7 +33,7 @@ view model id =
in
div [ classes "fl w-100 cf ph2-ns" ]
[ div [ classes "fl w-100 mb2 pt4 pb4" ]
[ div [ redFont, classes "f1 fw4 pt5" ] [ text ("Module: " ++ mi.name) ]
[ div [ redFont, classes "f1 fw4 pt3" ] [ text ("Module: " ++ mi.name) ]
]
, div [ classes "fl w-100 bg-white mt2 ph4 pt3 mb4 pb2 br3" ] [ viewInfo mi ]
, div [ classes "pt4 fw5 f3 pb4" ] [ text ("Instances (" ++ String.fromInt instanceNum ++ ")") ]

View File

@ -63,7 +63,7 @@ viewService : ModuleShortInfo -> Html msg
viewService moduleInfo =
div [ classes "fl w-100 w-third-ns pr3" ]
[ a [ attribute "href" ("/module/" ++ moduleInfo.moduleInfo.name),
classes "fl w-100 bg-white black mw6 mr2 mb3 hide-child pa2 element-box ba b--white bw1 pl3" ]
classes "fl w-100 bg-white black mw6 mr2 mb3 hide-child pa2 element-box ba b--white pl3" ]
[ p [ classes "tl di" ]
[ div [ classes "fl b w-100 mb1 fw5 overflow-hidden" ]
[ text moduleInfo.moduleInfo.name ]

View File

@ -21,6 +21,10 @@ h1 {
font-family: 'Roboto Mono', monospace;
}
.element-box {
border-width: 2px;
}
.element-box:hover {
border-color: #E11E5A;
}