Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Side by Side Diff: chrome/browser/resources/options/options_page.css

Issue 6241006: DOMUI: Polish common HTML controls to match the rest of the DOMUI pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 body { 1 body {
2 -webkit-user-select: none; 2 -webkit-user-select: none;
3 cursor: default; 3 cursor: default;
4 font-size: 100%; 4 font-size: 100%;
5 } 5 }
6 6
7 #settings-title { 7 #settings-title {
8 -webkit-padding-end: 24px; 8 -webkit-padding-end: 24px;
9 color: #53637d; 9 color: #53637d;
10 font-size: 200%; 10 font-size: 200%;
(...skipping 25 matching lines...) Expand all
36 top: 0; 36 top: 0;
37 bottom: 0; 37 bottom: 0;
38 z-index: 10; 38 z-index: 10;
39 padding: 20px; 39 padding: 20px;
40 display: -webkit-box; 40 display: -webkit-box;
41 -webkit-box-align: center; 41 -webkit-box-align: center;
42 -webkit-box-pack: center; 42 -webkit-box-pack: center;
43 } 43 }
44 44
45 .close-subpage { 45 .close-subpage {
46 -webkit-box-shadow: none;
46 background-color: transparent; 47 background-color: transparent;
47 background-image: url('chrome://theme/IDR_CLOSE_BAR'); 48 background-image: url('chrome://theme/IDR_CLOSE_BAR');
49 background-repeat: no-repeat;
48 border: none; 50 border: none;
51 height: 16px;
52 min-width: 0;
49 position: relative; 53 position: relative;
50 top: 12px; 54 top: 12px;
51 height: 16px;
52 width: 16px; 55 width: 16px;
53 } 56 }
54 57
55 .close-subpage:hover { 58 .close-subpage:hover {
59 -webkit-box-shadow: none;
60 background-color: transparent;
56 background-image: url('chrome://theme/IDR_CLOSE_BAR_H'); 61 background-image: url('chrome://theme/IDR_CLOSE_BAR_H');
62 background-repeat: no-repeat;
57 } 63 }
58 64
59 .close-subpage:active { 65 .close-subpage:active {
66 -webkit-box-shadow: none;
67 background-color: transparent;
60 background-image: url('chrome://theme/IDR_CLOSE_BAR_P'); 68 background-image: url('chrome://theme/IDR_CLOSE_BAR_P');
69 background-repeat: no-repeat;
61 } 70 }
62 71
63 html[dir='ltr'] .close-subpage { 72 html[dir='ltr'] .close-subpage {
64 float: right; 73 float: right;
65 right: 0; 74 right: 0;
66 } 75 }
67 76
68 html[dir='rtl'] .close-subpage { 77 html[dir='rtl'] .close-subpage {
69 float: left; 78 float: left;
70 left: 0; 79 left: 0;
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 } 528 }
520 529
521 html[enable-cloud-print-proxy=false] #cloud-print-proxy-section { 530 html[enable-cloud-print-proxy=false] #cloud-print-proxy-section {
522 display: none; 531 display: none;
523 } 532 }
524 533
525 html[enable-cloud-print-proxy=true] #cloudPrintProxyManageButton { 534 html[enable-cloud-print-proxy=true] #cloudPrintProxyManageButton {
526 display: none; 535 display: none;
527 } 536 }
528 537
538 /* UI Controls */
539
540 input:focus,
541 select:focus {
542 outline-color: rgba(0, 128, 256, 0.5);
543 }
544
545 /* TEXT */
546 input[type='text'] {
547 -webkit-border-radius: 2px;
548 border: 1px solid #aaa;
549 font-size: inherit;
550 padding: 3px;
551 }
552
553 /* BUTTON */
554 button,
555 input[type='submit'] {
556 -webkit-border-radius: 2px;
557 -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
558 background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #faf afa), color-stop(0.4, #f4f4f4), color-stop(1, #e5e5e5));
arv (Not doing code reviews) 2011/01/18 18:49:25 -webkit-linear-gradient(#fafafa, #f4f4f4 40%, #e5e
arv (Not doing code reviews) 2011/01/18 18:52:51 I have a tool for this. http://www.corp.google.c
James Hawkins 2011/01/19 02:02:23 Awesome, that's really helpful.
James Hawkins 2011/01/19 02:02:23 Done.
559 border: 1px solid #aaa;
560 color: #555;
561 font-size: inherit;
562 margin-bottom: 0px;
563 min-width: 4em;
564 padding: 3px 12px 3px 12px;
565 }
566
567 button:hover,
568 input[type='submit']:hover {
569 -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
570 background: #ebebeb -webkit-gradient(linear, left top, left bottom, color-stop (0, #fefefe), color-stop(0.4, #f8f8f8), color-stop(1, #e9e9e9));
arv (Not doing code reviews) 2011/01/18 18:49:25 -webkit-linear-gradient(#fefefe, #f8f8f8 40%, #e9e
James Hawkins 2011/01/19 02:02:23 Done.
571 border-color: #999;
572 color: #333;
573 }
574
575 button:active,
576 input[type='submit']:active {
577 -webkit-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.2);
578 background: #ebebeb -webkit-gradient(linear, left top, left bottom, color-stop (0, #f4f4f4), color-stop(0.4, #efefef), color-stop(1, #dcdcdc));
arv (Not doing code reviews) 2011/01/18 18:49:25 -webkit-linear-gradient(#f4f4f4, #efefef 40%, #dcd
James Hawkins 2011/01/19 02:02:23 Done.
579 color: #444;
580 }
581
582 /* SELECT */
583 select {
584 -webkit-appearance: button;
585 -webkit-border-radius: 2px;
586 -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
587 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAIC AYAAADJEc7MAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvb S5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY 3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlI FhNUCBDb3JlIDUuMC1jMDYwIDYxLjE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-webkit-gradient(linear, left top , left bottom, color-stop(0, #fafafa), color-stop(0.4, #f4f4f4), color-stop(1, # e5e5e5));
arv (Not doing code reviews) 2011/01/18 18:49:25 -webkit-linear-gradient(#fafafa, #f4f4f4 40%, #e5e
arv (Not doing code reviews) 2011/01/18 18:49:25 I would prefer if we could check in these images
James Hawkins 2011/01/19 02:02:23 Done.
James Hawkins 2011/01/19 02:02:23 Done.
588 background-position: center right;
arv (Not doing code reviews) 2011/01/18 18:49:25 This needs RTL support
James Hawkins 2011/01/19 02:02:23 Done.
589 background-repeat: no-repeat;
590 border: 1px solid #aaa;
591 color: #555;
592 font-size: inherit;
593 margin-bottom: 0px;
594 overflow: hidden;
595 padding: 2px 20px 2px 3px;
596 text-overflow: ellipsis;
597 white-space: nowrap;
598 }
599
arv (Not doing code reviews) 2011/01/18 18:49:25 You need to provide button:focus and button:disabl
James Hawkins 2011/01/19 02:02:23 Done.
600 select:hover {
601 -webkit-border-radius: 2px;
arv (Not doing code reviews) 2011/01/18 18:49:25 You do not need to repeat this. The "select" rule
James Hawkins 2011/01/19 02:02:23 Done.
602 -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
603 background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAICAYAAAD JEc7MAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9 iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzl kIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCB Db3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjp SREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4 gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29 tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1 sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHh tcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUl EPSJ4bXAuaWlkOjA5MDMwMzEzMUVBRTExRTA5NUM0QzJENTZCN0I5Mjk1IiB4bXBNTTpEb2N1bWVudEl EPSJ4bXAuZGlkOjA5MDMwMzE0MUVBRTExRTA5NUM0QzJENTZCN0I5Mjk1Ij4gPHhtcE1NOkRlcml2ZWR Gcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDkwMzAzMTExRUFFMTFFMDk1QzRDMkQ1NkI3Qjk yOTUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MDkwMzAzMTIxRUFFMTFFMDk1QzRDMkQ1NkI3Qjk yOTUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCB lbmQ9InIiPz5pY8xsAAAAbUlEQVR42mL8//8/AzmAEYijgJgHj5ovQMOXYYgmAgEzM/M3IPM/OgaJg+R BrkLHIEJhwYIFC9nY2H4iawLxQeIgeVwaMTQT0oSsEa6Zj4/vCyFN6BrBmt++fdtESBMIM2KJDlYg/k0 oOgACDABJirkKokz/DAAAAABJRU5ErkJggg=="), -webkit-gradient(linear, left top, left bottom, color-stop(0, #fefefe), color-stop(0.4, #f8f8f8), color-stop(1, #e9e9e9 ));
arv (Not doing code reviews) 2011/01/18 18:49:25 -webkit-linear-gradient(#fefefe, #f8f8f8 40%, #e9e
James Hawkins 2011/01/19 02:02:23 Done.
604 background-position: center right;
arv (Not doing code reviews) 2011/01/18 18:49:25 RTL
James Hawkins 2011/01/19 02:02:23 Done.
605 background-repeat: no-repeat;
606 color: #333;
607 }
608
609 select:active {
610 -webkit-border-radius:2px;
611 -webkit-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.2);
612 background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAICAYAAAD JEc7MAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9 iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzl kIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCB Db3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjp SREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4 gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29 tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1 sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHh tcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUl EPSJ4bXAuaWlkOjA5MDMwMzEzMUVBRTExRTA5NUM0QzJENTZCN0I5Mjk1IiB4bXBNTTpEb2N1bWVudEl EPSJ4bXAuZGlkOjA5MDMwMzE0MUVBRTExRTA5NUM0QzJENTZCN0I5Mjk1Ij4gPHhtcE1NOkRlcml2ZWR Gcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDkwMzAzMTExRUFFMTFFMDk1QzRDMkQ1NkI3Qjk yOTUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MDkwMzAzMTIxRUFFMTFFMDk1QzRDMkQ1NkI3Qjk yOTUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCB lbmQ9InIiPz5pY8xsAAAAbUlEQVR42mL8//8/AzmAEYijgJgHj5ovQMOXYYgmAgEzM/M3IPM/OgaJg+R BrkLHIEJhwYIFC9nY2H4iawLxQeIgeVwaMTQT0oSsEa6Zj4/vCyFN6BrBmt++fdtESBMIM2KJDlYg/k0 oOgACDABJirkKokz/DAAAAABJRU5ErkJggg=="), -webkit-gradient(linear, left top, left bottom, color-stop(0, #f4f4f4), color-stop(0.4, #efefef), color-stop(1, #dcdcdc ));
613 background-position: center right;
614 background-repeat: no-repeat;
615 color: #444;
616 }
617
618 /* CHECKBOX, RADIO */
529 input[type=checkbox], 619 input[type=checkbox],
530 input[type=radio], 620 input[type=radio] {
531 button {
532 margin-left: 0; 621 margin-left: 0;
533 margin-right: 0; 622 margin-right: 0;
623 position:relative;
arv (Not doing code reviews) 2011/01/18 18:49:25 ws after :
James Hawkins 2011/01/19 02:02:23 Done.
624 top:1px;
arv (Not doing code reviews) 2011/01/18 18:49:25 I think the right way to do this is to change the
James Hawkins 2011/01/19 02:02:23 For now I'd like to leave this as is, then revisit
534 } 625 }
535 626
536 /* Checkbox and radio buttons have different sizes on different platforms. The 627 /* Checkbox and radio buttons have different sizes on different platforms. The
537 * following rules have platform specific tweaks. 628 * following rules have platform specific tweaks.
538 * TODO(arv): Test the vertical position on Linux and CrOS as well. 629 * TODO(arv): Test the vertical position on Linux and CrOS as well.
539 */ 630 */
540 631
541 label > input[type=checkbox], 632 label > input[type=checkbox],
542 label > input[type=radio] { 633 label > input[type=radio] {
543 margin-top: 1px; 634 margin-top: 1px;
544 } 635 }
545 636
546 .suboption {
547 -webkit-margin-start: 16px;
548 }
549
550 html[os=mac] label > input[type=checkbox], 637 html[os=mac] label > input[type=checkbox],
551 html[os=mac] label > input[type=radio] { 638 html[os=mac] label > input[type=radio] {
552 margin-top: 2px; 639 margin-top: 2px;
553 } 640 }
641
642 .suboption {
643 -webkit-margin-start: 16px;
644 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698