cloud-ui.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /*******************************************************************************
  2. ηMatrix - a browser extension to black/white list requests.
  3. Copyright (C) 2019-2022 Alessio Vanni
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see {http://www.gnu.org/licenses/}.
  14. Home: https://gitlab.com/vannilla/ematrix
  15. uMatrix Home: https://github.com/gorhill/uMatrix
  16. */
  17. #cloudWidget {
  18. background: url("../img/cloud.png") hsl(216, 100%, 93%);
  19. border-radius: 3px;
  20. margin: 0.5em 0;
  21. padding: 1em 1em 0 1em;
  22. position: relative;
  23. }
  24. #cloudWidget.hide {
  25. display: none;
  26. }
  27. #cloudWidget > button {
  28. display: inline-block;
  29. font-family: FontAwesome;
  30. font-size: 160%;
  31. font-style: normal;
  32. font-weight: normal;
  33. line-height: 1;
  34. padding: 0.2em 0.25em 0.1em 0.25em;
  35. position: relative;
  36. vertical-align: baseline;
  37. }
  38. #cloudWidget > button[disabled] {
  39. visibility: hidden;
  40. }
  41. #cloudWidget > button.error {
  42. color: red;
  43. }
  44. #cloudPush:after {
  45. content: '\f0ee';
  46. }
  47. #cloudPull:before,
  48. #cloudPullAndMerge:before {
  49. content: '\f0ed';
  50. }
  51. #cloudPullAndMerge {
  52. margin: 0 0.25em;
  53. }
  54. #cloudPullAndMerge:after {
  55. content: '\f067';
  56. font-size: 50%;
  57. position: absolute;
  58. right: 0;
  59. top: 10%;
  60. }
  61. #cloudWidget > span {
  62. color: gray;
  63. display: inline-block;
  64. font-size: 90%;
  65. margin: 0 1em;
  66. padding: 0;
  67. vertical-align: bottom;
  68. white-space: pre;
  69. }
  70. #cloudError {
  71. color: red;
  72. margin: 0;
  73. padding: 0.5em 0;
  74. }
  75. #cloudError > span {
  76. font-size: x-small;
  77. }
  78. #cloudWidget > #cloudCog {
  79. cursor: pointer;
  80. display: inline-block;
  81. font-size: 110%;
  82. margin: 0;
  83. opacity: 0.5;
  84. padding: 4px;
  85. position: absolute;
  86. top: 0;
  87. }
  88. body[dir="ltr"] #cloudWidget > #cloudCog {
  89. right: 0;
  90. }
  91. body[dir="rtl"] #cloudWidget > #cloudCog {
  92. left: 0;
  93. }
  94. #cloudWidget > #cloudCog:hover {
  95. opacity: 1;
  96. }
  97. #cloudWidget > #cloudOptions {
  98. align-items: center;
  99. -webkit-align-items: center;
  100. background-color: rgba(0, 0, 0, 0.75);
  101. bottom: 0;
  102. display: none;
  103. justify-content: center;
  104. -webkit-justify-content: center;
  105. left: 0;
  106. position: fixed;
  107. right: 0;
  108. top: 0;
  109. z-index: 2000;
  110. }
  111. #cloudWidget > #cloudOptions.show {
  112. display: flex;
  113. display: -webkit-flex;
  114. }
  115. #cloudWidget > #cloudOptions > div {
  116. background-color: white;
  117. border-radius: 3px;
  118. padding: 1em;
  119. text-align: center;
  120. }