Summary Files Commits Branches @commit @diff @stats
path: root / dist
diff options
context:
space:
mode:
Commite8613382bb6b109c0c29d0589b8151a1ea4ca8f3 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-04-05 14:23:10 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-04-05 14:23:10 +0800
Filesb80f0de5dffb0bf1323d9279c500442096404737 /dist
Spectre-Dark-Gruvbox-e8613382bb6b109c0c29d0589b8151a1ea4ca8f3.tar
Spectre-Dark-Gruvbox-e8613382bb6b109c0c29d0589b8151a1ea4ca8f3.tar.gz
Spectre-Dark-Gruvbox-e8613382bb6b109c0c29d0589b8151a1ea4ca8f3.zip
Parent799b21974775008c84e406da97ed7becb39d836b (diff)
add more file icon sizes
1 files changed, 89 insertions, 22 deletions
-rw-r--r--dist/spectre.css111
diff --git a/dist/spectre.css b/dist/spectre.css
index fbe0997..9847c68 100644
--- a/dist/spectre.css
+++ b/dist/spectre.css
@@ -1197,45 +1197,107 @@ textarea.form-input {
}
.file-icon {
display: inline-block;
- width: 3.2rem;
- height: 4.4rem;
+ width: 2.4rem;
+ height: 3.2rem;
background-color: transparent;
position: relative;
- border-width: 0 0 3.2rem 2rem;
+ border-width: 0 0 2.2rem 1.4rem;
border-style: solid;
border-color: #c5c5c5;
- border-radius: .3rem;
- font-size: 1rem;
+ border-radius: .2rem;
text-align: left;
}
-.file-icon::before {
+.file-icon::before,
+.file-icon::after {
position: absolute;
top: 0;
right: 0;
content: '';
- background-color: transparent;
- z-index: 2;
- width: 1.2rem;
- height: 1.2rem;
- border: 0.6rem solid #dfdfdf;
+ width: 1rem;
+ height: 1rem;
+ border: 0.5rem solid #c5c5c5;
border-right-color: transparent;
border-top-color: transparent;
+ background-color: transparent;
+ z-index: 2;
}
.file-icon::after {
content: attr(data-type);
- padding: .2rem;
- position: absolute;
- bottom: -3.2rem;
- left: -2rem;
- font-size: 1.2em;
- font-weight: 300;
+ border-color: rgba(255, 255, 255, 0.5);
+ border-bottom-left-radius: .2rem;
color: #fff;
- text-transform: lowercase;
- white-space: nowrap;
- text-overflow: clip;
- overflow: hidden;
+ font-size: 1rem;
+ text-indent: -1.6rem;
+ line-height: 3.6rem;
z-index: 3;
}
+.file-icon.file-icon-xs {
+ width: 1.2rem;
+ height: 1.6rem;
+ border-width: 0 0 1.2rem .8rem;
+}
+.file-icon.file-icon-xs::before,
+.file-icon.file-icon-xs::after {
+ width: .4rem;
+ height: .4rem;
+ border-width: .2rem;
+}
+.file-icon.file-icon-xs::after {
+ text-indent: -0.8rem;
+ line-height: 1.6rem;
+ font-size: .8rem;
+ border-radius: .1rem;
+ content: '--';
+}
+.file-icon.file-icon-sm {
+ width: 1.8rem;
+ height: 2.4rem;
+ border-width: 0 0 1.6rem 1rem;
+}
+.file-icon.file-icon-sm::before,
+.file-icon.file-icon-sm::after {
+ width: .8rem;
+ height: .8rem;
+ border-width: .4rem;
+}
+.file-icon.file-icon-sm::after {
+ text-indent: -1.2rem;
+ line-height: 2.6rem;
+ font-size: .8rem;
+}
+.file-icon.file-icon-lg {
+ width: 3.6rem;
+ height: 4.8rem;
+ border-width: 0 0 3.4rem 2.2rem;
+}
+.file-icon.file-icon-lg::before,
+.file-icon.file-icon-lg::after {
+ width: 1.4rem;
+ height: 1.4rem;
+ border-width: .7rem;
+}
+.file-icon.file-icon-lg::after {
+ text-indent: -2.6rem;
+ line-height: 6.2rem;
+ font-size: 1.2rem;
+}
+.file-icon.file-icon-xl {
+ width: 4.8rem;
+ height: 6.4rem;
+ border-width: 0 0 4.6rem 3rem;
+ border-radius: .3rem;
+}
+.file-icon.file-icon-xl::before,
+.file-icon.file-icon-xl::after {
+ width: 1.8rem;
+ height: 1.8rem;
+ border-width: .9rem;
+}
+.file-icon.file-icon-xl::after {
+ text-indent: -3.4rem;
+ line-height: 8.8rem;
+ font-size: 1.4rem;
+}
.label {
display: inline-block;
padding: .3rem .5rem;
@@ -1306,7 +1368,12 @@ textarea.form-input {
color: inherit;
text-decoration: none;
}
-.menu .menu-item a:hover {
+.menu .menu-item a:hover,
+.menu .menu-item a:focus {
+ background-color: #f4f4f4;
+}
+.menu .menu-item a:active,
+.menu .menu-item a.active {
background-color: #efefef;
}
.menu .menu-header {