crowi.scss 5.0 KB

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