فهرست منبع

update styles

Gerald 9 سال پیش
والد
کامیت
dbfa5d0411
3فایلهای تغییر یافته به همراه82 افزوده شده و 82 حذف شده
  1. 1 1
      src/options/components/main.html
  2. 71 70
      src/options/style.css
  3. 10 11
      src/popup/style.css

+ 1 - 1
src/options/components/main.html

@@ -1,7 +1,7 @@
 <div class="main">
 <div class="main">
   <aside>
   <aside>
     <img src="/images/icon128.png">
     <img src="/images/icon128.png">
-    <h2 v-text="'extName'|i18n"></h2>
+    <h1 v-text="'extName'|i18n"></h1>
     <div class="line">2013-2016</div>
     <div class="line">2013-2016</div>
     <hr>
     <hr>
     <div class=sidemenu>
     <div class=sidemenu>

+ 71 - 70
src/options/style.css

@@ -3,20 +3,20 @@
   padding: 0;
   padding: 0;
   box-sizing: border-box;
   box-sizing: border-box;
 }
 }
-html,
-body {
+html {
   height: 100%;
   height: 100%;
+  font: 14px menu;
   background: #eee;
   background: #eee;
-  font: menu;
-  font-size: 13px;
+}
+body {
+  height: 100%;
 }
 }
 h1 {
 h1 {
   font-size: 1.5rem;
   font-size: 1.5rem;
-  text-shadow: #999 3px 3px 5px;
 }
 }
 h1, h2 {
 h1, h2 {
-  margin-top: 1rem;
-  margin-bottom: .5rem;
+  margin-top: .5em;
+  margin-bottom: .5em;
 }
 }
 button {
 button {
   padding: 0 .5rem;
   padding: 0 .5rem;
@@ -24,7 +24,8 @@ button {
 a {
 a {
   color: dodgerblue;
   color: dodgerblue;
 }
 }
-textarea, input[type=text] {
+textarea,
+input[type=text] {
   width: 100%;
   width: 100%;
 }
 }
 input[disabled] ~ * {
 input[disabled] ~ * {
@@ -57,40 +58,40 @@ hr {
   position: absolute;
   position: absolute;
   top: 100%;
   top: 100%;
   right: 0;
   right: 0;
-  width: 180px;
-  margin-top: 5px;
-  padding: 1em;
+  width: 13rem;
+  margin-top: .4rem;
+  padding: 1rem;
   background: #f8f8f8;
   background: #f8f8f8;
-  border-radius: 4px;
-  box-shadow: 1px 2px 2px gray;
+  border-radius: .3rem;
+  box-shadow: .1rem .2rem .2rem gray;
   z-index: 10;
   z-index: 10;
 }
 }
 
 
 .main {
 .main {
   position: relative;
   position: relative;
-  max-width: 900px;
+  max-width: 65rem;
   height: 100%;
   height: 100%;
   margin: 0 auto;
   margin: 0 auto;
 }
 }
 aside {
 aside {
   position: absolute;
   position: absolute;
   background: #fafafa;
   background: #fafafa;
-  top: 50px;
+  top: 3rem;
   left: 0;
   left: 0;
-  width: 200px;
-  padding: 10px 10px 0;
+  width: 14rem;
+  padding: 1rem 1rem 0;
   border: 1px solid darkgray;
   border: 1px solid darkgray;
-  border-radius: 10px 0 0 10px;
   border-right: none;
   border-right: none;
+  border-radius: 1rem 0 0 1rem;
   text-align: right;
   text-align: right;
 }
 }
 aside img {
 aside img {
-  width: 64px;
+  width: 5rem;
 }
 }
 .sidemenu > a {
 .sidemenu > a {
   display: block;
   display: block;
-  line-height: 2.5em;
-  font-size: 1.17em;
+  line-height: 2.5rem;
+  font-size: 1rem;
   font-weight: bold;
   font-weight: bold;
   text-decoration: none;
   text-decoration: none;
   color: gray;
   color: gray;
@@ -102,23 +103,23 @@ aside img {
 .content {
 .content {
   position: relative;
   position: relative;
   height: 100%;
   height: 100%;
-  margin-left: 200px;
-  padding: 20px;
+  margin-left: 14rem;
+  padding: 1.2rem;
   background: white;
   background: white;
   border-left: 1px solid darkgray;
   border-left: 1px solid darkgray;
   border-right: 1px solid darkgray;
   border-right: 1px solid darkgray;
   overflow-y: auto;
   overflow-y: auto;
 }
 }
 .content > header {
 .content > header {
-  height: 30px;
-  line-height: 30px;
+  height: 2rem;
+  line-height: 2rem;
   padding: 0 .5rem;
   padding: 0 .5rem;
   border-bottom: 1px solid darkgray;
   border-bottom: 1px solid darkgray;
 }
 }
 .backdrop,
 .backdrop,
 .scripts {
 .scripts {
   position: absolute;
   position: absolute;
-  top: 30px;
+  top: 2rem;
   left: 0;
   left: 0;
   right: 0;
   right: 0;
   bottom: 0;
   bottom: 0;
@@ -131,7 +132,8 @@ aside img {
   color: gray;
   color: gray;
   z-index: 9;
   z-index: 9;
 }
 }
-.backdrop > *, .backdrop::after {
+.backdrop > *,
+.backdrop::after {
   display: inline-block;
   display: inline-block;
   vertical-align: middle;
   vertical-align: middle;
   font-size: 2rem;
   font-size: 2rem;
@@ -157,22 +159,22 @@ aside img {
   padding: 0;
   padding: 0;
 }
 }
 fieldset.title {
 fieldset.title {
-  margin-top: 20px;
-  padding: 10px;
+  margin-top: 1rem;
+  padding: .8rem;
   border: none;
   border: none;
   border-top: 1px solid silver;
   border-top: 1px solid silver;
 }
 }
 .export-list {
 .export-list {
   display: block;
   display: block;
   width: 100%;
   width: 100%;
-  height: 200px;
+  height: 14rem;
   white-space: normal;
   white-space: normal;
 }
 }
 .export-list > option {
 .export-list > option {
   display: inline-block;
   display: inline-block;
-  width: 180px;
-  margin: 2px;
-  padding: 0 5px;
+  width: 13rem;
+  margin: .1rem .2rem;
+  padding: 0 .3rem;
   box-shadow: 0 0 1px black;
   box-shadow: 0 0 1px black;
 }
 }
 .frame {
 .frame {
@@ -187,28 +189,28 @@ fieldset.title {
 .frame-header {
 .frame-header {
   position: absolute;
   position: absolute;
   top: 0;
   top: 0;
-  left: 5px;
-  right: 5px;
+  left: .5rem;
+  right: .5rem;
   height: 5rem;
   height: 5rem;
-  padding-top: 5px;
-  padding-bottom: 5px;
+  padding-top: .5rem;
+  padding-bottom: .5rem;
 }
 }
 .frame-body {
 .frame-body {
   position: absolute;
   position: absolute;
   top: 0;
   top: 0;
-  left: 5px;
-  right: 5px;
+  left: .5rem;
+  right: .5rem;
   bottom: 0;
   bottom: 0;
-  padding-top: 5px;
-  padding-bottom: 5px;
+  padding-top: .5rem;
+  padding-bottom: .5rem;
 }
 }
 .frame-footer {
 .frame-footer {
   position: absolute;
   position: absolute;
-  left: 5px;
-  right: 5px;
+  left: .5rem;
+  right: .5rem;
   bottom: 0;
   bottom: 0;
-  padding-top: 5px;
-  padding-bottom: 5px;
+  padding-top: .5rem;
+  padding-bottom: .5rem;
 }
 }
 .frame-header ~ .frame-body {
 .frame-header ~ .frame-body {
   top: 5rem;
   top: 5rem;
@@ -240,10 +242,10 @@ fieldset.title {
 }
 }
 .script {
 .script {
   position: relative;
   position: relative;
-  margin: 10px;
-  padding: 10px;
+  margin: .6rem;
+  padding: .6rem;
   border: 1px solid #ccc;
   border: 1px solid #ccc;
-  border-radius: 4px;
+  border-radius: .3rem;
   transition: transform .5s;
   transition: transform .5s;
 }
 }
 .script:hover {
 .script:hover {
@@ -257,31 +259,30 @@ fieldset.title {
   margin-left: 1em;
   margin-left: 1em;
 }
 }
 .script-info {
 .script-info {
-  margin-left: 50px;
+  margin-left: 3.5rem;
   line-height: 1.5;
   line-height: 1.5;
 }
 }
 .script-info > * {
 .script-info > * {
   display: inline-block;
   display: inline-block;
-  margin-right: 10px;
+  margin-right: .8rem;
   vertical-align: middle;
   vertical-align: middle;
 }
 }
 .script-icon {
 .script-icon {
   position: absolute;
   position: absolute;
-  top: 10px;
-  width: 40px;
-  height: 40px;
+  top: .8rem;
+  width: 3rem;
+  height: 3rem;
 }
 }
 .script-name {
 .script-name {
   font-weight: bold;
   font-weight: bold;
-  font-size: 1.17em;
+  font-size: 1rem;
 }
 }
 .script-author {
 .script-author {
   max-width: 30%;
   max-width: 30%;
 }
 }
 .script-desc {
 .script-desc {
-  margin: 5px 0 5px 50px;
-  height: 1.2rem;
-  overflow-y: auto;
+  margin-left: 3.5rem;
+  line-height: 2rem;
 }
 }
 .disabled .script-icon {
 .disabled .script-icon {
   filter: grayscale(.5);
   filter: grayscale(.5);
@@ -305,7 +306,7 @@ fieldset.title {
   top: 4rem;
   top: 4rem;
 }
 }
 .edit .dropdown-menu {
 .edit .dropdown-menu {
-  width: 450px;
+  width: 32rem;
 }
 }
 .edit .dropdown-menu > table {
 .edit .dropdown-menu > table {
   width: 100%;
   width: 100%;
@@ -325,24 +326,24 @@ fieldset.title {
   border-radius: 50%;
   border-radius: 50%;
 }
 }
 .feature .feature-text::after {
 .feature .feature-text::after {
-  top: -2px;
-  width: 6px;
-  height: 6px;
-  margin-left: 2px;
+  top: -.1rem;
+  width: .4rem;
+  height: .4rem;
+  margin-left: .1rem;
   background: red;
   background: red;
 }
 }
 .message {
 .message {
   position: absolute;
   position: absolute;
-  width: 200px;
+  width: 14rem;
   top: 0;
   top: 0;
   left: 50%;
   left: 50%;
-  margin-left: -100px;
-  padding: 16px;
+  margin-left: -7rem;
+  padding: 1rem;
   z-index: 10;
   z-index: 10;
   background: white;
   background: white;
-  border-bottom-left-radius: 4px;
-  border-bottom-right-radius: 4px;
-  box-shadow: 0 0 5px rgba(0,0,0,.2);
+  border-bottom-left-radius: .2rem;
+  border-bottom-right-radius: .2rem;
+  box-shadow: 0 0 .2rem rgba(0,0,0,.2);
 }
 }
 .message-transition {
 .message-transition {
   transition: transform .5s;
   transition: transform .5s;
@@ -352,8 +353,8 @@ fieldset.title {
   transform: translateY(-120%);
   transform: translateY(-120%);
 }
 }
 .icon {
 .icon {
-  width: 14px;
-  height: 14px;
+  width: 1rem;
+  height: 1rem;
   vertical-align: middle;
   vertical-align: middle;
 }
 }
 svg path {
 svg path {

+ 10 - 11
src/popup/style.css

@@ -3,13 +3,12 @@
   padding: 0;
   padding: 0;
   box-sizing: border-box;
   box-sizing: border-box;
 }
 }
-body {
-  font: menu;
-  font-size: 13px;
+html {
+  font: 14px menu;
 }
 }
 .menu {
 .menu {
-  max-width: 400px;
-  max-height: 400px;
+  max-width: 30rem;
+  max-height: 30rem;
   overflow-x: hidden;
   overflow-x: hidden;
   overflow-y: auto;
   overflow-y: auto;
 }
 }
@@ -24,7 +23,7 @@ body {
 }
 }
 .menu-item-label {
 .menu-item-label {
   cursor: pointer;
   cursor: pointer;
-  padding: 5px;
+  padding: .4rem;
   white-space: nowrap;
   white-space: nowrap;
 }
 }
 .menu-item-detail:hover,
 .menu-item-detail:hover,
@@ -40,10 +39,10 @@ body {
 }
 }
 .menu-item-detail {
 .menu-item-detail {
   float: right;
   float: right;
-  border-radius: 2px;
+  border-radius: .1rem;
   text-align: center;
   text-align: center;
-  width: 1.2em;
-  margin: .4em;
+  width: 1rem;
+  margin: .4rem;
   background: white;
   background: white;
   cursor: pointer;
   cursor: pointer;
 }
 }
@@ -55,8 +54,8 @@ hr {
   border-top: 1px solid silver;
   border-top: 1px solid silver;
 }
 }
 .icon {
 .icon {
-  width: 14px;
-  height: 14px;
+  width: 1rem;
+  height: 1rem;
   vertical-align: bottom;
   vertical-align: bottom;
 }
 }
 svg path {
 svg path {