You are here

like.css in Open Social 8.6

.vote-widget {
  display: inline-block;
  vertical-align: middle;
}

.vote-widget .vote-dislike {
  display: none;
}

.vote__wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.vote-like {
  margin-right: 3px;
  cursor: pointer;
}

.icon-vote {
  width: 18px;
  height: 18px;
  padding: 0 1px;
  line-height: 1;
  fill: transparent;
  stroke: #4d4d4d;
  stroke-width: 15px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  vertical-align: text-top;
}

svg[class^="icon-vote"] {
  vertical-align: text-bottom;
}

.vote__count {
  font-size: 14px;
}

.vote__count .use-ajax {
  outline: 0;
}

.vote-widget a.disable-status {
  cursor: default;
}

.vote-widget a.disable-status .icon-vote {
  fill: transparent;
  stroke: #4d4d4d;
}

.voted-like .icon-vote {
  fill: black;
  stroke: black;
}

.vote-like a:active.voted-like .icon-vote {
  fill: black;
  stroke: black;
}

.vote-like a:active:not(.voted-like) .icon-vote {
  stroke: black;
  fill: transparent;
}

.view--who-liked .row {
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-bottom: 1px solid #e6e6e6;
  padding: 0.5rem 0;
}

.view--who-liked .row:last-child {
  border-bottom: 0;
}

.view--who-liked .views-field-rendered-entity-1 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 54px;
          flex: 0 0 54px;
}

.view--who-liked .views-field-rendered-entity-1 a:focus {
  outline: 0;
}

.view--who-liked .views-field-name {
  -webkit-box-flex: 2;
      -ms-flex: 2 1 auto;
          flex: 2 1 auto;
  min-width: 0;
}

.view--who-liked .views-field-name a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view--who-liked .views-field-view-user {
  display: none;
}

.view--who-liked .mini-pager {
  background-image: none;
}

@media (min-width: 600px) {
  .vote-like a:hover .icon-vote {
    stroke: black;
    fill: transparent;
    -webkit-transform: scale(1.3);
            transform: scale(1.3);
    -webkit-transition: 0.3s;
    transition: 0.3s;
  }
  .vote-like a:hover.voted-like .icon-vote,
  .vote-like a:hover.disable-status .icon-vote {
    fill: #4d4d4d;
    stroke: #4d4d4d;
    -webkit-transform: none;
            transform: none;
  }
}

@media (min-width: 900px) {
  .view--who-liked {
    width: 500px;
  }
  .view--who-liked .views-field-view-user {
    margin-right: 0;
    display: block;
  }
  .view--who-liked .views-field-view-user a {
    display: inline-block;
    margin-bottom: 0;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
    -ms-touch-action: manipulation;
        touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    -webkit-transition: .3s ease-out;
    transition: .3s ease-out;
    outline: 0;
  }
}

