crowi.scss 5.1 KB

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