crowi.scss 5.2 KB

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