Skip to content

Commit

Permalink
rice :)
Browse files Browse the repository at this point in the history
  • Loading branch information
JyyHuang committed May 23, 2024
1 parent 8c613e8 commit 54f02f6
Show file tree
Hide file tree
Showing 28 changed files with 5,599 additions and 134 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
configstore
jgit

yasb
161 changes: 152 additions & 9 deletions firefox/userChrome.css
Original file line number Diff line number Diff line change
@@ -1,24 +1,167 @@

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Background image new tab page */
* {
font-family: "Ubuntu Nerd Font";
--animation-speed: 0.2s;
--button-corner-rounding: 30px;
--urlbar-container-height: 40px !important;
--urlbar-min-height: 30px !important;
--urlbar-height: 30px !important;
--urlbar-toolbar-height: 38px !important;
--moz-hidden-unscrollable: scroll !important;
--toolbarbutton-border-radius: 8px !important;
--tabs-border-color: transparent;
}

:root {
--window: -moz-Dialog !important;
--secondary: color-mix(in srgb, currentColor 5%, -moz-Dialog) !important;
--uc-border-radius: 0px;
--uc-status-panel-spacing: 0px;
--uc-page-action-margin: 7px;
}

/* animation and effect */
#nav-bar:not([customizing]) {
visibility: visible;
margin-top: -40px;
transition-delay: 0.1s;
filter: alpha(opacity=0);
opacity: 0;
transition: visibility, ease 0.1s, margin-top, ease 0.1s, opacity, ease 0.1s,
rotate, ease 0.1s !important;
}

#nav-bar:hover,
#nav-bar:focus-within,
#urlbar[focused='true'],
#identity-box[open='true'],
#titlebar:hover + #nav-bar:not([customizing]),
#toolbar-menubar:not([inactive='true']) ~ #nav-bar:not([customizing])
{
visibility: visible;
margin-top: 0px;
filter: alpha(opacity=100);
opacity: 100;
}

#PersonalToolbar{
margin-top: 0px!important;
}

#nav-bar .toolbarbutton-1[open='true'] {
visibility: visible;
opacity: 100;
}
#PersonalToolbar .toolbarbutton-1[open='true'] {
visibility: visible;
opacity: 100;
}

:root:not([customizing]) :hover > .tabbrowser-tab:not(:hover) {
transition: blur, ease 0.1s !important;
}

:root:not([customizing]) :not(:hover) > .tabbrowser-tab {
transition: blur, ease 0.1s !important;
}

#tabbrowser-tabs .tab-label-container[customizing] {
color: transparent;
transition: ease 0.1s;
transition-delay: 0.2s;
}

/* Removes annoying buttons and spaces */
.titlebar-spacer[type="pre-tabs"], .titlebar-spacer[type="post-tabs"]{display: none !important}
#tabbrowser-tabs{border-inline-start-width: 0!important}

/* Makes some buttons nicer */
#PanelUI-menu-button, #unified-extensions-button, #reload-button, #stop-button {padding: 2px !important}
#reload-button, #stop-button{margin: 1px !important;}

#navigator-toolbox { font-family: "FiraMono Nerd Font" !important }
/* X-button */
:root {
--show-tab-close-button: none;
--show-tab-close-button-hover: -moz-inline-block;
}
.tabbrowser-tab:not([pinned]) .tab-close-button { display: var(--show-tab-close-button) !important; }
.tabbrowser-tab:not([pinned]):hover .tab-close-button { display: var(--show-tab-close-button-hover) !important }

/* tabbar */

/* Hide the secondary Tab Label
* e.g. playing indicator (the text, not the icon) */
.tab-secondary-label { display: none !important; }

:root {
--toolbarbutton-border-radius: 0 !important;
--tab-border-radius: 0 !important;
--tab-block-margin: 0 !important;
}

.tabbrowser-tab:is([visuallyselected='true'], [multiselected])
> .tab-stack
> .tab-background {
box-shadow: none !important;
}

.tab-background {
border-right: 0px solid rgba(0, 0, 0, 0) !important;
margin-left: -1px !important;
}

.tabbrowser-tab[last-visible-tab='true'] {
padding-inline-end: 0 !important;
}

#tabs-newtab-button {
padding-left: 0 !important;
}

/* multi tab selection */
#tabbrowser-tabs:not([noshadowfortests]) .tabbrowser-tab:is([multiselected])
> .tab-stack
> .tab-background:-moz-lwtheme { outline-color: var(--toolbarseparator-color) !important; }

/* remove gap after pinned tabs */
#tabbrowser-tabs[haspinnedtabs]:not([positionpinnedtabs])
> #tabbrowser-arrowscrollbox
> .tabbrowser-tab:nth-child(1 of :not([pinned], [hidden])) { margin-inline-start: 0 !important; }

/* Removes annoying border */
#navigator-toolbox{border:none !important;}

/* Removes the annoying rainbow thing from the hamburger */
#appMenu-fxa-separator{border-image:none !important;}

#PlacesToolbarItems {
justify-content: safe center !important;
justify-content: center !important;
}

#urlbar-engine-one-off-item-bookmarks {
fill: #ebebec !important;
#alltabs-button {
display: none !important;
}

#star-button[starred] {
fill: #ebebec !important;
fill: #c0caf5 !important;
}

.tab-background[selected]{ background: #001427 !important;}
.tab-background[selected]{ background: #1a1b26 !important;}

.bookmark-item{
font-size: 14px !important;
padding: 8px !important;
color: white;
font-size: 13px !important;
margin-left: 5px !important;
margin-right: 5px !important;
padding: 4px !important;
}
.bookmark-item:hover {
color: white!important;
background-color: rgba(192, 202, 245,0.3)!important; /* pale gray */
}

/* Background image new tab page */



67 changes: 55 additions & 12 deletions firefox/userContent.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,58 @@
* {
font-family: "Ubuntu Nerd Font";
}

@-moz-document url(about:home), url(about:newtab), url(about:privatebrowsing){
body {
z-index: -1 ;
position: fixed ;
top: 0 ;
left: 0 ;
background: no-repeat url(black_stones_b_w.jpg) center ;
background-color: rgba(0, 0, 0, 0.5);
background-blend-mode:luminosity;
background-size: cover ;
width: 100vw ;
height: 100vh ;

/* Newtab */
.search-inner-wrapper {
display: none !important;
}

.icon.icon-settings {
display: none !important;
}

.outer-wrapper .search-wrapper {
padding: 0px !important;
}

.logo-and-wordmark {
display: none !important;
}
body{
background-color: #15161e!important;
}

}

@-moz-document url-prefix(about:) {

/* Removes the scrollbar on some places */
body,
html {
overflow-y: auto;
}

/* Devtools */
@-moz-document url-prefix(about:devtools) {
#toolbox-container {
margin-top: 10px !important;
}

.devtools-tabbar {
background: transparent !important;
}

.devtools-tab-line {
border-radius: 0 0 5px 5px;
}

.customize-animate-enter-done,
.customize-menu,
.top-site-outer:hover,
button {
background-color: transparent !important;
}
}
}
}
Loading

0 comments on commit 54f02f6

Please sign in to comment.