crowi.scss 6.3 KB

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