crowi.scss 6.0 KB

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