Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
241 lines
4.8 KiB
CSS
Executable file
241 lines
4.8 KiB
CSS
Executable file
#download-list-empty {
|
|
height: calc(100% - 5rem);
|
|
text-align: center;
|
|
}
|
|
|
|
#dle-vertical {
|
|
height: 100%;
|
|
display: inline-block;
|
|
width: 0;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
#dle-text {
|
|
font-size: 1.8rem;
|
|
color: #1CABCB;
|
|
}
|
|
|
|
#downloadList {
|
|
font-weight: 400;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
height: calc(100% - 5rem);
|
|
}
|
|
|
|
|
|
/*
|
|
* Edit mode styles
|
|
*/
|
|
|
|
#downloads gaia-checkbox {
|
|
position: absolute;
|
|
top: 1.2rem;
|
|
/* Important is necessary to override scoped component styles */
|
|
width: 2.8rem !important;
|
|
display: none !important;
|
|
}
|
|
|
|
/**
|
|
* 1. Important required to override styles
|
|
* inside <gaia-header> <style scoped>
|
|
* Once we have ::content selector we
|
|
* can drop the <style scoped> and this
|
|
* !important won't be needed anymore.
|
|
*/
|
|
#downloads-edit-header {
|
|
display: none !important; /* 1 */
|
|
}
|
|
|
|
#downloads.edit #downloads-edit-header {
|
|
display: block !important; /* 1 */
|
|
}
|
|
|
|
#downloads.edit #downloads-header {
|
|
display: none !important; /* 1 */
|
|
}
|
|
|
|
#downloads.edit aside {
|
|
display: none;
|
|
}
|
|
|
|
#downloads.edit ul {
|
|
height: calc(100% - 5rem);
|
|
}
|
|
|
|
#downloads.edit gaia-checkbox label {
|
|
z-index: 100;
|
|
}
|
|
|
|
#downloads.edit gaia-checkbox:active label {
|
|
background: none;
|
|
}
|
|
|
|
#downloads.edit gaia-checkbox {
|
|
display: block !important;
|
|
}
|
|
|
|
#downloads.edit #downloadList li {
|
|
pointer-events: all;
|
|
margin: 0 1.5rem;
|
|
}
|
|
|
|
/* End of the styles while editing*/
|
|
|
|
#downloadList ul{
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
height: 100%;
|
|
}
|
|
|
|
#downloadList strong {
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Text */
|
|
.fileName {
|
|
padding: 1rem 6rem;
|
|
box-sizing: border-box;
|
|
}
|
|
html[dir="ltr"] .fileName { padding-left: 3.5rem; }
|
|
html[dir="rtl"] .fileName { padding-right: 3.5rem; }
|
|
|
|
.info {
|
|
font-size: 1.2rem;
|
|
padding: 0 6rem;
|
|
padding-inline-start: 3.5rem;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* List items */
|
|
#downloadList li {
|
|
margin: 0;
|
|
position: relative;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#downloadList li * {
|
|
pointer-events: none;
|
|
}
|
|
|
|
#downloadList ul li progress {
|
|
width: 100%;
|
|
}
|
|
|
|
/* Graphic content */
|
|
#downloadList aside {
|
|
margin: 1.75rem 0.5rem 0 0;
|
|
background-position: center;
|
|
position: absolute;
|
|
}
|
|
|
|
#downloadList .edit-check {
|
|
margin: 0;
|
|
position: absolute;
|
|
width: 3rem;
|
|
height: 100%;
|
|
text-align: center;
|
|
box-sizing: border-box;
|
|
padding-top: 1rem;
|
|
}
|
|
|
|
#downloadList aside.pack-end {
|
|
padding: 1.4rem;
|
|
margin: 0;
|
|
pointer-events: all;
|
|
offset-inline-end: 0;
|
|
}
|
|
|
|
/* Progress */
|
|
|
|
#downloadList ul > li progress[value] {
|
|
width: calc(100% - 0.2rem);
|
|
height: 0.5rem;
|
|
margin: 0;
|
|
background: #e7e7e7;
|
|
border: 0.1rem solid #b6b6b6;
|
|
}
|
|
|
|
#downloadList ul > li progress[value]::-moz-progress-bar {
|
|
margin: .1rem;
|
|
height: calc(100% - 0.2rem);
|
|
border-radius: 0.2rem;
|
|
background-color: #01c5ed;
|
|
}
|
|
|
|
#downloadList progress[value].pack-activity {
|
|
background-image: url(images/activity.png);
|
|
background-repeat: repeat;
|
|
background-size: auto 100%;
|
|
animation: 0.5s move infinite steps(15);
|
|
}
|
|
|
|
#downloadList ul > li[data-state="stopped"] progress,
|
|
#downloadList ul > li[data-state="succeeded"] progress {
|
|
display: none;
|
|
}
|
|
|
|
#downloadList li[data-state="succeeded"] {
|
|
pointer-events: all;
|
|
}
|
|
|
|
|
|
/*
|
|
* Conditional Download Item style
|
|
*/
|
|
|
|
/* Error icon */
|
|
#downloadList ul > li[data-state="downloading"] .download-status,
|
|
#downloadList ul > li[data-state="succeeded"] .download-status,
|
|
#downloadList ul > li[data-state="stopped"] .download-status {
|
|
display: none;
|
|
}
|
|
#downloadList ul > li[data-state="failed"] .download-status {
|
|
width: 3rem;
|
|
height: 3rem;
|
|
background: url('images/download_exclamation.png') no-repeat center center;
|
|
offset-inline-start: 0.2rem;
|
|
}
|
|
|
|
/* Progress Bar */
|
|
#downloadList ul > li[data-state="failed"] progress{
|
|
display: none;
|
|
}
|
|
|
|
/* Action in the element. */
|
|
|
|
#downloadList aside.pack-end {
|
|
width: 2.6rem;
|
|
height: 2.3rem;
|
|
padding: 0;
|
|
margin: 1.2rem;
|
|
pointer-events: all;
|
|
offset-inline-end: 0;
|
|
}
|
|
|
|
#downloadList ul > li[data-state="downloading"] .pack-end {
|
|
background-image: url('images/download_close.png');
|
|
background-repeat: no-repeat;
|
|
background-size: 2.2rem;
|
|
}
|
|
|
|
#downloadList ul > li[data-state="stopped"] .pack-end,
|
|
#downloadList ul > li[data-state="failed"] .pack-end {
|
|
background-image: url('images/download_refresh.png');
|
|
background-repeat: no-repeat;
|
|
background-size: 2.5rem 2.2rem;
|
|
}
|
|
|
|
html[dir="ltr"] #downloadList ul > li[data-state="downloading"] .pack-end,
|
|
html[dir="ltr"] #downloadList ul > li[data-state="stopped"] .pack-end,
|
|
html[dir="ltr"] #downloadList ul > li[data-state="failed"] .pack-end {
|
|
background-position: left center;
|
|
}
|
|
html[dir="rtl"] #downloadList ul > li[data-state="downloading"] .pack-end,
|
|
html[dir="rtl"] #downloadList ul > li[data-state="stopped"] .pack-end,
|
|
html[dir="rtl"] #downloadList ul > li[data-state="failed"] .pack-end {
|
|
background-position: right center;
|
|
}
|
|
|
|
#downloadList ul > li[data-state="succeeded"] .pack-end {
|
|
display: none;
|
|
}
|