crowi.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  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. .highlighted {
  148. color: #333;
  149. background-color: rgba(255,255,140,0.5);
  150. border-radius: 3px;
  151. }
  152. // components
  153. .flip-container { // {{{
  154. perspective: 1000;
  155. .flipper {
  156. .front, .back {
  157. -webkit-backface-visibility: hidden;
  158. backface-visibility: hidden;
  159. transition: 0.4s;
  160. -webkit-transform-style: preserve-3d;
  161. transform-style: preserve-3d;
  162. }
  163. .front {
  164. z-index: 2;
  165. }
  166. .back {
  167. }
  168. .back,
  169. &.to-flip .front {
  170. -webkit-transform: rotateY(180deg);
  171. transform: rotateY(180deg);
  172. }
  173. &.to-flip .back {
  174. -webkit-transform: rotateY(0);
  175. transform: rotateY(0);
  176. }
  177. }
  178. }
  179. // buttons
  180. .btn-primary {
  181. }
  182. $btn-facebook-color: #4c66a4;
  183. .btn-facebook {
  184. @include button-variant(lighten($btn-facebook-color, 50%), $btn-facebook-color, darken($btn-facebook-color, 20%));
  185. }
  186. $btn-google-color: rgb(204,89,71);
  187. .btn-google {
  188. @include button-variant(lighten($btn-google-color, 50%), $btn-google-color, darken($btn-google-color, 20%));
  189. }
  190. input.searching {
  191. background: #fff url(/images/loading_s.gif) right no-repeat;
  192. }
  193. .search-list {
  194. padding: 0;
  195. li {
  196. list-style: none;
  197. }
  198. .list-link {
  199. padding-bottom: 5px;
  200. a {
  201. display: block;
  202. word-break: break-all;
  203. font-weight: bold;
  204. text-decoration: none;
  205. span {
  206. font-weight: normal;
  207. }
  208. &:hover {
  209. background: #f0f0f0;
  210. color: #666;
  211. }
  212. }
  213. .search-description {
  214. font-size: .8em;
  215. color: #999;
  216. }
  217. }
  218. .next-link {
  219. a {
  220. display: block;
  221. text-align: center;
  222. }
  223. }
  224. }
  225. // notification
  226. .fk-notif {
  227. display: none;
  228. bottom: 0;
  229. left: 0;
  230. width: 100%;
  231. position: fixed;
  232. z-index: 1029;
  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. .on-edit .fk-notif {
  254. bottom: 50px;
  255. z-index: 1061;
  256. }
  257. // external-services
  258. .crowi {
  259. .github-link {
  260. background: #e5f6f8;
  261. padding: 1px;
  262. border-radius: 3px;
  263. display: inline-block;
  264. border: solid 1px #ccc;
  265. color: #555;
  266. text-decoration: none;
  267. &:hover {
  268. background: #afdadf;
  269. }
  270. }
  271. }
  272. .fullscreen-layer {
  273. position: fixed;
  274. top: 0;
  275. left: 0;
  276. width: 100%;
  277. height: 0;
  278. background: rgba(0, 0, 0, .5);
  279. z-index: 9999;
  280. opacity: 0;
  281. -webkit-transition: opacity .3s ease-out;
  282. -moz-transition: opacity .3s ease-out;
  283. transition: opacity .3s ease-out;
  284. & > * {
  285. box-shadow: 0 0 20px rgba(0, 0, 0, .8);
  286. }
  287. }
  288. .overlay-on {
  289. .container-fluid,
  290. .crowi-header {
  291. -webkit-filter: blur(5px);
  292. -moz-filter: blur(5px);
  293. filter: blur(5px);
  294. }
  295. .fullscreen-layer {
  296. opacity: 1;
  297. height: 100%;
  298. }
  299. }
  300. #presentation-container {
  301. position: absolute;
  302. top: 5%;
  303. left: 5%;
  304. width: 90%;
  305. height: 90%;
  306. background: #000;
  307. iframe {
  308. width: 100%;
  309. height: 100%;
  310. border: 0;
  311. }
  312. }