From c3a15af73f449dcf0b4502bed252ddc6ce97b3c7 Mon Sep 17 00:00:00 2001 From: Matheus Degiovani Date: Mon, 11 Sep 2017 17:13:52 -0300 Subject: [PATCH] Refactor inline styles to css classes. Remove radium. (#654) --- app/app.html | 5 +- app/components/Balance.js | 27 +- .../CreateWalletForm/ConfirmSeed/SeedEntry.js | 2 +- .../CreateWalletForm/CreateWallet.js | 2 +- app/components/Header/Header.js | 64 +- app/components/PurchaseTickets/Form.js | 128 +- app/components/SideBar/Bar.js | 2 +- app/components/StakeInfo/Display.js | 88 +- app/components/StakePools/AddForm.js | 34 +- app/components/StakePools/List.js | 40 +- app/components/TicketAutoBuyer/Form.js | 92 +- app/components/TxHistory.js | 2 +- app/components/TxHistoryRow/index.js | 3 +- app/components/VotingPrefs/Page.js | 18 +- .../AccountsPage/Accounts/AccountRow/Row.js | 2 +- app/components/views/Help.js | 8 +- app/components/views/HomePage/Page.js | 2 +- app/components/views/SettingsPage/Page.js | 48 +- app/components/views/TicketsPage/Header.js | 52 +- app/components/views/TicketsPage/Page.js | 8 +- app/components/views/TicketsPage/Tickets.js | 6 +- app/components/views/TxDetails.js | 81 +- app/components/views/ViewStyles.js | 1668 ----------------- app/containers/App.js | 13 +- app/style/AccountRow.less | 11 +- app/style/AccountsPage.less | 4 +- app/style/AgendaCard.less | 8 +- app/style/AgendaOverview.less | 3 +- app/style/Balance.less | 14 + .../fonts.css => style/Fonts.less} | 23 +- app/style/Global.less | 16 + app/style/Help.less | 30 + app/style/HistoryPage.less | 4 +- app/style/HomePage.less | 3 +- app/style/Icons.less | 56 + app/style/Loading.less | 2 +- app/style/MiscComponents.less | 13 +- app/style/NumTicketsInput.less | 8 +- .../ReactSelectGlobal.less} | 0 app/style/ReceivePage.less | 5 +- app/style/SendPage.less | 16 +- app/style/Settings.less | 90 + app/style/SideBar.less | 5 +- app/style/Snackbar.less | 39 + app/style/StakePool.less | 1226 ++++++++++++ app/style/Stakey.less | 4 +- app/style/TxDetails.less | 283 +++ app/style/TxHistory.less | 11 +- app/{ => style}/fonts/Inconsolata-Bold.ttf | Bin app/{ => style}/fonts/Inconsolata-Regular.ttf | Bin app/{ => style}/fonts/SourceSansPro-Bold.ttf | Bin .../fonts/SourceSansPro-BoldItalic.ttf | Bin .../fonts/SourceSansPro-Italic.ttf | Bin app/{ => style}/fonts/SourceSansPro-Light.ttf | Bin .../fonts/SourceSansPro-LightItalic.ttf | Bin .../fonts/SourceSansPro-Regular.ttf | Bin .../fonts/SourceSansPro-SemiBold.ttf | Bin .../fonts/SourceSansPro-SemiBoldItalic.ttf | Bin .../icons/account-download.svg | 0 .../icons/account-eye-hide.svg | 0 .../icons/account-eye-open.svg | 0 .../icons/account-rename.svg | 0 app/{components => style}/icons/add.svg | 0 .../icons/arrow-down-key-blue.svg | 0 .../icons/arrow-down-mid-blue.svg | 0 .../icons/arrow-right-gray.svg | 0 .../icons/arrow-right-key-blue.svg | 0 .../icons/arrow-right-smoke.svg | 0 .../icons/arrow-up-key-blue.svg | 0 .../icons/arrow-up-light-blue.svg | 0 .../icons/arrow-up-turquiose.svg | 0 .../icons/balance-to-maintain.svg | 0 app/{components => style}/icons/checkbox.svg | 0 .../icons/copy-to-clipboard-blue.svg | 0 .../icons/copy-to-clipboard-gray.svg | 0 app/{components => style}/icons/delete.svg | 0 app/{components => style}/icons/expiry.svg | 0 app/{components => style}/icons/img.svg | 0 .../icons/indicator-confirmed.svg | 0 .../icons/indicator-finished.svg | 0 .../icons/indicator-invalid.svg | 0 .../icons/indicator-pending.svg | 0 app/{components => style}/icons/logo.svg | 0 app/{components => style}/icons/max-fee.svg | 0 .../icons/max-per-block.svg | 0 .../icons/max-price-absolute.svg | 0 .../icons/max-price-relative.svg | 0 .../icons/menu-link-left-color.png | Bin app/{components => style}/icons/menu-logo.svg | 0 app/{components => style}/icons/minus-big.svg | 0 .../icons/minus-small.svg | 0 app/{components => style}/icons/plus-big.svg | 0 .../icons/plus-small.svg | 0 .../icons/pool-fee-address.svg | 0 app/{components => style}/icons/pool-fees.svg | 0 app/{components => style}/icons/qrcode-1.svg | 0 app/{components => style}/icons/search.svg | 0 .../icons/searchHightWidth.svg | 0 app/{components => style}/icons/split-fee.svg | 0 .../icons/stake-pool.svg | 0 .../icons/stakeySprites.png | Bin app/{components => style}/icons/stripe.svg | 0 .../tickets-agenda-card-cebab-disabled.svg | 0 .../icons/tickets-agenda-card-cebab-hover.svg | 0 .../icons/tickets-agenda-card-cebab.svg | 0 .../tickets-agenda-card-kebab-disabled.svg | 0 .../icons/tickets-agenda-card-kebab-hover.svg | 0 .../icons/tickets-agenda-card-kebab.svg | 0 .../icons/tickets-agenda-close.svg | 0 .../icons/tickets-cogs-closed.svg | 0 .../icons/tickets-cogs-opened.svg | 0 .../icons/tickets-info.svg | 0 .../icons/tickets-manage-stakepools.svg | 0 .../icons/tickets-ticket.svg | 0 .../icons/transparent.png | Bin .../icons/voting-address.svg | 0 .../icons/wallet-blue.svg | 0 .../icons/wallet-gray.svg | 0 .../icons/wallet-smoke.svg | 0 .../icons/wallet-turquoise.svg | 0 package.json | 2 - public/css/app.global.css | 37 - 122 files changed, 2120 insertions(+), 2188 deletions(-) delete mode 100644 app/components/views/ViewStyles.js create mode 100644 app/style/Balance.less rename app/{components/fonts.css => style/Fonts.less} (56%) create mode 100644 app/style/Global.less create mode 100644 app/style/Help.less create mode 100644 app/style/Icons.less rename app/{components/react-select.global.css => style/ReactSelectGlobal.less} (100%) create mode 100644 app/style/Settings.less create mode 100644 app/style/Snackbar.less create mode 100644 app/style/TxDetails.less rename app/{ => style}/fonts/Inconsolata-Bold.ttf (100%) rename app/{ => style}/fonts/Inconsolata-Regular.ttf (100%) rename app/{ => style}/fonts/SourceSansPro-Bold.ttf (100%) rename app/{ => style}/fonts/SourceSansPro-BoldItalic.ttf (100%) rename app/{ => style}/fonts/SourceSansPro-Italic.ttf (100%) rename app/{ => style}/fonts/SourceSansPro-Light.ttf (100%) rename app/{ => style}/fonts/SourceSansPro-LightItalic.ttf (100%) rename app/{ => style}/fonts/SourceSansPro-Regular.ttf (100%) rename app/{ => style}/fonts/SourceSansPro-SemiBold.ttf (100%) rename app/{ => style}/fonts/SourceSansPro-SemiBoldItalic.ttf (100%) rename app/{components => style}/icons/account-download.svg (100%) rename app/{components => style}/icons/account-eye-hide.svg (100%) rename app/{components => style}/icons/account-eye-open.svg (100%) rename app/{components => style}/icons/account-rename.svg (100%) rename app/{components => style}/icons/add.svg (100%) rename app/{components => style}/icons/arrow-down-key-blue.svg (100%) rename app/{components => style}/icons/arrow-down-mid-blue.svg (100%) rename app/{components => style}/icons/arrow-right-gray.svg (100%) rename app/{components => style}/icons/arrow-right-key-blue.svg (100%) rename app/{components => style}/icons/arrow-right-smoke.svg (100%) rename app/{components => style}/icons/arrow-up-key-blue.svg (100%) rename app/{components => style}/icons/arrow-up-light-blue.svg (100%) rename app/{components => style}/icons/arrow-up-turquiose.svg (100%) rename app/{components => style}/icons/balance-to-maintain.svg (100%) rename app/{components => style}/icons/checkbox.svg (100%) rename app/{components => style}/icons/copy-to-clipboard-blue.svg (100%) rename app/{components => style}/icons/copy-to-clipboard-gray.svg (100%) rename app/{components => style}/icons/delete.svg (100%) rename app/{components => style}/icons/expiry.svg (100%) rename app/{components => style}/icons/img.svg (100%) rename app/{components => style}/icons/indicator-confirmed.svg (100%) rename app/{components => style}/icons/indicator-finished.svg (100%) rename app/{components => style}/icons/indicator-invalid.svg (100%) rename app/{components => style}/icons/indicator-pending.svg (100%) rename app/{components => style}/icons/logo.svg (100%) rename app/{components => style}/icons/max-fee.svg (100%) rename app/{components => style}/icons/max-per-block.svg (100%) rename app/{components => style}/icons/max-price-absolute.svg (100%) rename app/{components => style}/icons/max-price-relative.svg (100%) rename app/{components => style}/icons/menu-link-left-color.png (100%) rename app/{components => style}/icons/menu-logo.svg (100%) rename app/{components => style}/icons/minus-big.svg (100%) rename app/{components => style}/icons/minus-small.svg (100%) rename app/{components => style}/icons/plus-big.svg (100%) rename app/{components => style}/icons/plus-small.svg (100%) rename app/{components => style}/icons/pool-fee-address.svg (100%) rename app/{components => style}/icons/pool-fees.svg (100%) rename app/{components => style}/icons/qrcode-1.svg (100%) rename app/{components => style}/icons/search.svg (100%) rename app/{components => style}/icons/searchHightWidth.svg (100%) rename app/{components => style}/icons/split-fee.svg (100%) rename app/{components => style}/icons/stake-pool.svg (100%) rename app/{components => style}/icons/stakeySprites.png (100%) rename app/{components => style}/icons/stripe.svg (100%) rename app/{components => style}/icons/tickets-agenda-card-cebab-disabled.svg (100%) rename app/{components => style}/icons/tickets-agenda-card-cebab-hover.svg (100%) rename app/{components => style}/icons/tickets-agenda-card-cebab.svg (100%) rename app/{components => style}/icons/tickets-agenda-card-kebab-disabled.svg (100%) rename app/{components => style}/icons/tickets-agenda-card-kebab-hover.svg (100%) rename app/{components => style}/icons/tickets-agenda-card-kebab.svg (100%) rename app/{components => style}/icons/tickets-agenda-close.svg (100%) rename app/{components => style}/icons/tickets-cogs-closed.svg (100%) rename app/{components => style}/icons/tickets-cogs-opened.svg (100%) rename app/{components => style}/icons/tickets-info.svg (100%) rename app/{components => style}/icons/tickets-manage-stakepools.svg (100%) rename app/{components => style}/icons/tickets-ticket.svg (100%) rename app/{components => style}/icons/transparent.png (100%) rename app/{components => style}/icons/voting-address.svg (100%) rename app/{components => style}/icons/wallet-blue.svg (100%) rename app/{components => style}/icons/wallet-gray.svg (100%) rename app/{components => style}/icons/wallet-smoke.svg (100%) rename app/{components => style}/icons/wallet-turquoise.svg (100%) delete mode 100644 public/css/app.global.css diff --git a/app/app.html b/app/app.html index ba8032f978..d5c053badc 100644 --- a/app/app.html +++ b/app/app.html @@ -2,7 +2,8 @@ - + + Decrediton - +