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