You are here

button.css in Open Social 8.9

[role="button"] {
  cursor: pointer;
}

.btn {
  display: inline-block;
  margin-bottom: 0;
  font-weight: normal;
  text-align: center;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  border: 1px solid transparent;
  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;
  transition: .3s ease-out;
  outline: 0;
}

.btn + .btn {
  margin-left: 5px;
}

.btn + .btn-block {
  margin-left: 0;
}

.btn .caret {
  margin-left: 3px;
}

.btn:hover, .btn:focus, .btn.focus {
  text-decoration: none;
  outline: 0;
}

.btn:active, .btn.active {
  background-image: none;
}

.btn.disabled, .btn[disabled],
fieldset[disabled] .btn {
  cursor: not-allowed;
  opacity: .65;
  box-shadow: none;
}

.btn a {
  font-weight: normal;
}

.btn.btn-full {
  display: block;
}

.btn-non-clickable.disabled,
fieldset[disabled] .btn-non-clickable,
a.btn.disabled,
fieldset[disabled]
a.btn {
  pointer-events: none;
}

.btn-link {
  font-weight: normal;
}

.btn-link, .btn-link:active, .btn-link.active, .btn-link[disabled], .btn-link:hover, .btn-link:focus,
fieldset[disabled] .btn-link {
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
}

.btn-link[disabled]:hover, .btn-link[disabled]:focus,
fieldset[disabled] .btn-link:hover,
fieldset[disabled] .btn-link:focus {
  text-decoration: none;
}

.btn--with-bgicon {
  padding-left: 32px;
  background-size: 16px 16px;
  background-position: 10px 8px;
  background-repeat: no-repeat;
}

.btn--facebook {
  background-image: url("../images/icons/icon-facebook.svg");
}

.btn--linkedin {
  background-image: url("../images/icons/icon-linkedin.svg");
}

.btn--google {
  background-image: url("../images/icons/icon-google.svg");
}

.btn--twitter {
  background-image: url("../images/icons/icon-twitter.svg");
}

.fieldset-wrapper > .btn {
  margin: 5px 5px 5px 0;
}

.btn-lg, .btn-group-lg > .btn {
  padding: 10px 16px;
  font-size: 1rem;
  line-height: 1.33333;
}

.btn-sm, .btn-group-sm > .btn {
  padding: 5px 10px;
  font-size: 0.75rem;
  line-height: 1.5;
}

.btn-sm .glyphicon:before, .btn-group-sm > .btn .glyphicon:before {
  width: 13px;
  height: 13px;
}

.btn-xs, .btn-group-xs > .btn {
  padding: 1px 5px;
  font-size: 0.75rem;
  line-height: 1.5;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-block + .btn-block {
  margin-top: 5px;
}

input[type="submit"].btn-block,
input[type="reset"].btn-block,
input[type="button"].btn-block {
  width: 100%;
}

.btn.pull-right + .btn {
  margin-left: 0;
}

.btn-raised {
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
  transition: box-shadow, .15s ease-out;
}

.btn-raised:active, .btn-raised.active, .btn-raised:hover {
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.16), 0 6px 12px rgba(0, 0, 0, 0.32);
}

.btn-raised.disabled, .btn-raised[disabled] {
  box-shadow: 0 -1px 0 #e0e0e0, 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
}

.btn-icon-toggle {
  background-color: transparent;
  border-radius: 50% !important;
  padding: 4px;
}

.btn-icon-toggle:hover, .btn-icon-toggle:focus {
  background-color: rgba(0, 0, 0, 0.07);
  border-color: transparent;
}

.btn-icon-toggle:active, .btn-icon-toggle.active {
  background-color: rgba(12, 12, 12, 0.25);
  border-color: transparent;
}

.btn-icon {
  font-size: 1.00012rem;
  line-height: 21px;
  height: 21px;
  width: 21px;
  vertical-align: bottom;
}

.btn-iconized {
  line-height: 12px;
}

.btn-iconized .icon-inline {
  fill: inherit;
  width: 24px;
  height: 24px;
  line-height: 24px;
}

.btn-floating {
  width: 38px;
  height: 38px;
  padding: 7px;
  border-radius: 50%;
  border: 0;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
}

