Index: skin/new-options.css |
=================================================================== |
--- a/skin/new-options.css |
+++ b/skin/new-options.css |
@@ -49,22 +49,21 @@ |
{ |
background-color: #F5F5F5; |
display: flex; |
- margin: 20px 10px; |
+ margin: 1.2em 0.3em; |
font-family: "Source Sans Pro", sans-serif; |
- font-size: 14px; |
+ font-size: 20px; |
color: #494949; |
} |
h1 |
{ |
- font-size: 24px; |
- line-height: 1em; |
+ font-size: 48px; |
saroyanm
2017/08/10 12:04:48
I'll change font-sizes as soon they are updated in
juliandoucette
2017/08/16 23:42:31
Acknowledged.
Thank you for pointing this out.
saroyanm
2017/08/18 12:44:28
Done, but still I'm not really convinced with the
juliandoucette
2017/08/21 13:06:39
Acknowledged.
I agree. These sizes are huge. Perh
|
font-weight: 300; |
} |
h2 |
{ |
- font-size: 16px; |
+ font-size: 22px; |
font-weight: 600; |
} |
@@ -73,26 +72,12 @@ |
font-weight: 300; |
} |
-hr |
-{ |
- background-color: #CDCDCD; |
- border: 0px; |
- height: 1px; |
- margin: 0px; |
-} |
- |
[aria-hidden="true"] |
{ |
display: none !important; |
} |
-input[type="search"]::-webkit-search-cancel-button |
-{ |
- display: none; |
-} |
- |
input[type="text"], |
-input[type="search"], |
textarea |
{ |
-webkit-box-sizing: border-box; |
@@ -100,6 +85,65 @@ |
box-sizing: border-box; |
} |
+/* |
+ Buttons |
+ */ |
+ |
+button.primary, |
juliandoucette
2017/08/16 23:42:32
NIT: I prefer adding .button to <button>s and styl
saroyanm
2017/08/18 10:23:13
No, I don't think that we should have class button
juliandoucette
2017/08/18 11:17:04
Acknowledged.
A <link> can look like a <button> j
saroyanm
2017/08/18 12:44:28
I agree, I thought you proposing to have button.bu
juliandoucette
2017/08/21 13:06:39
Acknowledged.
FWIW: I was originally proposing to
|
+button.secondary, |
+.button.primary, |
+.button.secondary |
+{ |
+ padding: 0.8em 1.2em; |
+ font-size: 18px; |
+ font-weight: 600; |
+ text-decoration: none; |
+ text-transform: uppercase; |
+} |
+ |
+button.primary, |
+.button.primary |
+{ |
+ border: none; |
+ color: #FFF; |
+ background-color: #0A9DD1; |
+ cursor: pointer; |
+} |
+ |
+button.primary:hover, |
+.button.primary:hover |
+{ |
+ box-shadow: inset 0 0 0 2px #005D80; |
+} |
+ |
+button.primary[disabled] |
+{ |
+ background-color: #5CBCE1; |
+} |
+ |
+button.secondary, |
+.button.secondary |
+{ |
+ border: 1px solid #0A9DD1; |
+ color: #099CD0; |
+} |
+ |
+button.secondary:hover, |
+.button.secondary:hover |
+{ |
+ box-shadow: inset 0 0 0 1px #099CD0; |
+} |
+ |
+#about, |
+a |
juliandoucette
2017/08/16 23:42:32
Did you mean to style all <a> here?
(It doesn't l
saroyanm
2017/08/18 10:23:13
Yes, I did, though I think some of the styles are
saroyanm
2017/08/18 12:44:28
Done.
|
+{ |
+ text-decoration: none; |
+ color: #099CD0; |
+ cursor: pointer; |
+ font-size: 20px; |
+ text-align: center; |
+} |
+ |
button[role="checkbox"], |
#dialog-body .table button[role="checkbox"] |
{ |
@@ -120,63 +164,83 @@ |
background-position: -68px 0px; |
} |
-#nav-sidebar |
+/* |
+ Sidebar |
+ */ |
+ |
+#sidebar, |
+#sidebar .fixed, |
+[role="tablist"] |
{ |
- min-width: 198px; |
+ width: 13.2em; |
} |
-#nav-sidebar .fixed |
+#sidebar |
{ |
- top: 40px; |
- bottom: 2px; |
+ flex-shrink: 0; |
+} |
+ |
+#sidebar .fixed |
+{ |
+ top: 1.2em; |
+ bottom: 0; |
height: auto; |
position: fixed; |
} |
-#page-title |
+#sidebar header |
{ |
- padding: 0px 20px; |
+ text-align: right; |
+ margin-right: 2em; |
} |
-#page-title p |
+html[dir="rtl"] #sidebar header |
juliandoucette
2017/08/16 23:42:32
NIT: You could have just margin: 0 2em; above
saroyanm
2017/08/18 10:23:13
I did it to save space, mostly for the translation
juliandoucette
2017/08/18 11:17:04
Acknowledged.
|
{ |
- margin: 0px; |
- font-size: 16px; |
- line-height: 1em; |
+ margin-left: 2em; |
} |
-#page-title h1 |
+#sidebar header h1 |
{ |
- margin: 0px; |
- padding: 8px 0px 16px 0px; |
+ font-size: 24px; |
+ margin: 0; |
} |
-.tabs li |
+#sidebar header p |
{ |
- cursor: pointer; |
- display: flex; |
+ font-size: 44px; |
+ margin: 0; |
juliandoucette
2017/08/16 23:42:32
NIT: I thought we'd agreed against unitless values
saroyanm
2017/08/18 10:23:13
Noted, will fix.
saroyanm
2017/08/18 12:44:28
Done.
|
} |
-.tabs li a |
+html[dir="rtl"] #sidebar header |
{ |
- flex: 1; |
- color: inherit; |
- text-decoration: none; |
+ text-align: left; |
} |
-.tabs.vertical |
+#sidebar-logo |
juliandoucette
2017/08/16 23:42:32
NIT: It's kindof inconsistent that you are styling
saroyanm
2017/08/18 10:23:13
I agree, I'll change.
saroyanm
2017/08/18 12:44:28
On other hand, nav and footer are not unique eleme
juliandoucette
2017/08/21 13:06:39
Acknowledged.
I agree. Good thinking.
|
+{ |
+ width: 3em; |
+ margin-bottom: 0.9em; |
+} |
+ |
+#sidebar nav, |
+#sidebar footer |
+{ |
+ margin: 1.4em 0; |
+} |
+ |
+[role="tablist"] |
{ |
list-style: none; |
margin: 0px; |
position: relative; |
padding: 0px; |
- width: 198px; |
} |
-.tabs.vertical li |
+[role="tablist"] li |
{ |
- height: 46px; |
+ display: flex; |
margin-top: -1px; |
+ padding: 1em 0px; |
-moz-margin-end: -1px; |
-webkit-margin-end: -1px; |
-moz-margin-start: -1px; |
@@ -184,102 +248,58 @@ |
border-color: #CDCDCD transparent; |
border-style: solid; |
border-width: 1px; |
- font-size: 16px; |
font-weight: 300; |
- line-height: 1em; |
+ cursor: pointer; |
juliandoucette
2017/08/16 23:42:31
Is there a reason that you are using <spans> insid
saroyanm
2017/08/18 10:23:13
No this is styles updated on top of old implementa
saroyanm
2017/08/18 12:44:28
Done.
|
} |
-.tabs.vertical li a, |
-.tabs.vertical li span, |
-.tabs.vertical li::after |
+[role="tablist"] li a |
{ |
- margin: auto 20px; |
+ flex: 1; |
+ color: inherit; |
+ text-decoration: none; |
juliandoucette
2017/08/16 23:42:32
NIT/Note: You could default to none and add decora
saroyanm
2017/08/18 10:23:13
I don't think we need text-decoration specified fo
saroyanm
2017/08/18 12:44:29
Done.
|
} |
-.tabs li[role="tab"]:focus |
+[role="tablist"] li a, |
+[role="tablist"] li span, |
+[role="tablist"] li::after |
+{ |
+ margin: auto 0.8em; |
juliandoucette
2017/08/16 23:42:32
NIT: I don't think auto does anything here. If I a
saroyanm
2017/08/18 10:23:13
It's not, well spotted.
saroyanm
2017/08/18 12:44:28
Done.
|
+} |
+ |
+[role="tablist"] li[role="tab"]:focus |
{ |
outline: none; |
text-shadow: 0px 0px 1px #888; |
juliandoucette
2017/08/16 23:42:32
NIT/Note: This doesn't look so hot on [lowdpi, chr
saroyanm
2017/08/18 10:23:13
I agree, I think we should enhance this with Jeen,
juliandoucette
2017/08/18 11:17:04
Acknowledged.
|
} |
-.tabs li[role="tab"][aria-selected] |
+li[role="tab"][aria-selected] |
{ |
- border-radius: 3px 0px 0px 3px; |
-moz-border-start-color: #CDCDCD; |
-webkit-border-start-color: #CDCDCD; |
font-weight: 600; |
background-color: #FFF; |
} |
-html[dir="rtl"] .tabs li[role="tab"][aria-selected] |
-{ |
- border-radius: 0px 3px 3px 0px; |
-} |
- |
-.tabs.vertical.bottom |
+footer |
juliandoucette
2017/08/16 23:42:32
Did you mean to style all <footer>s here?
(It doe
saroyanm
2017/08/18 10:23:13
Currently we only have 1 footer, so I did it gener
saroyanm
2017/08/18 12:44:29
Done.
|
{ |
bottom: 0px; |
position: absolute; |
-} |
- |
-.tabs.vertical.bottom li:first-child |
-{ |
- border-top: 0px; |
-} |
- |
-#tab-contribute |
-{ |
- border-bottom: none; |
-} |
- |
-#nav-sidebar ul li span |
-{ |
width: 100%; |
} |
-#nav-sidebar ul li::after |
+footer p |
{ |
- content: ""; |
- min-width: 14px; |
- height: 14px; |
- background-image: url(options-sprite.png); |
+ display: flex; |
+ justify-content: center; |
+ margin: 1.2em 0; |
} |
-#tab-general::after |
+#about |
{ |
- background-position: -16px -18px; |
-} |
- |
-#tab-advanced::after |
-{ |
- background-position: -46px -18px; |
-} |
- |
-#tab-help::after |
-{ |
- background-position: -1px -18px; |
-} |
- |
-#tab-share::after |
-{ |
- background-position: -61px -18px; |
-} |
- |
-#tab-contribute::after |
-{ |
- background-position: -31px -18px; |
-} |
- |
-#tab-share:lang(zh), |
-#tab-share[hidden] |
-{ |
- display: none; |
-} |
- |
-#tab-share:lang(zh) + li, |
-#tab-share[hidden] + li |
-{ |
- border-top: none; |
+ border:none; |
+ background-color: transparent; |
+ font-weight: 300; |
+ font-family: inherit; |
} |
#content |
@@ -287,8 +307,8 @@ |
background-color: #FFFFFF; |
border: 1px solid #CDCDCD; |
border-radius: 8px; |
- width: 840px; |
- padding: 0px 60px 40px 60px; |
+ max-width: 46.3em; |
juliandoucette
2017/08/16 23:42:32
I think that you (or the specifier) may have made
saroyanm
2017/08/18 10:23:12
Yes, you are right this should be "border-box"
saroyanm
2017/08/18 12:44:28
Done.
|
+ padding: 0px 2em 1.4em 2em; |
} |
#content h1 |
@@ -298,20 +318,6 @@ |
padding: 40px 0px 16px 0px; |
} |
-#link-version |
-{ |
- display: flex; |
- margin: 12px 20px; |
- color: #3A7BA6; |
- text-decoration: none; |
-} |
- |
-#abp-version |
-{ |
- -moz-margin-start: 5px; |
- -webkit-margin-start: 5px; |
-} |
- |
#content-wrapper |
{ |
position: relative; |
@@ -1011,8 +1017,7 @@ |
margin: 0px; |
} |
-#dialog input[type="text"], |
-#dialog input[type="search"] |
+#dialog input[type="text"] |
{ |
font-size: 16px; |
margin-top: 10px; |
@@ -1044,20 +1049,6 @@ |
padding: 12px 0px; |
} |
-#dialog-body button |
-{ |
- background-color: #F5F5F5; |
- border: none; |
- color: #3A7BA6; |
- cursor: pointer; |
- display: block; |
- font-family: inherit; |
- margin-top: 8px; |
- padding: 10px 16px; |
- text-align: initial; |
- width: 100%; |
-} |
- |
#dialog .url |
{ |
margin-top: 10px; |
@@ -1065,6 +1056,8 @@ |
word-wrap: break-word; |
} |
+body:not([data-dialog="about"]) #dialog-title-about, |
+body:not([data-dialog="about"]) #dialog-content-about, |
body:not([data-dialog="custom"]) #dialog-title-custom, |
body:not([data-dialog="custom"]) #dialog-content-custom, |
body:not([data-dialog="language-add"]) #dialog-title-language-add, |