mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-06 09:41:14 -04:00
Clean view styles.
This commit is contained in:
parent
2a556e60d6
commit
17b3f097b4
5 changed files with 238 additions and 321 deletions
|
@ -1,16 +1,14 @@
|
|||
|
||||
.view-details-sized(@size) {
|
||||
|
||||
li {
|
||||
|
||||
&.item {
|
||||
.item {
|
||||
|
||||
a, a:active, a:visited {
|
||||
height: @size + 14px;
|
||||
}
|
||||
|
||||
.label, .date, .size {
|
||||
padding: ((@size - 4px)/2) 8px;
|
||||
padding: (@size/2 - 2px) 8px;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -26,21 +24,44 @@
|
|||
.label {
|
||||
margin: 0 246px 0 (@size + 32px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#view.view-details {
|
||||
|
||||
li {
|
||||
.header {
|
||||
display: list-item;
|
||||
background: #fafafa;
|
||||
border-bottom: 1px solid rgba(0,0,0,0.065);
|
||||
|
||||
&.header {
|
||||
display: list-item;
|
||||
a, a:active, a:visited {
|
||||
padding: 12px 8px;
|
||||
opacity: 0.4;
|
||||
.transition(all 0.2s ease-in-out);
|
||||
|
||||
&:hover {
|
||||
color: #555;
|
||||
opacity: 0.9;
|
||||
}
|
||||
}
|
||||
|
||||
&.item {
|
||||
background: #fff;
|
||||
img {
|
||||
display: none;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
.ascending img.ascending,
|
||||
.descending img.descending {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
|
||||
.item {
|
||||
border-bottom: 1px solid rgba(0,0,0,0.065);
|
||||
|
||||
a, a:active, a:visited {
|
||||
|
||||
|
@ -77,9 +98,8 @@
|
|||
.selector {
|
||||
margin-top: -1px;
|
||||
}
|
||||
}
|
||||
|
||||
.view-details-sized(@icon-size);
|
||||
.view-details-sized(24px);
|
||||
|
||||
&.size-16 {
|
||||
.view-details-sized(16px)
|
||||
|
|
|
@ -1,18 +1,8 @@
|
|||
|
||||
.view-grid-sized(@size) {
|
||||
|
||||
li {
|
||||
|
||||
&.item {
|
||||
|
||||
a, a:active, a:visited {
|
||||
width: @size + 182px;
|
||||
height: @size + 14px;
|
||||
}
|
||||
|
||||
.label, .date, .size {
|
||||
padding: ((@size - 4px)/2) 8px;
|
||||
}
|
||||
.label {
|
||||
padding: (@size/2 - 9px) 8px;
|
||||
}
|
||||
|
||||
.icon.square {
|
||||
|
@ -23,11 +13,6 @@
|
|||
height: @size;
|
||||
}
|
||||
}
|
||||
|
||||
.label {
|
||||
margin: 0 0 0 (@size + 8px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -35,57 +20,37 @@
|
|||
|
||||
margin: 8px;
|
||||
|
||||
li {
|
||||
|
||||
&.item {
|
||||
.item {
|
||||
float: left;
|
||||
margin: 8px;
|
||||
background: #fff;
|
||||
box-shadow: 0 1px 1px 0 rgba(0,0,0,.2);
|
||||
|
||||
a, a:active, a:visited {
|
||||
border: 1px solid rgba(0,0,0,0);
|
||||
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.2);
|
||||
|
||||
&:hover, &.hover {
|
||||
border-color: @item-border-col-hover;
|
||||
}
|
||||
}
|
||||
|
||||
// needs to be here, to not conflict with header fields
|
||||
.icon {
|
||||
padding: 8px;
|
||||
box-shadow: 0 1px 10px 0px rgba(0,0,0,0.5);
|
||||
}
|
||||
}
|
||||
|
||||
.icon.square {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
vertical-align: top;
|
||||
background: #fafafa;
|
||||
}
|
||||
|
||||
.label {
|
||||
display: block;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
width: 180px;
|
||||
}
|
||||
|
||||
.date, .size {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.view-grid-sized(@icon-size);
|
||||
|
||||
&.size-16 {
|
||||
.view-grid-sized(16px)
|
||||
}
|
||||
|
||||
&.size-24 {
|
||||
.view-grid-sized(24px)
|
||||
}
|
||||
|
||||
&.size-32 {
|
||||
.view-grid-sized(32px)
|
||||
}
|
||||
.view-grid-sized(48px);
|
||||
|
||||
&.size-16,
|
||||
&.size-24,
|
||||
&.size-32,
|
||||
&.size-48 {
|
||||
.view-grid-sized(48px)
|
||||
}
|
||||
|
|
|
@ -1,14 +1,9 @@
|
|||
|
||||
.view-icons-sized(@size) {
|
||||
|
||||
li {
|
||||
|
||||
&.item {
|
||||
|
||||
a, a:active, a:visited {
|
||||
.item {
|
||||
width: @size * 4/3;
|
||||
}
|
||||
}
|
||||
|
||||
.icon.rational {
|
||||
|
||||
|
@ -22,47 +17,26 @@
|
|||
height: @size;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@minsize: 64px;
|
||||
|
||||
|
||||
#view.view-icons {
|
||||
|
||||
margin: 8px;
|
||||
|
||||
li {
|
||||
background: #fff;
|
||||
.item {
|
||||
float: left;
|
||||
margin: 8px;
|
||||
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.2);
|
||||
|
||||
&:hover, &.hover {
|
||||
box-shadow: 0 1px 12px 0px rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
&.item {
|
||||
float: left;
|
||||
margin: 8px;
|
||||
|
||||
a, a:active, a:visited {
|
||||
min-width: @minsize * 4/3;
|
||||
}
|
||||
}
|
||||
|
||||
.icon.rational {
|
||||
display: block;
|
||||
background: #fafafa;
|
||||
|
||||
min-height: @minsize;
|
||||
|
||||
img {
|
||||
min-height: @minsize;
|
||||
}
|
||||
|
||||
.thumb {
|
||||
min-width: @minsize * 4/3;
|
||||
}
|
||||
}
|
||||
|
||||
.label {
|
||||
|
@ -72,7 +46,6 @@
|
|||
.date, .size {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.empty, .no-match {
|
||||
margin: 0 120px;
|
||||
|
@ -80,28 +53,13 @@
|
|||
height: 120px;
|
||||
}
|
||||
|
||||
.view-icons-sized(@icon-size);
|
||||
|
||||
&.size-16 {
|
||||
.view-icons-sized(16px);
|
||||
}
|
||||
|
||||
&.size-24 {
|
||||
.view-icons-sized(24px);
|
||||
}
|
||||
|
||||
&.size-32 {
|
||||
.view-icons-sized(32px);
|
||||
}
|
||||
|
||||
&.size-48 {
|
||||
.view-icons-sized(48px);
|
||||
}
|
||||
|
||||
&.size-64 {
|
||||
.view-icons-sized(64px);
|
||||
}
|
||||
.view-icons-sized(96px);
|
||||
|
||||
&.size-16,
|
||||
&.size-24,
|
||||
&.size-32,
|
||||
&.size-48,
|
||||
&.size-64,
|
||||
&.size-96 {
|
||||
.view-icons-sized(96px);
|
||||
}
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
|
||||
@item-border-col-sep: @col-border;
|
||||
|
||||
@item-background-col-hover: rgba(0,0,0,0.02);
|
||||
@item-background-col-hover: #fafafa;
|
||||
@item-border-col-hover: @col-border;
|
||||
|
||||
@item-background-col-sel: rgba(0,0,0,0.02);
|
||||
@item-border-col-sel: @col-border-strong;
|
||||
|
||||
@icon-size: 48px;
|
||||
|
||||
// @item-background-col-sel: rgba(0,0,0,0.02);
|
||||
// @item-border-col-sel: @col-border-strong;
|
||||
@item-col-sel: #fff;
|
||||
@item-background-col-sel: #42A5F5;
|
||||
@item-border-col-sel: #2196F3;
|
||||
|
||||
#selection-rect {
|
||||
display: none;
|
||||
|
@ -27,7 +27,7 @@
|
|||
margin: 0 auto;
|
||||
|
||||
a, a:active, a:visited {
|
||||
color: #333;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
@ -41,45 +41,22 @@
|
|||
li {
|
||||
position: relative;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
&.header {
|
||||
.header {
|
||||
display: none;
|
||||
background: #fafafa;
|
||||
|
||||
a, a:active, a:visited {
|
||||
padding: 12px 8px;
|
||||
opacity: 0.4;
|
||||
.transition(all 0.2s ease-in-out);
|
||||
|
||||
img {
|
||||
display: none;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
padding: 0 8px;
|
||||
}
|
||||
&:hover {
|
||||
color: #555;
|
||||
opacity: 0.9;
|
||||
}
|
||||
&.ascending img.ascending {
|
||||
display: inline;
|
||||
}
|
||||
&.descending img.descending {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.item {
|
||||
.item {
|
||||
background: #fff;
|
||||
|
||||
a, a:active, a:visited {
|
||||
display: block;
|
||||
}
|
||||
|
||||
&:hover, &.hover {
|
||||
color: @col-hover;
|
||||
background-color: @item-background-col-hover;
|
||||
background: @item-background-col-hover;
|
||||
border-color: @item-border-col-hover;
|
||||
}
|
||||
|
||||
|
@ -88,18 +65,16 @@
|
|||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.selected:not(.selecting), &.selecting:not(.selected) {
|
||||
|
||||
a, a:active, a:visited {
|
||||
background-color: @item-background-col-sel;
|
||||
background: @item-background-col-sel;
|
||||
border-color: @item-border-col-sel;
|
||||
color: @item-col-sel;
|
||||
|
||||
&:hover, &.hover {
|
||||
background-color: @item-background-col-sel;
|
||||
background: @item-background-col-sel;
|
||||
border-color: @item-border-col-sel;
|
||||
}
|
||||
color: @item-col-sel;
|
||||
}
|
||||
|
||||
.selector {
|
||||
|
@ -113,7 +88,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
&.folder-parent {
|
||||
.folder-parent {
|
||||
|
||||
.date, .size {
|
||||
display: none;
|
||||
|
@ -180,7 +155,6 @@
|
|||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.empty, .no-match {
|
||||
margin: 50px 0;
|
||||
|
|
|
@ -204,5 +204,5 @@ modulejs.define('ext/select', ['_', '$', 'core/settings', 'core/resource', 'core
|
|||
}
|
||||
|
||||
|
||||
// init();
|
||||
init();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue