fix(style): layout flow, search restyle
This commit is contained in:
		@@ -20,7 +20,6 @@ export default ((userOpts?: Partial<SearchOptions>) => {
 | 
				
			|||||||
    return (
 | 
					    return (
 | 
				
			||||||
      <div class={classNames(displayClass, "search")}>
 | 
					      <div class={classNames(displayClass, "search")}>
 | 
				
			||||||
        <button class="search-button">
 | 
					        <button class="search-button">
 | 
				
			||||||
          <p>{i18n(cfg.locale).components.search.title}</p>
 | 
					 | 
				
			||||||
          <svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.9 19.7">
 | 
					          <svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.9 19.7">
 | 
				
			||||||
            <title>Search</title>
 | 
					            <title>Search</title>
 | 
				
			||||||
            <g class="search-path" fill="none">
 | 
					            <g class="search-path" fill="none">
 | 
				
			||||||
@@ -28,6 +27,7 @@ export default ((userOpts?: Partial<SearchOptions>) => {
 | 
				
			|||||||
              <circle cx="8" cy="8" r="7" />
 | 
					              <circle cx="8" cy="8" r="7" />
 | 
				
			||||||
            </g>
 | 
					            </g>
 | 
				
			||||||
          </svg>
 | 
					          </svg>
 | 
				
			||||||
 | 
					          <p>{i18n(cfg.locale).components.search.title}</p>
 | 
				
			||||||
        </button>
 | 
					        </button>
 | 
				
			||||||
        <div class="search-container">
 | 
					        <div class="search-container">
 | 
				
			||||||
          <div class="search-space">
 | 
					          <div class="search-space">
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,8 +8,8 @@
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  & > .search-button {
 | 
					  & > .search-button {
 | 
				
			||||||
    background-color: color-mix(in srgb, var(--lightgray) 60%, var(--light));
 | 
					    background-color: transparent;
 | 
				
			||||||
    border: none;
 | 
					    border: 1px var(--lightgray) solid;
 | 
				
			||||||
    border-radius: 4px;
 | 
					    border-radius: 4px;
 | 
				
			||||||
    font-family: inherit;
 | 
					    font-family: inherit;
 | 
				
			||||||
    font-size: inherit;
 | 
					    font-size: inherit;
 | 
				
			||||||
@@ -21,11 +21,10 @@
 | 
				
			|||||||
    cursor: pointer;
 | 
					    cursor: pointer;
 | 
				
			||||||
    white-space: nowrap;
 | 
					    white-space: nowrap;
 | 
				
			||||||
    width: 100%;
 | 
					    width: 100%;
 | 
				
			||||||
    justify-content: space-between;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    & > p {
 | 
					    & > p {
 | 
				
			||||||
      display: inline;
 | 
					      display: inline;
 | 
				
			||||||
      padding: 0 1rem;
 | 
					      color: var(--gray);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    & svg {
 | 
					    & svg {
 | 
				
			||||||
@@ -36,7 +35,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      .search-path {
 | 
					      .search-path {
 | 
				
			||||||
        stroke: var(--darkgray);
 | 
					        stroke: var(--darkgray);
 | 
				
			||||||
        stroke-width: 2px;
 | 
					        stroke-width: 1.5px;
 | 
				
			||||||
        transition: stroke 0.5s ease;
 | 
					        transition: stroke 0.5s ease;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -44,22 +44,8 @@ ul,
 | 
				
			|||||||
.typst-doc * {
 | 
					.typst-doc * {
 | 
				
			||||||
  color: var(--darkgray);
 | 
					  color: var(--darkgray);
 | 
				
			||||||
  fill: var(--darkgray);
 | 
					  fill: var(--darkgray);
 | 
				
			||||||
  hyphens: auto;
 | 
					  overflow-wrap: break-word;
 | 
				
			||||||
}
 | 
					  text-wrap: pretty;
 | 
				
			||||||
 | 
					 | 
				
			||||||
p,
 | 
					 | 
				
			||||||
ul,
 | 
					 | 
				
			||||||
text,
 | 
					 | 
				
			||||||
a,
 | 
					 | 
				
			||||||
li,
 | 
					 | 
				
			||||||
ol,
 | 
					 | 
				
			||||||
ul,
 | 
					 | 
				
			||||||
.katex,
 | 
					 | 
				
			||||||
.math,
 | 
					 | 
				
			||||||
.typst-doc,
 | 
					 | 
				
			||||||
.typst-doc * {
 | 
					 | 
				
			||||||
  overflow-wrap: anywhere;
 | 
					 | 
				
			||||||
  /* tr and td removed from list of selectors for overflow-wrap, allowing them to use default 'normal' property value */
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.math {
 | 
					.math {
 | 
				
			||||||
@@ -225,7 +211,7 @@ a {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    & .sidebar {
 | 
					    & .sidebar {
 | 
				
			||||||
      gap: 2rem;
 | 
					      gap: 1.2rem;
 | 
				
			||||||
      top: 0;
 | 
					      top: 0;
 | 
				
			||||||
      box-sizing: border-box;
 | 
					      box-sizing: border-box;
 | 
				
			||||||
      padding: $topSpacing 2rem 2rem 2rem;
 | 
					      padding: $topSpacing 2rem 2rem 2rem;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user