.btn-floating:active, .btn-floating.active, .btn-floating:hover {
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.16), 0 6px 12px rgba(0, 0, 0, 0.32);
}

.btn-floating.btn-lg, .btn-group-lg > .btn-floating.btn {
  width: 52px;
  height: 52px;
}

.btn-floating.disabled, .btn-floating[disabled] {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
}

.btn-group,
.btn-group-vertical {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.btn-group > .btn,
.btn-group-vertical > .btn {
  position: relative;
  float: left;
}

.btn-group > .btn:hover, .btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active,
.btn-group-vertical > .btn:hover,
.btn-group-vertical > .btn:focus,
.btn-group-vertical > .btn:active,
.btn-group-vertical > .btn.active {
  z-index: 2;
}

.btn-group .btn + .btn,
.btn-group .btn + .btn-group,
.btn-group .btn-group + .btn,
.btn-group .btn-group + .btn-group {
  margin-left: -1px;
}

.btn-toolbar {
  margin-left: -5px;
}

.btn-toolbar:before, .btn-toolbar:after {
  content: " ";
  display: table;
}

.btn-toolbar:after {
  clear: both;
}

.btn-toolbar .btn,
.btn-toolbar .btn-group,
.btn-toolbar .input-group {
  float: left;
}

.btn-toolbar > .btn,
.btn-toolbar > .btn-group,
.btn-toolbar > .input-group {
  margin-left: 5px;
}

.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
  border-radius: 0;
}

.btn-group > .btn:first-child {
  margin-left: 0;
}

.btn-group > .btn:first-child:not(:last-of-type):not(.dropdown-toggle) {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

.btn-group > .btn:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}

.btn-group > .btn-group {
  float: left;
}

.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
  border-radius: 0;
}

.btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child,
.btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}

.btn-group .dropdown-toggle:active,
.btn-group.open .dropdown-toggle {
  outline: 0;
}

.btn-group > .btn + .dropdown-toggle {
  padding-left: 8px;
  padding-right: 8px;
}

.btn-group > .btn-lg + .dropdown-toggle, .btn-group-lg.btn-group > .btn + .dropdown-toggle {
  padding-left: 12px;
  padding-right: 12px;
}

.btn-group > .btn-sm + .dropdown-toggle, .btn-group-sm.btn-group > .btn + .dropdown-toggle {
  padding-left: 6px;
  padding-right: 6px;
}

.btn-group > .btn-xs + .dropdown-toggle, .btn-group-xs.btn-group > .btn + .dropdown-toggle {
  padding-left: 4px;
  padding-right: 4px;
}

.btn-group.open .dropdown-toggle.btn-link {
  box-shadow: none;
}

.btn-lg .caret, .btn-group-lg > .btn .caret {
  border-width: 5px 5px 0;
}

.dropup .btn-lg .caret, .dropup .btn-group-lg > .btn .caret {
  border-width: 0 5px 5px;
}

.btn-group-vertical > .btn,
.btn-group-vertical > .btn-group,
.btn-group-vertical > .btn-group > .btn {
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
}

.btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after {
  content: " ";
  display: table;
}

.btn-group-vertical > .btn-group:after {
  clear: both;
}

.btn-group-vertical > .btn-group > .btn {
  float: none;
}

.btn-group-vertical > .btn + .btn,
.btn-group-vertical > .btn + .btn-group,
.btn-group-vertical > .btn-group + .btn,
.btn-group-vertical > .btn-group + .btn-group {
  margin-top: -1px;
  margin-left: 0;
}

.btn-group--operations {
  width: 100%;
  display: flex;
  justify-content: center;
}

.block-group-add-event-block,
.block-group-add-topic-block,
.block-event-add-block,
.block-topic-add-block,
.block-group-add-block {
  display: inline-block;
}

.shariff-button {
  text-align: center;
}

