crowi.scss 5.2 KB

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