crowi.scss 6.0 KB

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