From 404f94128ccc503e8ba6dd4b8e2c4eee132af82d Mon Sep 17 00:00:00 2001
From: binh-dam-ibigroup <56846598+binh-dam-ibigroup@users.noreply.github.com>
Date: Thu, 14 May 2020 22:57:58 -0400
Subject: [PATCH] fix(css): Match date and mode selector styles to
trimet-mod-otp
---
.../form/connected-settings-selector-panel.js | 1 -
lib/components/form/styled.js | 182 +++++++++---------
2 files changed, 96 insertions(+), 87 deletions(-)
diff --git a/lib/components/form/connected-settings-selector-panel.js b/lib/components/form/connected-settings-selector-panel.js
index a64de2a8e..6d4f1d030 100644
--- a/lib/components/form/connected-settings-selector-panel.js
+++ b/lib/components/form/connected-settings-selector-panel.js
@@ -30,7 +30,6 @@ class ConnectedSettingsSelectorPanel extends Component {
{showUserSettings && }
div:last-child::after {
+ box-sizing: border-box;
+ color: #000;
+ content: "▼";
+ font-size: 67%;
+ pointer-events: none;
+ position: absolute;
+ right: 8px;
+ top: 10px;
}
}
${TripFormClasses.ModeSelector} {
+ font-weight: 300;
${TripFormClasses.ModeButton.Button} {
- ${commonButtonCss}
- border: 1px solid rgb(187, 187, 187);
- border-radius: 3px;
box-shadow: none;
- outline: 0;
+ outline: none;
padding: 3px;
- &.active {
- background-color: rgb(173, 216, 230);
- border: 2px solid rgb(0, 0, 0);
- }
- }
+ }
${TripFormClasses.ModeButton.Title} {
font-size: 10px;
- font-weight: 300;
line-height: 12px;
padding: 4px 0px 0px;
+
&.active {
font-weight: 600;
}
- }
+ }
}
${TripFormClasses.ModeSelector.MainRow} {
- margin: 0 -10px 18px;
- padding: 0 5px;
-
+ box-sizing: border-box;
+ font-size: 170%;
+ margin: 0px -15px 18px;
+ padding: 0px 5px;
${TripFormClasses.ModeButton.Button} {
- font-size: 200%;
- font-weight: 300;
height: 54px;
+ width: 100%;
&.active {
font-weight: 600;
}
}
}
${TripFormClasses.ModeSelector.SecondaryRow} {
- margin: 0 -10px 10px;
+ margin: 0px -15px 10px;
${TripFormClasses.ModeButton.Button} {
- font-size: 150%;
- font-weight: 600;
+ font-size: 130%;
+ font-weight: 800;
height: 46px;
+ > svg {
+ margin: 0 0.20em;
+ }
}
}
${TripFormClasses.ModeSelector.TertiaryRow} {
- margin: 0 -10px 10px;
+ font-size: 80%;
+ font-weight: 300;
+ margin: 0px -15px 10px;
+ text-align: center;
${TripFormClasses.ModeButton.Button} {
- font-size: 90%;
height: 36px;
}
}
-
${TripFormClasses.SubmodeSelector.Row} {
+ font-size: 12px;
> * {
padding: 3px 5px 3px 0px;
}
@@ -147,38 +149,46 @@ export const StyledSettingsSelectorPanel = styled(SettingsSelectorPanel)`
padding-right: 0px;
}
${TripFormClasses.ModeButton.Button} {
- padding: 6px 12px;
+ height: 35px;
}
svg,
img {
margin-left: 0px;
}
}
+ ${TripFormClasses.SubmodeSelector} {
+ ${TripFormClasses.SettingLabel} {
+ margin-bottom: 0;
+ }
+ }
${TripFormClasses.SubmodeSelector.InlineRow} {
margin: -3px 0px;
- }
-
- ${TripFormClasses.SubmodeSelector} {
- ${modeButtonButtonCss}
+ svg,
+ img {
+ height: 18px;
+ max-width: 32px;
+ }
}
`
export const StyledDateTimeSelector = styled(DateTimeSelector)`
- margin: 0 -15px 20px;
+ margin: 0 -15px 15px;
+
${TripFormClasses.DateTimeSelector.DateTimeRow} {
- margin-top: 20px;
+ margin: 20px 0px 15px;
+ input {
+ ${commonInputCss}
+ background-color: #fff;
+ border: 0;
+ border-bottom: 1px solid #000;
+ box-shadow: none;
+ outline: none;
+ text-align: center;
+ }
}
-
- input {
- ${commonInputCss}
- -webkit-appearance: textfield;
- -moz-appearance: textfield;
- appearance: textfield;
- box-shadow: none;
- font-size: 16px;
- height: 34px;
- text-align: center; /* For legacy browsers. */
+ ${TripFormClasses.ModeButton.Button} {
+ ${commonButtonCss}
+ font-size: 14px;
+ height: 35px;
}
-
- ${modeButtonButtonCss}
`