styles.css
This file
Path
examples/demo/src/styles.css
235 lines · 3.5 KiB · CSS
Last changed by
feat: add zustand playground (#3209)Triumph-lightbefore adoptionddfc158
History of this fileTake it
The walk stopped after 200 commits: lines older than f85898f point at it.
chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f
lines 1–160why, one step back1* {2 box-sizing: border-box;3}45html,6body,7#root {8 width: 100%;9 height: 100%;10 margin: 0;11 padding: 0;12 -webkit-touch-callout: none;13 overflow: hidden;14 background: #010101;15}1617#root {18 overflow: hidden;19}2021body {22 font-family:23 -apple-system,24 BlinkMacSystemFont,25 avenir next,26 avenir,27 helvetica neue,28 helvetica,29 ubuntu,30 roboto,31 noto,32 segoe ui,33 arial,34 sans-serif;35}3637.main {38 position: absolute;39 top: 0;40 left: 0;41 width: 100%;42 height: 100%;43 color: white;44}4546.main > .code {47 position: absolute;48 right: 10vw;49 margin-right: -60px;50 width: 640px;51 max-width: 80%;52 height: 100%;53 display: flex;54 align-items: center;55 justify-content: center;56}5758.code-container {59 position: relative;60 margin-bottom: -60px;61}6263.counter {64 position: absolute;65 top: -100px;66 right: -20px;67 color: white;68 background: #394a52;69 padding: 40px;70 border-radius: 10px;71 box-shadow: 0 16px 40px -5px rgba(0, 0, 0, 0.5);72 width: 120px;73 height: 120px;74 font-size: 3em;75}7677.counter > span {78 position: absolute;79 left: 50%;80 top: 50%;81 margin-top: -15px;82 transform: translate3d(-50%, -50%, 0);83}8485.counter > button {86 margin: 10px;87 padding: 5px 10px;88 position: absolute;89 left: 0;90 bottom: 0;91 width: 100px;92 border-radius: 5px;93 border: solid 2px white;94 outline: none;95 background: transparent;96 color: white;97 cursor: pointer;98}99100.code-container pre[class*='language-'] {101 margin-top: -50px;102 display: inline-block;103 width: auto !important;104 padding: 40px 50px 40px 45px;105 font-size: 0.8rem !important;106 border-radius: 10px !important;107 box-shadow: 0 16px 40px -5px rgba(0, 0, 0, 1);108 white-space: pre-wrap !important;109}110111span.header-left {112 font-weight: 700;113 text-transform: uppercase;114 position: absolute;115 display: inline-block;116 top: 40px;117 left: 40px;118 font-size: 3em;119 color: white;120 line-height: 1em;121}122123a {124 font-family:125 -apple-system,126 BlinkMacSystemFont,127 avenir next,128 avenir,129 helvetica neue,130 helvetica,131 ubuntu,132 roboto,133 noto,134 segoe ui,135 arial,136 sans-serif;137 font-weight: 400;138 font-size: 16px;139 color: inherit;140 position: absolute;141 display: inline;142 text-decoration: none;143}144145.nav {146 align-items: center;147 display: flex;148 gap: 16px;149 justify-content: flex-end;150 left: 40px;151 position: fixed;152 right: 40px;153 top: 40px;154}155156.nav a {157 position: relative;158 flex: 0 0 auto;159}160feat: add zustand playground (#3209)Triumph-lightbefore adoptionddfc158
lines 161–162why, one step back161.bottom {162 position: fixed;chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f
lines 163–164why, one step back163 bottom: 40px;164 left: 40px;feat: add zustand playground (#3209)Triumph-lightbefore adoptionddfc158
lines 165–170why, one step back165 right: 40px;166 display: flex;167 flex-wrap: wrap;168 align-items: center;169 justify-content: space-between;170 gap: 12px;chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f
lines 171–172why, one step back171}172feat: add zustand playground (#3209)Triumph-lightbefore adoptionddfc158
lines 173–180why, one step back173.bottom a {174 position: static;175}176177.bottom-links {178 display: flex;179 gap: 16px;180 align-items: center;chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f
lines 181–235why, one step back181}182183.snippet-container {184 display: flex;185 align-items: center;186 gap: 4px;187 position: absolute;188 bottom: 0;189 right: 0;190 padding: 5px;191}192193.snippet-lang {194 background-color: #272822;195 color: #fff;196 outline: 0;197 border: 0;198}199200.copy-button {201 box-shadow: none;202 text-decoration: none;203 font-size: 14px;204 font-family: sans-serif;205 line-height: 1;206 padding: 12px;207 width: auto;208 border-radius: 5px;209 border: 0;210 outline: none;211 background: transparent;212 color: #f8f9fa;213 cursor: pointer;214}215216.copy-button:hover {217 background-color: #5f5e5d;218}219220@media only screen and (max-width: 700px) {221 span.header-left {222 font-size: 1em;223 }224 .main > .code {225 margin-right: -0px;226 }227 .code-container > pre[class*='language-'] {228 font-size: 0.6rem !important;229 border-radius: 10px 10px 0 0 !important;230 }231 .counter {232 position: absolute;233 top: -120px;234 }235}