crowi.scss 5.0 KB

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