You are here

like.css in Open Social 8.9

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