You are here

commons-thumbs-up-down.css in Drupal Commons 7.3

.rate-widget-commons_thumbs_up_down {
  width: 4.5em;
  margin: 1.7em 0;
}

.rate-info {
  position: relative;
  width: 100%;
  height: 3.5em;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin-bottom: .4em;
  padding: .1em .4em;
  border: 1px solid #ccc;
  -webkit-border-radius: 0.3em;
  -moz-border-radius: 0.3em;
  -ms-border-radius: 0.3em;
  -o-border-radius: 0.3em;
  border-radius: 0.3em;
  font-size: .8em;
  line-height: 1.2em;
  text-align: center;
  background: #fff;
  color: #333;
  z-index: 0;
}
.rate-info:before, .rate-info:after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
  position: absolute;
  bottom: -0.85em;
  left: 50%;
  margin-left: -0.5em;
  border: 0.5em solid transparent;
}
.rate-info:before {
  border-top-color: #ccc;
  margin-bottom: -1px;
}
.rate-info:after {
  border-top-color: #fff;
}

.rate-info-value {
  display: block;
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1em;
}

.rate-info-label {
  line-height: 1em;
  color: #888;
}

.commons-q-a-rate-buttons {
  margin: 0;
  line-height: 100%;
}

.commons-q-a-rate-trigger {
  margin: 0;
  width: 50%;
  height: 2em;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  line-height: 2em;
}
.commons-q-a-rate-trigger .rate-button {
  display: block;
  height: 100%;
  overflow: hidden;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  border: 1px solid #ccc;
  -webkit-border-radius: 0.3em;
  -moz-border-radius: 0.3em;
  -ms-border-radius: 0.3em;
  -o-border-radius: 0.3em;
  border-radius: 0.3em;
  color: transparent;
  background: #fefefe;
  background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #fefefe), color-stop(100%, #e8e8e8));
  background: -webkit-linear-gradient(top, #fefefe, #e8e8e8);
  background: -moz-linear-gradient(top, #fefefe, #e8e8e8);
  background: -o-linear-gradient(top, #fefefe, #e8e8e8);
  background: linear-gradient(top, #fefefe, #e8e8e8);
}
.commons-q-a-rate-trigger .rate-button:before {
  display: block;
  margin: 0 auto;
  text-align: center;
  font-size: 2.4em;
  color: #333;
  font-weight: bold;
  font-family: monospace;
}
.commons-q-a-rate-trigger .rate-button:hover {
  text-decoration: none;
}
.commons-q-a-rate-trigger .rate-voted {
  background: #f3f3f3;
  border-color: #f3f3f3;
  -webkit-box-shadow: inset 0.1em 0.1em 0.1em rgba(0, 0, 0, 0.4);
  -moz-box-shadow: inset 0.1em 0.1em 0.1em rgba(0, 0, 0, 0.4);
  box-shadow: inset 0.1em 0.1em 0.1em rgba(0, 0, 0, 0.4);
}

.commons-q-a-rate-up {
  float: left;
  padding-right: .2em;
}

.commons-q-a-rate-down {
  float: right;
  padding-left: .2em;
}

.rate-number-up-down-btn-up:before {
  content: "+";
}

.rate-number-up-down-btn-down:before {
  content: "-";
}

File

modules/commons/commons_q_a/commons-thumbs-up-down.css
View source
  1. .rate-widget-commons_thumbs_up_down {
  2. width: 4.5em;
  3. margin: 1.7em 0;
  4. }
  5. .rate-info {
  6. position: relative;
  7. width: 100%;
  8. height: 3.5em;
  9. -webkit-box-sizing: border-box;
  10. -moz-box-sizing: border-box;
  11. box-sizing: border-box;
  12. margin-bottom: .4em;
  13. padding: .1em .4em;
  14. border: 1px solid #ccc;
  15. -webkit-border-radius: 0.3em;
  16. -moz-border-radius: 0.3em;
  17. -ms-border-radius: 0.3em;
  18. -o-border-radius: 0.3em;
  19. border-radius: 0.3em;
  20. font-size: .8em;
  21. line-height: 1.2em;
  22. text-align: center;
  23. background: #fff;
  24. color: #333;
  25. z-index: 0;
  26. }
  27. .rate-info:before, .rate-info:after {
  28. content: "";
  29. display: block;
  30. width: 0;
  31. height: 0;
  32. overflow: hidden;
  33. position: absolute;
  34. bottom: -0.85em;
  35. left: 50%;
  36. margin-left: -0.5em;
  37. border: 0.5em solid transparent;
  38. }
  39. .rate-info:before {
  40. border-top-color: #ccc;
  41. margin-bottom: -1px;
  42. }
  43. .rate-info:after {
  44. border-top-color: #fff;
  45. }
  46. .rate-info-value {
  47. display: block;
  48. font-size: 1.8em;
  49. font-weight: bold;
  50. line-height: 1em;
  51. }
  52. .rate-info-label {
  53. line-height: 1em;
  54. color: #888;
  55. }
  56. .commons-q-a-rate-buttons {
  57. margin: 0;
  58. line-height: 100%;
  59. }
  60. .commons-q-a-rate-trigger {
  61. margin: 0;
  62. width: 50%;
  63. height: 2em;
  64. -webkit-box-sizing: border-box;
  65. -moz-box-sizing: border-box;
  66. box-sizing: border-box;
  67. line-height: 2em;
  68. }
  69. .commons-q-a-rate-trigger .rate-button {
  70. display: block;
  71. height: 100%;
  72. overflow: hidden;
  73. -webkit-box-sizing: border-box;
  74. -moz-box-sizing: border-box;
  75. box-sizing: border-box;
  76. border: 1px solid #ccc;
  77. -webkit-border-radius: 0.3em;
  78. -moz-border-radius: 0.3em;
  79. -ms-border-radius: 0.3em;
  80. -o-border-radius: 0.3em;
  81. border-radius: 0.3em;
  82. color: transparent;
  83. background: #fefefe;
  84. background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #fefefe), color-stop(100%, #e8e8e8));
  85. background: -webkit-linear-gradient(top, #fefefe, #e8e8e8);
  86. background: -moz-linear-gradient(top, #fefefe, #e8e8e8);
  87. background: -o-linear-gradient(top, #fefefe, #e8e8e8);
  88. background: linear-gradient(top, #fefefe, #e8e8e8);
  89. }
  90. .commons-q-a-rate-trigger .rate-button:before {
  91. display: block;
  92. margin: 0 auto;
  93. text-align: center;
  94. font-size: 2.4em;
  95. color: #333;
  96. font-weight: bold;
  97. font-family: monospace;
  98. }
  99. .commons-q-a-rate-trigger .rate-button:hover {
  100. text-decoration: none;
  101. }
  102. .commons-q-a-rate-trigger .rate-voted {
  103. background: #f3f3f3;
  104. border-color: #f3f3f3;
  105. -webkit-box-shadow: inset 0.1em 0.1em 0.1em rgba(0, 0, 0, 0.4);
  106. -moz-box-shadow: inset 0.1em 0.1em 0.1em rgba(0, 0, 0, 0.4);
  107. box-shadow: inset 0.1em 0.1em 0.1em rgba(0, 0, 0, 0.4);
  108. }
  109. .commons-q-a-rate-up {
  110. float: left;
  111. padding-right: .2em;
  112. }
  113. .commons-q-a-rate-down {
  114. float: right;
  115. padding-left: .2em;
  116. }
  117. .rate-number-up-down-btn-up:before {
  118. content: "+";
  119. }
  120. .rate-number-up-down-btn-down:before {
  121. content: "-";
  122. }