crowi.scss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. // import crowi variable
  2. @import 'variables';
  3. // import bootstrap
  4. @import 'bootstrap';
  5. @import 'font-awesome';
  6. // crowi component
  7. @import 'mixins';
  8. @import 'layout';
  9. @import 'form';
  10. @import 'wiki';
  11. @import 'admin';
  12. ul {
  13. padding-left: 18px;
  14. }
  15. .meta {
  16. background: #f0f0f0;
  17. padding: 10px;
  18. font-size: 0.9em;
  19. color: #888;
  20. margin-top: 10px;
  21. border-radius: 5px;
  22. }
  23. .help-block {
  24. font-size: .9em;
  25. }
  26. header nav ul img {
  27. vertical-align: middle;
  28. }
  29. footer, aside {
  30. h4:first-child, h3:first-child {
  31. margin-top: 0;
  32. }
  33. h4 {
  34. font-size: 1.1em;
  35. }
  36. }
  37. .preview-body {
  38. border-top: solid 1px #ccc;
  39. padding-top: 5px;
  40. padding-bottom: 5px;
  41. max-height: 500px;
  42. overflow: scroll;
  43. }
  44. .form-element {
  45. margin-bottom: 1em;
  46. }
  47. article {
  48. header {
  49. margin-bottom: 20px;
  50. }
  51. }
  52. footer {
  53. h4,
  54. h3 {
  55. margin-bottom: 0.5em;
  56. font-weight: normal;
  57. &:first-child {
  58. margin-top: 0;
  59. }
  60. }
  61. p {
  62. margin: 0.3em 0 0.5em 0;
  63. &:first-child {
  64. margin-top: 0;
  65. }
  66. }
  67. }
  68. .modal {
  69. p {
  70. font-size: 1em;
  71. }
  72. h3, h4 {
  73. font-size: 18px;
  74. margin: 0;
  75. }
  76. }
  77. // {{{ add badge variation
  78. .badge-default {
  79. @include label-variant($label-default-bg);
  80. }
  81. .badge-primary {
  82. @include label-variant($label-primary-bg);
  83. }
  84. .badge-success {
  85. @include label-variant($label-success-bg);
  86. }
  87. .badge-info {
  88. @include label-variant($label-info-bg);
  89. }
  90. .badge-warning {
  91. @include label-variant($label-warning-bg);
  92. }
  93. .badge-danger {
  94. @include label-variant($label-danger-bg);
  95. }
  96. // }}}
  97. .dropdown-menu {
  98. .dropdown-button {
  99. padding: 3px 20px;
  100. }
  101. }
  102. .notif {
  103. a {
  104. }
  105. .badge {
  106. position: absolute;
  107. top: 6px;
  108. right: 1px;
  109. padding: 3px 6px;
  110. font-size: 11px;
  111. font-weight: normal;
  112. }
  113. }
  114. .dropdown-menu {
  115. li {
  116. a {
  117. padding: 5px 20px;
  118. }
  119. }
  120. }
  121. // user picture
  122. .picture {
  123. // 通常サイズ
  124. width: 24px;
  125. height: 24px;
  126. // size list
  127. &.picture-lg {
  128. width: 32px;
  129. height: 32px;
  130. }
  131. &.picture-sm {
  132. width: 16px;
  133. height: 16px;
  134. }
  135. &.picture-xs {
  136. width: 12px;
  137. height: 12px;
  138. }
  139. // design option
  140. &.picture-sq {
  141. border-radius: 2px;
  142. border: solid 1px #ccc;
  143. }
  144. &.picture-rounded {
  145. border-radius: 50%;
  146. box-shadow: 0 0 2px #ccc;
  147. }
  148. }
  149. // components
  150. .flip-container { // {{{
  151. perspective: 1000;
  152. .flipper {
  153. .front, .back {
  154. -webkit-backface-visibility: hidden;
  155. backface-visibility: hidden;
  156. transition: 0.4s;
  157. -webkit-transform-style: preserve-3d;
  158. transform-style: preserve-3d;
  159. }
  160. .front {
  161. z-index: 2;
  162. }
  163. .back {
  164. }
  165. .back,
  166. &.to-flip .front {
  167. -webkit-transform: rotateY(180deg);
  168. transform: rotateY(180deg);
  169. }
  170. &.to-flip .back {
  171. -webkit-transform: rotateY(0);
  172. transform: rotateY(0);
  173. }
  174. }
  175. }
  176. // buttons
  177. .btn-primary {
  178. }
  179. $btn-facebook-color: #4c66a4;
  180. .btn-facebook {
  181. @include button-variant(lighten($btn-facebook-color, 50%), $btn-facebook-color, darken($btn-facebook-color, 20%));
  182. }
  183. $btn-google-color: rgb(204,89,71);
  184. .btn-google {
  185. @include button-variant(lighten($btn-google-color, 50%), $btn-google-color, darken($btn-google-color, 20%));
  186. }
  187. input.searching {
  188. background: #fff url(/images/loading_s.gif) right no-repeat;
  189. }
  190. .search-list {
  191. padding: 0;
  192. li {
  193. list-style: none;
  194. }
  195. .list-link {
  196. padding-bottom: 5px;
  197. a {
  198. display: block;
  199. word-break: break-all;
  200. font-weight: bold;
  201. text-decoration: none;
  202. span {
  203. font-weight: normal;
  204. }
  205. &:hover {
  206. background: #f0f0f0;
  207. color: #666;
  208. }
  209. }
  210. .search-description {
  211. font-size: .8em;
  212. color: #999;
  213. }
  214. }
  215. .next-link {
  216. a {
  217. display: block;
  218. text-align: center;
  219. }
  220. }
  221. }
  222. .fk-hide {
  223. display: none;
  224. }
  225. // notification
  226. .fk-notif {
  227. width: 100%;
  228. position: fixed;
  229. bottom: -80px;
  230. z-index: 8;
  231. padding: 10px;
  232. box-shadow: -1px 0 3px 0px #666;
  233. font-weight: bold;
  234. transition: all .3s;
  235. &.fk-notif-danger {
  236. background: #b94a48;
  237. color: #fff;
  238. a {
  239. color: #f5ecf4;
  240. text-decoration: underline;
  241. &:hover {
  242. text-decoration: none;
  243. }
  244. }
  245. }
  246. &.fk-notif-warning {
  247. background: #fcf8e3;
  248. color: #8a6d3b;
  249. }
  250. }
  251. // external-services
  252. .crowi {
  253. .github-link {
  254. background: #e5f6f8;
  255. padding: 1px;
  256. border-radius: 3px;
  257. display: inline-block;
  258. border: solid 1px #ccc;
  259. color: #555;
  260. text-decoration: none;
  261. &:hover {
  262. background: #afdadf;
  263. }
  264. }
  265. }
  266. .fullscreen-layer {
  267. position: fixed;
  268. top: 0;
  269. left: 0;
  270. width: 100%;
  271. height: 0;
  272. background: rgba(0, 0, 0, .5);
  273. z-index: 9999;
  274. opacity: 0;
  275. -webkit-transition: opacity .3s ease-out;
  276. -moz-transition: opacity .3s ease-out;
  277. transition: opacity .3s ease-out;
  278. & > * {
  279. box-shadow: 0 0 20px rgba(0, 0, 0, .8);
  280. }
  281. }
  282. .overlay-on {
  283. .container-fluid,
  284. .crowi-header {
  285. -webkit-filter: blur(5px);
  286. -moz-filter: blur(5px);
  287. filter: blur(5px);
  288. }
  289. .fullscreen-layer {
  290. opacity: 1;
  291. height: 100%;
  292. }
  293. }
  294. #presentation-container {
  295. position: absolute;
  296. top: 5%;
  297. left: 5%;
  298. width: 90%;
  299. height: 90%;
  300. background: #000;
  301. iframe {
  302. width: 100%;
  303. height: 100%;
  304. border: 0;
  305. }
  306. }