@media (max-width: 599px) {
  .vote-widget {
    width: 100%;
  }
  .vote__wrapper {
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
  .vote-like {
    margin-right: 10px;
  }
  .icon-vote {
    width: 22px;
    height: 22px;
  }
}

File

themes/socialbase/assets/css/like.css
View source
  1. .vote-widget {
  2. display: inline-block;
  3. vertical-align: middle;
  4. }
  5. .vote-widget .vote-dislike {
  6. display: none;
  7. }
  8. .vote__wrapper {
  9. display: -webkit-box;
  10. display: -ms-flexbox;
  11. display: flex;
  12. -webkit-box-align: center;
  13. -ms-flex-align: center;
  14. align-items: center;
  15. }
  16. .vote-like {
  17. margin-right: 3px;
  18. cursor: pointer;
  19. }
  20. .icon-vote {
  21. width: 18px;
  22. height: 18px;
  23. padding: 0 1px;
  24. line-height: 1;
  25. fill: transparent;
  26. stroke: #4d4d4d;
  27. stroke-width: 15px;
  28. -webkit-transition: 0.3s;
  29. transition: 0.3s;
  30. vertical-align: text-top;
  31. }
  32. svg[class^="icon-vote"] {
  33. vertical-align: text-bottom;
  34. }
  35. .vote__count {
  36. font-size: 14px;
  37. }
  38. .vote__count .use-ajax {
  39. outline: 0;
  40. }
  41. .vote-widget a.disable-status {
  42. cursor: default;
  43. }
  44. .vote-widget a.disable-status .icon-vote {
  45. fill: transparent;
  46. stroke: #4d4d4d;
  47. }
  48. .voted-like .icon-vote {
  49. fill: black;
  50. stroke: black;
  51. }
  52. .vote-like a:active.voted-like .icon-vote {
  53. fill: black;
  54. stroke: black;
  55. }
  56. .vote-like a:active:not(.voted-like) .icon-vote {
  57. stroke: black;
  58. fill: transparent;
  59. }
  60. .view--who-liked .row {
  61. -ms-flex-wrap: nowrap;
  62. flex-wrap: nowrap;
  63. -webkit-box-pack: start;
  64. -ms-flex-pack: start;
  65. justify-content: flex-start;
  66. -webkit-box-align: center;
  67. -ms-flex-align: center;
  68. align-items: center;
  69. border-bottom: 1px solid #e6e6e6;
  70. padding: 0.5rem 0;
  71. }
  72. .view--who-liked .row:last-child {
  73. border-bottom: 0;
  74. }
  75. .view--who-liked .views-field-rendered-entity-1 {
  76. -webkit-box-flex: 0;
  77. -ms-flex: 0 0 54px;
  78. flex: 0 0 54px;
  79. }
  80. .view--who-liked .views-field-rendered-entity-1 a:focus {
  81. outline: 0;
  82. }
  83. .view--who-liked .views-field-name {
  84. -webkit-box-flex: 2;
  85. -ms-flex: 2 1 auto;
  86. flex: 2 1 auto;
  87. min-width: 0;
  88. }
  89. .view--who-liked .views-field-name a {
  90. display: block;
  91. overflow: hidden;
  92. text-overflow: ellipsis;
  93. white-space: nowrap;
  94. }
  95. .view--who-liked .views-field-view-user {
  96. display: none;
  97. }
  98. .view--who-liked .mini-pager {
  99. background-image: none;
  100. }
  101. @media (min-width: 600px) {
  102. .vote-like a:hover .icon-vote {
  103. stroke: black;
  104. fill: transparent;
  105. -webkit-transform: scale(1.3);
  106. transform: scale(1.3);
  107. -webkit-transition: 0.3s;
  108. transition: 0.3s;
  109. }
  110. .vote-like a:hover.voted-like .icon-vote,
  111. .vote-like a:hover.disable-status .icon-vote {
  112. fill: #4d4d4d;
  113. stroke: #4d4d4d;
  114. -webkit-transform: none;
  115. transform: none;
  116. }
  117. }
  118. @media (min-width: 900px) {
  119. .view--who-liked {
  120. width: 500px;
  121. }
  122. .view--who-liked .views-field-view-user {
  123. margin-right: 0;
  124. display: block;
  125. }
  126. .view--who-liked .views-field-view-user a {
  127. display: inline-block;
  128. margin-bottom: 0;
  129. font-weight: normal;
  130. text-align: center;
  131. vertical-align: middle;
  132. -ms-touch-action: manipulation;
  133. touch-action: manipulation;
  134. cursor: pointer;
  135. background-image: none;
  136. border: 1px solid transparent;
  137. white-space: nowrap;
  138. padding: 6px 12px;
  139. font-size: 0.875rem;
  140. line-height: 1.5;
  141. -webkit-user-select: none;
  142. -moz-user-select: none;
  143. -ms-user-select: none;
  144. user-select: none;
  145. -webkit-transition: .3s ease-out;
  146. transition: .3s ease-out;
  147. outline: 0;
  148. }
  149. }
  150. @media (max-width: 599px) {
  151. .vote-widget {
  152. width: 100%;
  153. }
  154. .vote__wrapper {
  155. -webkit-box-pack: justify;
  156. -ms-flex-pack: justify;
  157. justify-content: space-between;
  158. }
  159. .vote-like {
  160. margin-right: 10px;
  161. }
  162. .icon-vote {
  163. width: 22px;
  164. height: 22px;
  165. }
  166. }