home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / AvantBrowser / asetup.exe / _data / webkit / resources.pak / Unnamed File 000034.txt < prev    next >
Encoding:
Text File  |  2013-04-03  |  2.1 KB  |  94 lines

  1. /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2.  * Use of this source code is governed by a BSD-style license that can be
  3.  * found in the LICENSE file. */
  4.  
  5. menu {
  6.   -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, .50);
  7.   background: white;
  8.   color: black;
  9.   cursor: default;
  10.   left: 0;
  11.   margin: 0;
  12.   outline: 1px solid rgba(0, 0, 0, 0.2);
  13.   padding: 8px 0;
  14.   position: fixed;
  15.   white-space: nowrap;
  16.   z-index: 3;
  17. }
  18.  
  19. menu:not(.decorated) {
  20.   display: none;
  21. }
  22.  
  23. menu > * {
  24.   box-sizing: border-box;
  25.   display: block;
  26.   margin: 0;
  27.   text-align: start;
  28.   width: 100%;
  29. }
  30.  
  31. menu > :not(hr) {
  32.   -webkit-appearance: none;
  33.   background: transparent;
  34.   border: 0;
  35.   font: inherit;
  36.   line-height: 18px;
  37.   overflow: hidden;
  38.   padding: 0 19px;
  39.   text-overflow: ellipsis;
  40. }
  41.  
  42. menu > hr {
  43.   background: -webkit-linear-gradient(left,
  44.                                       rgba(0, 0, 0, .10),
  45.                                       rgba(0, 0, 0, .02) 96%);
  46.   border: 0;
  47.   height: 1px;
  48.   margin: 8px 0;
  49. }
  50.  
  51. menu > [disabled] {
  52.   color: rgba(0, 0, 0, .3);
  53. }
  54.  
  55. menu > [hidden] {
  56.   display: none;
  57. }
  58.  
  59. menu > :not(hr)[selected] {
  60.   background-color: rgb(220, 229, 250);
  61. }
  62.  
  63. menu > :not(hr)[selected]:active {
  64.   background-color: rgb(66, 109, 201);
  65.   color: #fff;
  66. }
  67.  
  68. menu > [checked]::before {
  69.   content: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAARklEQVQY02NgwA+MgViQkIJ3QKzEAFVpjEPBf5giJaiAMRYF72DWKSEJlKMpgNsgiCTxH5sCBhxWGOPzzV2sCv7//08QAwAUfjKK4sDXvQAAAABJRU5ErkJggg==');
  70.   display: inline-block;
  71.   height: 9px;
  72.   margin: 0 5px;
  73.   vertical-align: 50%;
  74.   width: 9px;
  75. }
  76.  
  77. menu > [checked] {
  78.   -webkit-padding-start: 0;
  79. }
  80.  
  81. menu > [selected][checked]:active::before {
  82.   content: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAATUlEQVQYV2P4//8/Ax5sDMSChBS8A2IlEEcQKoBNwX+YIiWoAEwhsgIQLQhTBBMoR1MA1gizDiYBA8gmM2BzA4oCZEUwhXfRFaArwokBBR4JwRMmHQoAAAAASUVORK5CYII=');
  83. }
  84.  
  85. /* TODO(zvorygin) menu > [shortcutText]::after - this selector is much better,
  86.  * but it's buggy in current webkit revision, so I have to use [showShortcuts].
  87.  */
  88. menu[showShortcuts] > ::after {
  89.   -webkit-padding-start: 30px;
  90.   color: #999;
  91.   content: attr(shortcutText);
  92.   float: right;
  93. }
  94.