| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- // import react-bootstrap-typeahead
- @import "~react-bootstrap-typeahead/css/Typeahead";
- @import "./page_list";
- .search-listpage-icon {
- font-size: 16px;
- color: #999;
- }
- .search-listpage-clear {
- z-index: 3;
- display: none;
- position: absolute;
- right: 8px;
- z-index: 10;
- font-size: 0.6em;
- width: 22px;
- height: 22px;
- color: #ccc;
- padding: 8px;
- }
- .search-input-group {
- display: inline-block;
- margin-left: 20px;
- margin-bottom: 0;
- width: 200px;
- vertical-align: bottom;
- }
- .search-top {
- .search-top-input-group {
- .search-top-clear {
- position: absolute;
- right: 40px;
- z-index: 10;
- width: 22px;
- height: 22px;
- top: 7px;
- color: #ccc;
- padding: 0;
- }
- }
- // using react-bootstrap-typeahead
- // see: https://github.com/ericgio/react-bootstrap-typeahead
- .rbt-menu {
- li a span {
- .picture {
- width: 14px;
- height: 14px;
- }
- .page-path {
- display: inline;
- padding: 0 4px;
- color: inherit;
- }
- .page-list-meta {
- font-size: .9em;
- color: #999;
- >span {
- margin-right: .3rem;
- }
- }
- }
- }
- // hide loading icon
- .rbt-aux {
- display: none;
- }
- }
- .search-result {
- .search-result-list {
- nav {
- &.affix {
- top: 8px;
- width: 32%;
- padding-right: 0;
- padding-bottom: 50px;
- height: 100%;
- overflow-y: scroll;
- }
- .nav {
- > li {
- padding: 0px 10px 0 0;
- &.active {
- padding-right: 7px;
- border-right: solid 3px #666;
- background: #f0f0f0;
- }
- }
- }
- }
- .search-result-meta {
- margin-bottom: 16px;
- font-weight: bold;
- }
- .search-result-list-delete-checkbox {
- margin: 0 10px 0 0;
- vertical-align: middle;
- }
- }
- .search-result-content {
- padding-bottom: 32px;
- .search-result-page {
- > h2 {
- font-size: 20px;
- }
- &:first-child > h2 {
- margin-top: 0;
- }
- .wiki {
- border: solid 1px #ccc;
- padding: 16px;
- border-radius: 3px;
- font-size: 13px;
- }
- }
- }
- }
- // Smartphone and Tablet
- @media (max-width: $screen-xs-max) {
- .search-top {
- margin-top: 4px 0 0 0;
- padding: 0;
- border-style: none !important;
- box-shadow: none !important;
- -webkit-box-shadow: none !important;
- }
- .search-result {
- .search-result-content {
- .search-result-page {
- .wiki {
- h1, h2, h3, h4, h5, h6 {
- font-size: medium;
- }
- height: 250px;
- overflow: scroll;
- }
- }
- }
- }
- }
- .search-top .search-form {
- @media (min-width: $screen-sm-max) {
- // using react-bootstrap-typeahead
- // see: https://github.com/ericgio/react-bootstrap-typeahead
- .rbt-input input {
- width: 500px !important;
- }
- }
- @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
- background-color: #0f0;
- // using react-bootstrap-typeahead
- // see: https://github.com/ericgio/react-bootstrap-typeahead
- .rbt-input input {
- width: 270px !important;
- }
- }
- @media (min-width: $screen-xs-min) and (max-width: $screen-xs-max) {
- width: 70%;
- }
- @media (min-width: $screen-xs-min*2/3) and (max-width: $screen-xs-min) {
- width: 58%;
- }
- @media (max-width: $screen-xs-min*2/3) {
- width: 40%;
- min-width: 120px;
- }
- }
|