_gpm.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. .gpm {
  2. > table > tbody {
  3. > tr {
  4. border-bottom: 1px solid #e1e1e1;
  5. }
  6. }
  7. td {
  8. border: 0;
  9. }
  10. .gpm-name {
  11. white-space: nowrap;
  12. color: lighten($content-fg, 25%);
  13. }
  14. .gpm-version {
  15. padding-left:0.5rem;
  16. color: lighten($content-fg,10%);
  17. font-size: 0.9rem;
  18. }
  19. .gpm-update {
  20. .gpm-name {
  21. color: $secondary-accent-bg;
  22. }
  23. }
  24. .gpm-actions {
  25. .enabled, .disabled {
  26. font-size: 1.6rem;
  27. }
  28. .disabled {
  29. color: lighten($content-fg,10%);
  30. }
  31. }
  32. .gpm-item-info {
  33. position: relative;
  34. border-bottom: 3px solid darken($content-bg, 5%);
  35. padding-bottom: 1rem;
  36. margin-bottom: 3rem;
  37. overflow: hidden;
  38. @include breakpoint(mobile-only) {
  39. word-wrap: break-word;
  40. }
  41. .gpm-item-icon {
  42. color: darken($content-bg, 3%);
  43. position: absolute;
  44. right: $padding-default;
  45. font-size: 20rem;
  46. }
  47. table {
  48. position: relative;
  49. }
  50. td {
  51. border: 0;
  52. text-align: left !important;
  53. &:first-child {
  54. color: lighten($content-fg,15%);
  55. white-space: nowrap;
  56. width: 25%;
  57. }
  58. }
  59. tr:hover {
  60. background: inherit;
  61. }
  62. }
  63. .badge.update {
  64. display: inline-block;
  65. background: $info-bg;
  66. border-radius: 4px;
  67. padding: 2px 10px;
  68. color: $info-fg;
  69. margin-left: 1rem;
  70. }
  71. .gpm-ribbon {
  72. background-color: $info-bg;
  73. overflow: hidden;
  74. white-space: nowrap;
  75. position: absolute;
  76. top: 1rem;
  77. right: -2rem;
  78. @include transform(rotate(45deg));
  79. a {
  80. color: $info-fg;
  81. display: block;
  82. font-weight: bold;
  83. font-size: 0.9rem;
  84. padding: 5px 40px;
  85. text-align: center;
  86. }
  87. }
  88. .themes {
  89. padding: $padding-default;
  90. .gpm-name {
  91. margin-bottom: 0.5rem;
  92. }
  93. .gpm-actions {
  94. background: darken($content-bg, 2%);
  95. margin: 1rem -1rem -1rem -1rem;
  96. height: 4rem;
  97. text-align: center;
  98. padding: 1rem;
  99. font-size: 1rem;
  100. font-weight: bold;
  101. }
  102. .active-theme .gpm-actions, &.inactive-theme .gpm-actions {
  103. line-height: 2rem;
  104. }
  105. .active-theme {
  106. border: 1px solid $secondary-accent-bg;
  107. .gpm-actions {
  108. background: $secondary-accent-bg;
  109. color: $content-bg;
  110. }
  111. }
  112. .inactive-theme .gpm-actions {
  113. display: block;
  114. color: darken($content-bg, 30%);
  115. font-weight: normal;
  116. }
  117. }
  118. }