diff --git a/app/extensions/brave/locales/en-US/styles.properties b/app/extensions/brave/locales/en-US/styles.properties index b1ef50bb59f..d0e9427d0ba 100644 --- a/app/extensions/brave/locales/en-US/styles.properties +++ b/app/extensions/brave/locales/en-US/styles.properties @@ -5,6 +5,7 @@ adsShowBrave=Show Brave Ads browserButton=Browser Button buttons=Buttons extensionItem=Extension Item +ok=OK forms=Forms h1=This is an h1 h2=This is an h2 diff --git a/app/renderer/about/bookmarks/bookmarkTitleHeader.js b/app/renderer/about/bookmarks/bookmarkTitleHeader.js index c840e309f93..40e670022fd 100644 --- a/app/renderer/about/bookmarks/bookmarkTitleHeader.js +++ b/app/renderer/about/bookmarks/bookmarkTitleHeader.js @@ -4,13 +4,18 @@ const React = require('react') const Immutable = require('immutable') +const {StyleSheet} = require('aphrodite/no-important') // Components const ImmutableComponent = require('../../components/immutableComponent') +const BrowserButton = require('../../components/common/browserButton') // Actions const windowActions = require('../../../../js/actions/windowActions') +const globalStyles = require('../../components/styles/global') +const addBookmark = require('../../../../img/toolbar/add_bookmark_btn.svg') + class BookmarkTitleHeader extends ImmutableComponent { constructor () { super() @@ -25,13 +30,25 @@ class BookmarkTitleHeader extends ImmutableComponent { render () { return
+ <BrowserButton primaryColor smallItem l10nId='ok' onClick={'{this.props.close}'} />
+
+
<BrowserButton actionItem l10nId='done' onClick={'{this.onRemoveBookmark}'} />
diff --git a/js/webtorrent/components/torrentViewer.js b/js/webtorrent/components/torrentViewer.js
index 9502e9badfe..083192ec707 100644
--- a/js/webtorrent/components/torrentViewer.js
+++ b/js/webtorrent/components/torrentViewer.js
@@ -5,7 +5,7 @@ const {StyleSheet, css} = require('aphrodite/no-important')
const commonStyles = require('../../../app/renderer/components/styles/commonStyles')
// Components
-const Button = require('../../../app/renderer/components/common/button')
+const BrowserButton = require('../../../app/renderer/components/common/browserButton')
const TorrentFileList = require('./torrentFileList')
const TorrentStatus = require('./torrentStatus')
@@ -41,7 +41,7 @@ class TorrentViewer extends React.Component {
)
}
mainButton = (
- dispatch('stop')}
@@ -67,7 +67,7 @@ class TorrentViewer extends React.Component {
/>
)
mainButton = (
- dispatch('start')}
@@ -81,7 +81,7 @@ class TorrentViewer extends React.Component {
if (torrentIdProtocol === 'magnet:') {
saveButton = (
- dispatch('copyMagnetLink')}
@@ -89,7 +89,7 @@ class TorrentViewer extends React.Component {
)
} else {
saveButton = (
- dispatch('saveTorrentFile')}
diff --git a/less/about/bookmarks.less b/less/about/bookmarks.less
index d4b3181fa1f..61970d428ae 100644
--- a/less/about/bookmarks.less
+++ b/less/about/bookmarks.less
@@ -29,6 +29,10 @@
flex-grow: 1;
.columnHeader {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+
background: linear-gradient(to bottom, @lightGray, @veryLightGray);
border-top: 1px solid @gray;
text-align: left;
@@ -80,8 +84,14 @@
.sortableTable {
user-select: none;
+
// Custom title column (has add bookmark icon)
- th:first-of-type > div { display: block; }
+ th:first-of-type > div {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ }
+
// Bookmark last visited column
th:nth-of-type(2), td.date { width: 250px; }
td {
@@ -142,55 +152,6 @@
padding-left: 12px;
}
-.addBookmarkFolder,
-.addBookmark {
- background-color: @buttonColor;
- -webkit-mask-repeat: no-repeat;
- width: 24px;
- height: 26px;
- float: right;
- margin-right: 7px;
-}
-
-.addBookmarkFolder {
- -webkit-mask-image: url('../../img/toolbar/add_BM_folder_btn.svg');
-}
-
-.addBookmark {
- -webkit-mask-image: url('../../img/toolbar/add_bookmark_btn.svg');
- width: 20px;
- height: 20px;
-}
-
-.addBookmark,
-.addBookmarkFolder,
-.importBrowserData,
-.exportBookmarks {
- &:hover {
- background-color: #000;
- }
-}
-
-.exportBookmarks,
-.importBrowserData {
- background-color: @buttonColor;
- -webkit-mask-repeat: no-repeat;
- width: 43px;
- height: 22px;
- display: inline-block;
- vertical-align: top;
- margin: 7px 0 5px 10px;
-}
-
-
-.importBrowserData {
- -webkit-mask-image: url('../../img/toolbar/bookmarks_import.svg');
-}
-
-.exportBookmarks {
- -webkit-mask-image: url('../../img/toolbar/bookmarks_export.svg');
-}
-
// Reset styles for small breakpoints
@media (max-width: @breakpointForBookmarksPage) {
.siteDetailsPage.bookmarksManager {
diff --git a/less/about/preferences.less b/less/about/preferences.less
index 750332ba4d4..dea2c1d17bd 100644
--- a/less/about/preferences.less
+++ b/less/about/preferences.less
@@ -82,17 +82,6 @@ a {
margin: 1.2em 2px 7px;
}
-.settingsList .subtext {
- &.flashText {
- margin-top: 0;
-
- .flashInfoIcon {
- cursor: pointer;
- padding: 5px;
- }
- }
-}
-
.settingsListCopy {
color: @braveOrange;
cursor: pointer;
@@ -197,12 +186,3 @@ table.sortableTable {
height: 16px;
color: @braveOrange;
}
-
-.widevineInfo {
- line-height: 1.3em;
-
- .fa-info-circle {
- margin-left: 5px;
- cursor: pointer;
- }
-}
diff --git a/less/about/siteDetails.less b/less/about/siteDetails.less
index d594785e986..a9cd36f13e7 100644
--- a/less/about/siteDetails.less
+++ b/less/about/siteDetails.less
@@ -21,6 +21,11 @@ body {
display: flex;
align-items: center;
+ .searchWrapper {
+ display: flex;
+ align-items: center;
+ }
+
/*overridden from siteDetails.less*/
input.searchInput {
padding: 5px;
@@ -38,14 +43,6 @@ body {
position: relative;
width: 0;
}
-
- .searchInputClear {
- margin: 0;
- padding: 0;
- width: 0;
- position: relative;
- left: -25px;
- }
}
}
diff --git a/less/downloadBar.less b/less/downloadBar.less
index d62a3d87724..f5113017854 100644
--- a/less/downloadBar.less
+++ b/less/downloadBar.less
@@ -100,9 +100,9 @@
}
.downloadInfo {
- display: flex;
- margin: auto 0;
- .downloadFilename, .downloadState, .downloadOrigin {
+ .downloadFilename,
+ .downloadState,
+ .downloadOrigin {
margin: auto 0;
white-space: nowrap;
overflow: hidden;
@@ -127,63 +127,19 @@
}
.downloadActions {
- margin: 8px 0 0;
-
- .browserButton {
- font-size: 14px;
- height: auto;
- line-height: inherit;
- margin: auto 15px auto auto;
- width: auto;
-
- &.removeDownloadFromList {
- float: right;
- margin-right: 0;
- }
-
- &:hover {
- color: @highlightBlue;
- }
- }
+ margin: 6px 0 0;
}
.deleteConfirmation {
- line-height: 2;
- border-bottom: 1px solid #CCC;
- padding: 5px 0;
- margin-bottom: auto 0 10px 0;
- font-size: 12px;
-
- .confirmDeleteButton {
- font-weight: normal;
- padding: 1px;
- min-width: 50px;
- float: right;
- margin-right: -5px;
- }
+ border-bottom: 1px solid #ccc;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
}
}
}
.downloadBarButtons {
margin: auto 0;
-
- .downloadButton {
- background: url('../img/toolbar/close_download_btn.svg') center no-repeat;
- background-size: 14px 14px;
- height: 18px;
- width: 18px;
-
- &:hover {
- background: url('../img/toolbar/close_download_btn_hover.svg') center no-repeat;
- background-size: 14px 14px;
- height: 18px;
- width: 18px;
- }
-
- &.hideButton:not([disabled]):hover {
- background: @chromeControlsWarningBackground;
- }
- }
}
}
diff --git a/test/unit/app/renderer/components/download/downloadBarTest.js b/test/unit/app/renderer/components/download/downloadBarTest.js
index 675e0bd4fb9..e2ab3593a8f 100644
--- a/test/unit/app/renderer/components/download/downloadBarTest.js
+++ b/test/unit/app/renderer/components/download/downloadBarTest.js
@@ -64,6 +64,9 @@ describe('downloadsBar component', function () {
mockery.registerMock('../../../../js/l10n', {
translation: () => 'wow such title very translated'
})
+ mockery.registerMock('../../../../img/toolbar/close_download_btn.svg')
+ mockery.registerMock('../../../../img/toolbar/close_download_btn_hover.svg')
+
DownloadItem = require('../../../../../../app/renderer/components/download/downloadItem')
DownloadsBar = require('../../../../../../app/renderer/components/download/downloadsBar')
appStore = require('../../../../../../js/stores/appStoreRenderer')