@media (min-width: 900px) {
  .block-group-add-event-block,
  .block-group-add-topic-block,
  .block-event-add-block,
  .block-topic-add-block,
  .block-group-add-block {
    display: block;
  }
  .block-group-add-event-block .btn,
  .block-group-add-topic-block .btn,
  .block-event-add-block .btn,
  .block-topic-add-block .btn,
  .block-group-add-block .btn {
    width: 100%;
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 899px) {
  .block-group-add-event-block,
  .block-group-add-topic-block,
  .block-event-add-block,
  .block-topic-add-block,
  .block-group-add-block {
    margin-top: 1rem;
  }
}

File

themes/socialbase/assets/css/button.css
View source
  1. [role="button"] {
  2. cursor: pointer;
  3. }
  4. .btn {
  5. display: inline-block;
  6. margin-bottom: 0;
  7. font-weight: normal;
  8. text-align: center;
  9. vertical-align: middle;
  10. touch-action: manipulation;
  11. cursor: pointer;
  12. background-image: none;
  13. border: 1px solid transparent;
  14. padding: 6px 12px;
  15. font-size: 0.875rem;
  16. line-height: 1.5;
  17. -webkit-user-select: none;
  18. -moz-user-select: none;
  19. -ms-user-select: none;
  20. user-select: none;
  21. transition: .3s ease-out;
  22. outline: 0;
  23. }
  24. .btn + .btn {
  25. margin-left: 5px;
  26. }
  27. .btn + .btn-block {
  28. margin-left: 0;
  29. }
  30. .btn .caret {
  31. margin-left: 3px;
  32. }
  33. .btn:hover, .btn:focus, .btn.focus {
  34. text-decoration: none;
  35. outline: 0;
  36. }
  37. .btn:active, .btn.active {
  38. background-image: none;
  39. }
  40. .btn.disabled, .btn[disabled],
  41. fieldset[disabled] .btn {
  42. cursor: not-allowed;
  43. opacity: .65;
  44. box-shadow: none;
  45. }
  46. .btn a {
  47. font-weight: normal;
  48. }
  49. .btn.btn-full {
  50. display: block;
  51. }
  52. .btn-non-clickable.disabled,
  53. fieldset[disabled] .btn-non-clickable,
  54. a.btn.disabled,
  55. fieldset[disabled]
  56. a.btn {
  57. pointer-events: none;
  58. }
  59. .btn-link {
  60. font-weight: normal;
  61. }
  62. .btn-link, .btn-link:active, .btn-link.active, .btn-link[disabled], .btn-link:hover, .btn-link:focus,
  63. fieldset[disabled] .btn-link {
  64. background-color: transparent;
  65. border-color: transparent;
  66. box-shadow: none;
  67. }
  68. .btn-link[disabled]:hover, .btn-link[disabled]:focus,
  69. fieldset[disabled] .btn-link:hover,
  70. fieldset[disabled] .btn-link:focus {
  71. text-decoration: none;
  72. }
  73. .btn--with-bgicon {
  74. padding-left: 32px;
  75. background-size: 16px 16px;
  76. background-position: 10px 8px;
  77. background-repeat: no-repeat;
  78. }
  79. .btn--facebook {
  80. background-image: url("../images/icons/icon-facebook.svg");
  81. }
  82. .btn--linkedin {
  83. background-image: url("../images/icons/icon-linkedin.svg");
  84. }
  85. .btn--google {
  86. background-image: url("../images/icons/icon-google.svg");
  87. }
  88. .btn--twitter {
  89. background-image: url("../images/icons/icon-twitter.svg");
  90. }
  91. .fieldset-wrapper > .btn {
  92. margin: 5px 5px 5px 0;
  93. }
  94. .btn-lg, .btn-group-lg > .btn {
  95. padding: 10px 16px;
  96. font-size: 1rem;
  97. line-height: 1.33333;
  98. }
  99. .btn-sm, .btn-group-sm > .btn {
  100. padding: 5px 10px;
  101. font-size: 0.75rem;
  102. line-height: 1.5;
  103. }
  104. .btn-sm .glyphicon:before, .btn-group-sm > .btn .glyphicon:before {
  105. width: 13px;
  106. height: 13px;
  107. }
  108. .btn-xs, .btn-group-xs > .btn {
  109. padding: 1px 5px;
  110. font-size: 0.75rem;
  111. line-height: 1.5;
  112. }
  113. .btn-block {
  114. display: block;
  115. width: 100%;
  116. }
  117. .btn-block + .btn-block {
  118. margin-top: 5px;
  119. }
  120. input[type="submit"].btn-block,
  121. input[type="reset"].btn-block,
  122. input[type="button"].btn-block {
  123. width: 100%;
  124. }
  125. .btn.pull-right + .btn {
  126. margin-left: 0;
  127. }
  128. .btn-raised {
  129. box-shadow: 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
  130. transition: box-shadow, .15s ease-out;
  131. }
  132. .btn-raised:active, .btn-raised.active, .btn-raised:hover {
  133. box-shadow: 0 0 6px rgba(0, 0, 0, 0.16), 0 6px 12px rgba(0, 0, 0, 0.32);
  134. }
  135. .btn-raised.disabled, .btn-raised[disabled] {
  136. box-shadow: 0 -1px 0 #e0e0e0, 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
  137. }
  138. .btn-icon-toggle {
  139. background-color: transparent;
  140. border-radius: 50% !important;
  141. padding: 4px;
  142. }
  143. .btn-icon-toggle:hover, .btn-icon-toggle:focus {
  144. background-color: rgba(0, 0, 0, 0.07);
  145. border-color: transparent;
  146. }
  147. .btn-icon-toggle:active, .btn-icon-toggle.active {
  148. background-color: rgba(12, 12, 12, 0.25);
  149. border-color: transparent;
  150. }
  151. .btn-icon {
  152. font-size: 1.00012rem;
  153. line-height: 21px;
  154. height: 21px;
  155. width: 21px;
  156. vertical-align: bottom;
  157. }
  158. .btn-iconized {
  159. line-height: 12px;
  160. }
  161. .btn-iconized .icon-inline {
  162. fill: inherit;
  163. width: 24px;
  164. height: 24px;
  165. line-height: 24px;
  166. }
  167. .btn-floating {
  168. width: 38px;
  169. height: 38px;
  170. padding: 7px;
  171. border-radius: 50%;
  172. border: 0;
  173. box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
  174. }
  175. .btn-floating:active, .btn-floating.active, .btn-floating:hover {
  176. box-shadow: 0 0 6px rgba(0, 0, 0, 0.16), 0 6px 12px rgba(0, 0, 0, 0.32);
  177. }
  178. .btn-floating.btn-lg, .btn-group-lg > .btn-floating.btn {
  179. width: 52px;
  180. height: 52px;
  181. }
  182. .btn-floating.disabled, .btn-floating[disabled] {
  183. box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
  184. }
  185. .btn-group,
  186. .btn-group-vertical {
  187. position: relative;
  188. display: inline-block;
  189. vertical-align: middle;
  190. }
  191. .btn-group > .btn,
  192. .btn-group-vertical > .btn {
  193. position: relative;
  194. float: left;
  195. }
  196. .btn-group > .btn:hover, .btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active,
  197. .btn-group-vertical > .btn:hover,
  198. .btn-group-vertical > .btn:focus,
  199. .btn-group-vertical > .btn:active,
  200. .btn-group-vertical > .btn.active {
  201. z-index: 2;
  202. }
  203. .btn-group .btn + .btn,
  204. .btn-group .btn + .btn-group,
  205. .btn-group .btn-group + .btn,
  206. .btn-group .btn-group + .btn-group {
  207. margin-left: -1px;
  208. }
  209. .btn-toolbar {
  210. margin-left: -5px;
  211. }
  212. .btn-toolbar:before, .btn-toolbar:after {
  213. content: " ";
  214. display: table;
  215. }
  216. .btn-toolbar:after {
  217. clear: both;
  218. }
  219. .btn-toolbar .btn,
  220. .btn-toolbar .btn-group,
  221. .btn-toolbar .input-group {
  222. float: left;
  223. }
  224. .btn-toolbar > .btn,
  225. .btn-toolbar > .btn-group,
  226. .btn-toolbar > .input-group {
  227. margin-left: 5px;
  228. }
  229. .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
  230. border-radius: 0;
  231. }
  232. .btn-group > .btn:first-child {
  233. margin-left: 0;
  234. }
  235. .btn-group > .btn:first-child:not(:last-of-type):not(.dropdown-toggle) {
  236. border-bottom-right-radius: 0;
  237. border-top-right-radius: 0;
  238. }
  239. .btn-group > .btn:last-child:not(:first-child),
  240. .btn-group > .dropdown-toggle:not(:first-child) {
  241. border-bottom-left-radius: 0;
  242. border-top-left-radius: 0;
  243. }
  244. .btn-group > .btn-group {
  245. float: left;
  246. }
  247. .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
  248. border-radius: 0;
  249. }
  250. .btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child,
  251. .btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
  252. border-bottom-right-radius: 0;
  253. border-top-right-radius: 0;
  254. }
  255. .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
  256. border-bottom-left-radius: 0;
  257. border-top-left-radius: 0;
  258. }
  259. .btn-group .dropdown-toggle:active,
  260. .btn-group.open .dropdown-toggle {
  261. outline: 0;
  262. }
  263. .btn-group > .btn + .dropdown-toggle {
  264. padding-left: 8px;
  265. padding-right: 8px;
  266. }
  267. .btn-group > .btn-lg + .dropdown-toggle, .btn-group-lg.btn-group > .btn + .dropdown-toggle {
  268. padding-left: 12px;
  269. padding-right: 12px;
  270. }
  271. .btn-group > .btn-sm + .dropdown-toggle, .btn-group-sm.btn-group > .btn + .dropdown-toggle {
  272. padding-left: 6px;
  273. padding-right: 6px;
  274. }
  275. .btn-group > .btn-xs + .dropdown-toggle, .btn-group-xs.btn-group > .btn + .dropdown-toggle {
  276. padding-left: 4px;
  277. padding-right: 4px;
  278. }
  279. .btn-group.open .dropdown-toggle.btn-link {
  280. box-shadow: none;
  281. }
  282. .btn-lg .caret, .btn-group-lg > .btn .caret {
  283. border-width: 5px 5px 0;
  284. }
  285. .dropup .btn-lg .caret, .dropup .btn-group-lg > .btn .caret {
  286. border-width: 0 5px 5px;
  287. }
  288. .btn-group-vertical > .btn,
  289. .btn-group-vertical > .btn-group,
  290. .btn-group-vertical > .btn-group > .btn {
  291. display: block;
  292. float: none;
  293. width: 100%;
  294. max-width: 100%;
  295. }
  296. .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after {
  297. content: " ";
  298. display: table;
  299. }
  300. .btn-group-vertical > .btn-group:after {
  301. clear: both;
  302. }
  303. .btn-group-vertical > .btn-group > .btn {
  304. float: none;
  305. }
  306. .btn-group-vertical > .btn + .btn,
  307. .btn-group-vertical > .btn + .btn-group,
  308. .btn-group-vertical > .btn-group + .btn,
  309. .btn-group-vertical > .btn-group + .btn-group {
  310. margin-top: -1px;
  311. margin-left: 0;
  312. }
  313. .btn-group--operations {
  314. width: 100%;
  315. display: flex;
  316. justify-content: center;
  317. }
  318. .block-group-add-event-block,
  319. .block-group-add-topic-block,
  320. .block-event-add-block,
  321. .block-topic-add-block,
  322. .block-group-add-block {
  323. display: inline-block;
  324. }
  325. .shariff-button {
  326. text-align: center;
  327. }
  328. @media (min-width: 900px) {
  329. .block-group-add-event-block,
  330. .block-group-add-topic-block,
  331. .block-event-add-block,
  332. .block-topic-add-block,
  333. .block-group-add-block {
  334. display: block;
  335. }
  336. .block-group-add-event-block .btn,
  337. .block-group-add-topic-block .btn,
  338. .block-event-add-block .btn,
  339. .block-topic-add-block .btn,
  340. .block-group-add-block .btn {
  341. width: 100%;
  342. margin-bottom: 0.75rem;
  343. }
  344. }
  345. @media (max-width: 899px) {
  346. .block-group-add-event-block,
  347. .block-group-add-topic-block,
  348. .block-event-add-block,
  349. .block-topic-add-block,
  350. .block-group-add-block {
  351. margin-top: 1rem;
  352. }
  353. }