2
0

crowi.scss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  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. .fk-hide {
  220. display: none;
  221. }
  222. // notification
  223. .fk-notif {
  224. width: 100%;
  225. position: fixed;
  226. bottom: -80px;
  227. z-index: 8;
  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. // external-services
  249. .crowi {
  250. .github-link {
  251. background: #e5f6f8;
  252. padding: 1px;
  253. border-radius: 3px;
  254. display: inline-block;
  255. border: solid 1px #ccc;
  256. color: #555;
  257. text-decoration: none;
  258. &:hover {
  259. background: #afdadf;
  260. }
  261. }
  262. }
  263. .fullscreen-layer {
  264. position: fixed;
  265. top: 0;
  266. left: 0;
  267. width: 100%;
  268. height: 0;
  269. background: rgba(0, 0, 0, .5);
  270. z-index: 9999;
  271. opacity: 0;
  272. -webkit-transition: opacity .3s ease-out;
  273. -moz-transition: opacity .3s ease-out;
  274. transition: opacity .3s ease-out;
  275. & > * {
  276. box-shadow: 0 0 20px rgba(0, 0, 0, .8);
  277. }
  278. }
  279. .overlay-on {
  280. .container-fluid,
  281. .crowi-header {
  282. -webkit-filter: blur(5px);
  283. -moz-filter: blur(5px);
  284. filter: blur(5px);
  285. }
  286. .fullscreen-layer {
  287. opacity: 1;
  288. height: 100%;
  289. }
  290. }
  291. #presentation-container {
  292. position: absolute;
  293. top: 5%;
  294. left: 5%;
  295. width: 90%;
  296. height: 90%;
  297. background: #000;
  298. iframe {
  299. width: 100%;
  300. height: 100%;
  301. border: 0;
  302. }
  303. }