Skip to content

Commit

Permalink
[FB] ESLint | Part2 Apply to components
Browse files Browse the repository at this point in the history
  • Loading branch information
surapunoyousei committed Sep 1, 2023
1 parent 6323c43 commit 1b53f4a
Show file tree
Hide file tree
Showing 12 changed files with 60 additions and 59 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -271,4 +271,5 @@ toolkit/components/uniffi-bindgen-gecko-js/components/generated/*

# Floorp's exclusion list
# userChrome.js
floorp/browser/extensions/userChromejs
floorp/browser/extensions/userChromejs/*
floorp/browser/components/calendar/*
64 changes: 32 additions & 32 deletions floorp/browser/components/notes/content/notes-bms.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

:root {
--memo-list-sidebar-width: 20vw;
--main-content-padding-to-sidebar: 2vw;
Expand All @@ -10,30 +10,30 @@
background-color: var(--in-content-box-background-odd) !important;
color: var(--in-content-page-color) !important;
}

button {
background-color: var(--in-content-box-info-background) !important;
transition: .2s ease-out;
}

button:hover,
button#memo-add:hover {
background-color: #ffffff40 !important;
}

button:active,
button#memo-add:active {
background-color: #ffffff50 !important;
}

#memo-add.selected {
background-color: #ffffff30 !important;
}

#header {
margin: 0 !important;
}

body, html {
display: flex;
min-height: 100% !important;
Expand All @@ -48,20 +48,20 @@
overflow-y: auto;
user-select: none;
}

#memo-title-input {
display: inherit;
width: 18em;
margin-bottom: 1vh;
background: var(--in-content-box-background-odd);
}

#memo-contents {
padding: 0 var(--main-content-padding-to-sidebar);
width: 100%;
height: 100%;
}

.memo-list-item {
margin: 5px;
margin-bottom: 6px;
Expand All @@ -71,19 +71,19 @@
border-radius: 5px;
transition: .2s ease-out;
}

.memo-list-item.selected {
background-color: #ffffff20;
}

.memo-list-item:hover {
background-color: #ffffff30;
}

.memo-list-item:active {
background-color: #ffffff40;
}

.memo-list-item::after {
content: "";
background: gray;
Expand All @@ -93,47 +93,47 @@
top: calc(100% + 5px);
left: -5px;
}

#memo-lists-sidebar {
height: 25vh;
}

#header-box {
display: flex;
border-bottom: solid 1px gray;
height: 3em;
}

#memo-input {
resize: none;
max-width: 100%;
width: 100%;
background: var(--in-content-box-background-odd);
}

#memo-list {
overflow: auto;
display: flex;
flex-direction: column;
height: 100%;
}

#memo-add {
margin: 0 auto;
position: absolute;
right: 24px;
}

#button-box {
padding-bottom: 0;
margin-left: auto;
}

#memo-input-box {
display: flex;
height: 90%;
}

#memo-delete {
background-image: url("chrome://global/skin/icons/delete.svg");
background-repeat: no-repeat;
Expand All @@ -145,45 +145,45 @@
max-height: 20px;
margin-left: auto;
}

#titleAndDelete {
display: flex;
}

#memo-form {
margin-top: 1vh;
height: 60%;
margin-bottom: 1vh;
}

#memo-save {
height: 2.5vw;
}

#beta {
margin: auto 1vh 1vh;
font-style: italic;
color: gray;
}

#title-box {
display: flex;
}

#html-output {
overflow: auto;
}

#button-box {
display: flex;
justify-content: space-between;
margin-top: 1vh;
}

#memo-markdown-preview {
margin-right: auto;
}

#html-output {
display: block;
border: solid 1px gray;
Expand All @@ -198,7 +198,7 @@
user-select: text;
width: 100%;
}

#offline-label {
font-weight: 600;
line-height: 1.4em;
Expand Down
2 changes: 1 addition & 1 deletion floorp/browser/components/notes/content/notes-bms.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" href="chrome://browser/skin/notes.png">
<link rel="icon" href="chrome://browser/skin/notes.png">
<script src="chrome://browser/content/notes/notes.js"></script>
<script src="chrome://browser/content/notes/showdown.min.js"></script>
<link rel="stylesheet" href="chrome://browser/content/notes/notes-bms.css">
Expand Down
2 changes: 1 addition & 1 deletion floorp/browser/components/preferences/csk.inc.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<description class="indent tip-caption" data-l10n-id="CSK-reset-description"/>
<hbox>
<label data-l10n-id="CSK-reset-label"/>
<spacer flex="1"/>
<spacer flex="1"/>
<button id="reset-CSK-button"
is="highlightable-button"
class="accessory-button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<script src="chrome://global/content/preferencesBindings.js"/>
<script src="chrome://browser/content/preferences/dialogs/manage-keyboard-shortcut.js"/>


<label id="pageLabel" data-l10n-id="select-shortcutkeyAction" class="invisible"/>
<vbox class="contentPane">
<label id="WorkspaceSelectLabel" data-l10n-id="workspace-select"/>
Expand All @@ -43,7 +43,7 @@
</menupopup>
</menulist>
</hbox>

</vbox>
<label id="shortcut-key-label" data-l10n-id="shortcut-key-label"/>
<description class="indent tip-caption" data-l10n-id="shortcut-key-description"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<script src="chrome://global/content/preferencesBindings.js"/>
<script src="chrome://browser/content/preferences/dialogs/manageWorkspace.js"/>


<label id="pageLabel" data-l10n-id="select-workspace" class="invisible"/>
<vbox class="contentPane">
<label id="WorkspaceSelectLabel" data-l10n-id="workspace-select"/>
Expand All @@ -45,7 +45,7 @@
</hbox>
<vbox>
</vbox>

<label id="WorkspaceSelectIconLabel" data-l10n-id="workspace-select-icon" class="invisible"/>
<hbox class="invisible">
<menulist class="useDocumentColors" flex="1" id="iconName">
Expand Down
4 changes: 2 additions & 2 deletions floorp/browser/components/preferences/downloads.inc.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
<checkbox id="alwaysAsk"
data-l10n-id="download-always-ask-where"
preference="browser.download.useDownloadDir"/>
<checkbox
<checkbox
data-l10n-id="download-mgr-UI"
preference="floorp.legacy.dlui.enable"/>
<checkbox
<checkbox
data-l10n-id="downloading-red-color"
preference="floorp.downloading.red.color"/>
<label><description data-l10n-id="download-notification-preferences"/></label>
Expand Down
10 changes: 5 additions & 5 deletions floorp/browser/components/preferences/workspaces.inc.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
</hbox>


## Some elements share id & with notes.inc.xhtml
## Some elements share id & with notes.inc.xhtml
<groupbox data-category="paneWorkspaces" hidden="true">
<vbox class="contentPane">
<html:h1 data-l10n-id="floorp-workspaces-title"/>
<checkbox preference="floorp.browser.workspace.closePopupAfterClick"
<checkbox preference="floorp.browser.workspace.closePopupAfterClick"
data-l10n-id="change-to-close-workspace-popup-option"/>
<checkbox preference="floorp.browser.workspace.showWorkspaceName"
data-l10n-id="show-workspace-name-option"/>
Expand All @@ -34,7 +34,7 @@
<description class="indent tip-caption" data-l10n-id="workspaces-reset-description"/>
<hbox>
<label data-l10n-id="workspaces-reset-label"/>
<spacer flex="1"/>
<spacer flex="1"/>
<button id="reset-workspaces-button"
is="highlightable-button"
class="accessory-button"
Expand All @@ -45,14 +45,14 @@
<description class="indent tip-caption" data-l10n-id="workspaces-manage-description"/>
<hbox>
<label data-l10n-id="workspaces-manage-label"/>
<spacer flex="1"/>
<spacer flex="1"/>
<button id="manageWorkspace-button"
is="highlightable-button"
class="accessory-button"
data-l10n-id="workspaces-manage-button"/>
</hbox>



<html:h2 data-l10n-id="workspaces-backup-discription"/>
<richlistbox id="workspaces-backup-list" flex="1" class="backup-list">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
color: var(--in-content-page-color) !important;
}

html {
html {
background: var(--in-content-page-background) !important;
padding: 10px;
overflow: hidden;
Expand All @@ -32,7 +32,7 @@ body {
flex: 2;
}

.name {
.name {
margin-right: auto;
flex: 2;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
<link
rel="stylesheet"
href="chrome://global/skin/in-content/common-shared.css"
type="text/css"
type="text/css"
/>

<script src="chrome://browser/content/profile-manager/profile-switcher.js" />
<link rel="localization" href="branding/brand.ftl" />
<link rel="localization" href="toolkit/about/aboutProfiles.ftl" />
Expand Down
Loading

0 comments on commit 1b53f4a

Please sign in to comment.