crowi.scss 5.0 KB

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