1
0
mirror of https://github.com/XFox111/TabsAsideExtension.git synced 2026-04-22 07:58:01 +03:00

Basic functional done

This commit is contained in:
Michael Gordeev
2020-03-25 14:50:50 +03:00
parent 1480e88081
commit 995c7b76dd
10 changed files with 984 additions and 384 deletions
+158 -114
View File
@@ -1,178 +1,222 @@
.aside.pane
.tabsAside.background
{
font-family: 'Segoe UI', 'Segoe MDL2 Assets';
user-select: none;
position: fixed;
z-index: 999;
right: 0px;
top: 0px;
width: 40%;
min-width: 500px;
min-height: 100%;
background-color: #f7f7f7;
border: 1px solid rgba(100, 100, 100, .5);
box-sizing: border-box;
box-shadow: 6px 0px 12px black;
transition: .2s;
z-index: 9999 !important;
background-color: rgba(255, 255, 255, .5) !important;
position: fixed !important;
top: 0 !important;
bottom: 0 !important;
right: 0 !important;
left: 0 !important;
transition: .2s !important;
opacity: 0;
}
.aside.pane > .header
.tabsAside.pane
{
font-family: 'Segoe UI', 'Segoe MDL2 Assets' !important;
user-select: none !important;
position: fixed !important;
right: 0px !important;
top: 0px !important;
bottom: 0px !important;
overflow: auto !important;
width: 40%;
min-width: 500px !important;
background-color: #f7f7f7 !important;
border: 1px solid rgba(100, 100, 100, .5) !important;
border-width: 0px 0px 0px 1px !important;
box-sizing: border-box !important;
box-shadow: 6px 0px 12px black !important;
font-size: small !important;
transform: translateX(110%); /* Pane is hidden */
transition: .2s !important;
}
.tabsAside.pane[opened]
{
margin: 20px 40px;
transform: translateX(0px) !important;
}
.aside.pane > .header > .title
/* Pane header*/
.tabsAside.pane > header
{
margin: 20px 40px !important;
}
.tabsAside.pane > header > div
{
display: grid;
grid-template-columns: 1fr auto;
display: grid !important;
grid-template-columns: 1fr auto !important;
}
.aside.pane > .header > .title > h1
.tabsAside.pane > header > div > h1
{
margin: 10px 0px;
font-weight: normal;
font-size: 21pt;
margin: 10px 0px !important;
font-weight: normal !important;
font-size: 21pt !important;
}
.aside.pane > .header > .title > button
.tabsAside.pane > header > div > button
{
margin: auto;
margin: auto !important;
}
.aside.pane > .header > .title > nav
.tabsAside.pane > header > div > nav
{
top: 70px;
right: 40px;
top: 70px !important;
right: 40px !important;
}
.aside.pane > .header > .title > nav > div
.tabsAside.pane > header > div > nav > div
{
box-shadow: 0px 4px 5px -2px rgba(100, 100, 100, .5);
box-shadow: 0px 4px 5px -2px rgba(100, 100, 100, .5) !important;
}
.aside.pane > .header > .title > nav > p
.tabsAside.pane > header > div > nav > p
{
margin: 10px;
margin: 10px !important;
}
.aside.pane > .header > hr
.tabsAside.pane > header > hr
{
border: 1px solid #8a8a8a;
border: 1px solid #8a8a8a !important;
}
.aside.pane > #content > h2
.tabsAside.pane > section > h2
{
margin: 0px 40px;
font-weight: normal;
margin: 0px 40px !important;
font-weight: normal !important;
}
.aside.pane > #content > .set > .setHeader
/* Collection header */
.tabsAside.pane > section > div
{
margin: 0px 20px;
display: grid;
grid-template-columns: 1fr auto;
transition: .2s !important;
}
.aside.pane > #content > .set > .setHeader small
.tabsAside.pane > section > div > div:first-child
{
margin: 0px 20px !important;
display: grid !important;
grid-template-columns: auto 1fr auto auto auto !important;
grid-column-gap: 10px !important;
align-items: center !important;
}
.tabsAside.pane > section > div > div:first-child > small
{
color: gray;
color: gray !important;
}
.tabsAside.pane > section > div > div:first-child > span
{
font-weight: 600 !important;
}
.tabsAside.pane > section > div > div:first-child > a
{
font-size: 11pt !important;
}
.aside.pane > #content > .set > .setHeader span
.tabsAside.pane > section > div > div:first-child > div
{
font-weight: 600;
display: none !important; /* TODO: Implement this menu */
}
.aside.pane > #content > .set > .setHeader a
{
font-size: 11pt;
font-weight: 500;
}
.aside.pane > #content > .set > .setHeader nav
{
width: 200px;
margin-top: 10px;
right: 50px;
}
.aside.pane > #content > .set > .setHeader > div:first-child
{
margin: auto 0px;
}
.aside.pane > #content > .set > .collection
{
padding: 10px 0px;
padding-left: 40px;
white-space: nowrap;
overflow: auto;
}
.aside.pane > #content > .set > .collection > .item
.tabsAside.pane > section > div > div:first-child > div > nav
{
width: 175px;
height: 148px;
margin: 5px;
background-color: #c2c2c2;
background-image: url("../images/tab_thumbnail.png");
display: inline-grid;
grid-template-rows: 1fr auto;
box-shadow: 0px 0px 5px rgba(100, 100, 100, .5);
transition: .25s;
cursor: pointer;
width: 200px !important;
margin-top: 10px !important;
right: 50px !important;
}
.aside.pane > #content > .set > .collection > .item:hover
/* Tabs collection */
.tabsAside.pane > section > div > div:last-child
{
margin: 0px 0px 0px 20px !important;
padding: 10px 40px 10px 20px !important;
white-space: nowrap !important;
overflow: auto !important;
}
.tabsAside.pane > section > div > div:last-child:hover::-webkit-scrollbar-thumb
{
visibility: visible !important;
}
.tabsAside.pane > section > div > div:last-child > div
{
width: 175px !important;
height: 148px !important;
margin: 5px !important;
background-color: #c2c2c2 !important;
background-image: url("chrome-extension://__MSG_@@extension_id__/images/tab_thumbnail.png");
display: inline-grid !important;
grid-template-rows: 1fr auto !important;
box-shadow: 0px 0px 5px rgba(100, 100, 100, .5) !important;
transition: .25s !important;
cursor: pointer !important;
}
.tabsAside.pane > section > div > div:last-child > div:hover
{
filter: brightness(120%);
box-shadow: 0px 0px 15px rgba(100, 100, 100, .5);
filter: brightness(120%) !important;
box-shadow: 0px 0px 15px rgba(100, 100, 100, .5) !important;
}
.aside.pane > #content > .set > .collection > .item > .caption
.tabsAside.pane > section > div > div:last-child > div > div
{
background-color: rgba(233, 233, 233, .75);
grid-row: 2;
display: grid;
grid-template-columns: auto 1fr auto;
background-color: rgba(233, 233, 233, .75) !important;
grid-row: 2 !important;
display: grid !important;
grid-template-columns: auto 1fr auto !important;
}
.aside.pane > #content > .set > .collection > .item > .caption > button
.tabsAside.pane > section > div > div:last-child > div > div > button
{
margin: auto;
margin-right: 5px;
visibility: hidden;
margin: auto !important;
margin-right: 5px !important;
display: none !important;
}
.aside.pane > #content > .set > .collection > .item:hover > .caption > button
.tabsAside.pane > section > div > div:last-child > div:hover > div > button
{
visibility: visible;
display: initial !important;
}
.aside.pane > #content > .set > .collection > .item > .caption > div
.tabsAside.pane > section > div > div:last-child > div > div > div
{
width: 20px;
height: 20px;
margin: 10px;
width: 20px !important;
height: 20px !important;
margin: 10px !important;
background-image: url("../images/tab_icon.png");
background-image: url("chrome-extension://__MSG_@@extension_id__/images/tab_icon.png");
background-size: 20px !important;
}
.aside.pane > #content > .set > .collection > .item > .caption > span
.tabsAside.pane > section > div > div:last-child > div > div > span
{
margin: auto 0px;
overflow: hidden !important;
margin: auto 0px !important;
margin-right: 10px !important;
}
.tabsAside.pane > section > div > div:last-child > div:hover > div > span
{
margin-right: 5px !important;
}
@media only screen and (max-width: 500px)
{
.aside.pane
.tabsAside.pane
{
right: initial;
width: 100%;
left: 0px;
min-width: initial;
width: initial !important;
left: 0px !important;
min-width: initial !important;
}
}
+50 -45
View File
@@ -1,54 +1,59 @@
.aside.pane
.tabsAside[darkmode].background
{
background-color: rgba(0, 0, 0, .5) !important;
}
.tabsAside[darkmode] .pane
{
background-color: #333333;
color: white;
background-color: #333333 !important;
color: white !important;
}
.aside button
{
color: white;
}
.aside button:hover
{
background-color: gray;
}
.aside button:active
{
background-color: dimgray;
}
.aside.pane > #content > .set > .setHeader small
{
color: lightgray;
}
.aside ::-webkit-scrollbar-thumb
{
background: gray;
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover
.tabsAside[darkmode] .pane button
{
background: dimgray;
color: white !important;
}
.tabsAside[darkmode] .pane button:hover
{
background-color: gray !important;
}
.tabsAside[darkmode] .pane button:active
{
background-color: dimgray !important;
}
.aside.pane > #content > .set > .collection > .item
{
background-color: #0c0c0c;
background-image: url("../images/tab_thumbnail_dark.png");
}
.tabsAside[darkmode] .pane > section > div > div:first-child > div:first-child > small
{
color: lightgray !important;
}
.aside.pane > #content > .set > .collection > .item > .caption
{
background-color: rgba(50, 50, 50, .75);
}
.tabsAside[darkmode] .pane ::-webkit-scrollbar-thumb
{
background: gray !important;
border-radius: 3px !important;
}
.tabsAside[darkmode] .pane ::-webkit-scrollbar-thumb:hover
{
background: dimgray !important;
}
.aside nav
{
background-color: #3f3f3f;
}
.tabsAside[darkmode] .pane > section > div > div:last-child > div
{
background-color: #0c0c0c !important;
background-image: url("chrome-extension://__MSG_@@extension_id__/images/tab_thumbnail_dark.png");
}
.aside.pane > #content > .set > .collection > .item > .caption > div
{
background-image: url("../images/tab_icon_dark.png");
}
.tabsAside[darkmode] .pane > section > div > div:last-child > div > div
{
background-color: rgba(50, 50, 50, .75) !important;
}
.tabsAside[darkmode] .pane > section > div > div:last-child > div > div > div
{
background-image: url("chrome-extension://__MSG_@@extension_id__/images/tab_icon_dark.png");
}
.tabsAside[darkmode] .pane nav
{
background-color: #3f3f3f !important;
}
+81 -98
View File
@@ -1,123 +1,106 @@
.aside ::-webkit-scrollbar
/* Custom scrollbar */
.tabsAside ::-webkit-scrollbar
{
height: 6px;
height: 6px !important;
}
.aside ::-webkit-scrollbar-thumb
.tabsAside ::-webkit-scrollbar-thumb
{
background: darkgray;
border-radius: 3px;
visibility: hidden !important;
background: darkgray !important;
border-radius: 3px !important;
}
::-webkit-scrollbar-thumb:hover
.tabsAside ::-webkit-scrollbar-thumb:hover
{
background: gray;
background: gray !important;
}
.aside a
.tabsAside::-webkit-scrollbar
{
font-family: 'Segoe UI', 'Segoe MDL2 Assets';
color: #0078d7;
}
.aside a:hover
{
text-decoration: underline;
cursor: pointer;
}
.aside .slider
{
position: relative;
display: inline-block;
border-radius: 13px;
width: 50px;
height: 26px;
background-color: #cccccc;
transition: .4s;
width: 6px !important;
}
.aside .slider:before
{
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 5px;
top: 5px;
border-radius: 50%;
margin: auto;
background-color: white;
transition: .3s;
}
.aside input:checked + .slider,
.aside input:focus + .slider
{
background-color: #0078d7;
}
.aside input:checked + .slider:before
{
transform: translateX(24px);
background-color: #3f3f3f;
}
.aside nav
.tabsAside::-webkit-scrollbar-thumb
{
font-family: 'Segoe UI';
user-select: none;
background: gray !important;
border-radius: 3px !important;
}
.tabsAside::-webkit-scrollbar-thumb:hover
{
background: darkgray !important;
}
position: absolute;
width: 250px;
/* Links style */
.tabsAside a
{
font-family: 'Segoe UI', 'Segoe MDL2 Assets' !important;
color: #0078d7 !important;
}
.tabsAside a:hover
{
text-decoration: underline !important;
cursor: pointer !important;
}
box-shadow: 0px 0px 10px black;
background-color: white;
border-radius: 5px;
.tabsAside a:visited
{
color: #0078d7 !important;
}
z-index: 10;
/* Buttons style */
.tabsAside button
{
font-family: 'Segoe MDL2 Assets' !important;
width: 32px !important;
height: 32px !important;
background-color: transparent !important;
border: none !important;
cursor: pointer !important;
}
.tabsAside button:hover
{
background-color: #c6c6c6 !important;
}
.tabsAside button:active
{
background-color: gray !important;
}
visibility: hidden;
/* Context menus style */
.tabsAside nav
{
font-family: 'Segoe UI' !important;
user-select: none !important;
position: absolute !important;
width: 250px !important;
box-shadow: 0px 0px 10px black !important;
background-color: white !important;
border-radius: 5px !important;
z-index: 10 !important;
visibility: hidden !important;
}
.aside nav button
.tabsAside nav button
{
font-family: 'Segoe UI';
cursor: pointer;
background-color: transparent;
border: none;
font-family: 'Segoe UI' !important;
cursor: pointer !important;
background-color: transparent !important;
border: none !important;
font-size: medium;
text-align: start;
font-size: medium !important;
text-align: start !important;
padding: 10px;
width: 100%;
height: initial;
padding: 10px !important;
width: 100% !important;
height: initial !important;
}
.aside button + nav:active,
.aside button:focus + nav
.tabsAside button + nav:active,
.tabsAside button:focus + nav
{
visibility: visible;
}
.aside button
{
font-family: 'Segoe MDL2 Assets';
width: 32px;
height: 32px;
background-color: transparent;
border: none;
cursor: pointer;
}
.aside button:hover
{
background-color: #c6c6c6;
}
.aside button:active
{
background-color: gray;
visibility: visible !important;
}