]> git.plutz.net Git - bookman/blobdiff - bookmarks.css
implemented search queries, some speedup, caching
[bookman] / bookmarks.css
index 8f2ee818c790aa84c470c0d2678f0d7404093363..f905773f64e3bf2dc0f247b618a8d6a1210f1b44 100644 (file)
-body {
-  text-align: left;
-  background-color: #EEF;
-  color: #000;
+* { /* RESET */
+  margin: 0;
+  padding: 0;
+  text-decoration: none;
+  font-weight: normal;
+  color: black;
+  background-color: white;
+  box-sizing: border-box;
 }
 
-.folder {
-  column-width: 16em;
-    -moz-column-width: 16em;
-    -webkit-column-width: 16em;
-  column-gap: .5em;
-    -moz-column-gap: .5em;
-    -webkit-column-gap: .5em;
-  column-rule: 1px solid #BBB;
-    -moz-column-rule: 1px solid #BBB;
-    -webkit-column-rule: 1px solid #BBB;
+html, body {
+  background-color: #DDD;
+}
 
-  background-color: #FFF;
-  overflow: none;
+.folder, form.newfolder{
+  display: block;
+  width: 98%;
+  border: 1px solid black;
+  border-radius: .5em;
+  margin: 1em auto;
+  padding: 0;
+  overflow: hidden;
+}
 
-  padding: .1em 1em .5em 1em;
-  margin: 0em 1em 1em 0em ;
+.folder > h1 {
+  font-size: 1.25em;
+  font-weight: bold;
+  padding: .125em 1em .125em 2em;
+  border-bottom: 1px solid black;
+  background-color: #ACF;
+  border-radius: .375em .375em 0 0;
+  min-height: 1em;
+}
+.folder > h1 + a {
+  display: block;
+  position: relative;
+  top: -1.5em;
+  margin-left: 1em;
+  color: transparent;
+  width: 0; height: 0;
+}
+.folder > h1 + a:before {
+  content: '\2699';
+  color: #333;
+}
 
-  border-width: 1px;
-  border-style: solid;
-  -moz-border-radius: 1em 1em .5em .5em;
-  -webkit-border-radius: 1em 1em .5em .5em;
-  border-radius: 1em 1em .5em .5em;
+.modbookmark,
+.modfolder {
+  display: block;
+  position: fixed;
+  width: 30em;
+  min-width: 240px;
+  min-height: 3em;
+  left: 50%; top: 20%;
+  margin: -3em -15em;
+  text-align: center;
+  z-index: 3;
+  border-radius: .5em;
+  border: 1px solid black;
+  padding: .125em 0;
+  background-color: #ACF;
+  word-spacing: -.5ex;
+}
+.modbookmark:before,
+.modfolder:before {
+  display: block;
+  content: '';
+  border: 1px solid black;
+  border-radius: 0 0 .5em .5em;
+  border-top: 0px;
+  top: 1.75em; bottom: .125em; left: .5%; right: .5%;
+  position: absolute;
+  background-color: white;
+  z-index: -1;
+}
+.modbookmark + *:after,
+.modfolder + *:after {
+  content: ' ';
+  position: fixed;
+  top: 0; bottom: 0; left: 0; right: 0;
+  background-color: rgba(0,0,0,.5);
 }
+.modbookmark > *,
+.modfolder > * { word-spacing: 0; }
 
-.fName {
-  width: 100%;
-  margin: 0px 0px .2em 0px;
-  border-style: none none solid none;
-  border-width: 1px;
-  border-color: #999;
-  text-indent: 1.5em;
+.modbookmark > h1,
+.modfolder > h1 {
+  background-color: transparent;
+  text-align: left;
   font-weight: bold;
-  font-size: 1.3em;
-  color: #333;
-  -moz-column-span: all;
-  -webkit-column-span: all;
-  column-span: all;
+  padding-left: .25em;
 }
-.fName a {
-  text-decoration: none;
-  font-weight: normal;
-  color: #333;
+
+.modbookmark > .tab,
+.modfolder > .tab {
+  display: inline-block;
+  width: 33%;
+  padding: .25em;
+  border: 1px solid black;
+  border-radius: .5em .5em 0 0;
 }
-.efName {
-  width: 100%;
-  border-style: none none solid none;
-  border-width: 1px;
-  border-color: #999;
-  display: none;
-  -moz-column-span: all;
-  -webkit-column-span: all;
-  column-span: all;
+.modbookmark > .tab {
+  width: 49.5%;
 }
-.efName a {
-  text-decoration: none;
+.modbookmark > label.tab,
+.modfolder > label.tab { border-bottom: 0px; }
+.modbookmark > a.tab,
+.modfolder > a.tab { background-color: #EEE; }
+
+.modbookmark > label:nth-of-type(2),
+.modbookmark > label:nth-of-type(3),
+.modbookmark > select,
+.modfolder > label:nth-of-type(2),
+.modfolder > select,
+.modfolder > input {
+  display: block;
+  float: left;
+  text-align: left;
+  margin: 1em 0 0 1em;
+}
+.modbookmark > label:nth-of-type(2),
+.modbookmark > label:nth-of-type(3),
+.modfolder > label:nth-of-type(2) {
+  font-weight: bold;
+}
+.modbookmark > select,
+.modfolder > select {
+  width: 10em;
+  max-width: 95%;
+}
+.modbookmark > input,
+.modfolder > input {
+  width: 28em;
+  max-width: 95%;
+}
+.modbookmark > button,
+.modbookmark > select,
+.modfolder > button {
+  display: inline-block;
+  float: right;
+  margin: 1.5em .5em .5em .5em;
+  padding: 0 .5em;
+  clear: left;
 }
 
-.edButton {
-  width: 4em;
-  margin: 2px;
-  text-decoration: none;
+.bookmark {
+  position: relative;
+  width: 16em;
+  display: inline-block;
+  margin: .5em 1em;
+  white-space: nowrap;
 }
 
-.bmEdit {
+.bookmark > a.modify {
+  display: inline-block;
+  color: transparent;
+  width: .75em;
+}
+.bookmark > a.modify:before {
+  content: '\2699';
+  color: #333;
+}
+.bookmark > a.bmove {
   display: none;
-  margin: .3em 0em .3em 0em;
-  border-style: solid none solid none;
-  border-width: 1px;
-  border-color: #BBB;
-  -moz-break-inside: avoid;
-  -webkit-break-inside: avoid;
-  break-inside: avoid;
+  color: transparent;
+  overflow: hidden;
+  vertical-align: top;
+  font-size: 0;
 }
-.bmDisplay img {
-  position: relative;
-  top: 4px;
+.bookmark:hover { left: -1em; padding-left: 1em; }
+.bookmark:hover > a.bmove { display: inline-block; }
+.bookmark > a.bmove:before { color: #888; font-size: medium; }
+.bookmark > a.bmove:nth-last-of-type(2) { position: absolute; left: 0; }
+.bookmark > a.bmove:nth-last-of-type(2):before { content: '\25c0'; }
+.bookmark > a.bmove:nth-last-of-type(1):before { content: '\25b6'; }
+
+.bookmark img {
+  height: 1.25em;
+  vertical-align: text-bottom;
+  margin: 0 .5ex;
+}
+
+form.newbookmark {
+  margin: .5em 1em;
+  break-inside: avoid;
 }