pokemon-showdown-client/play.pokemonshowdown.com/style/teambuilder.css
Guangcong Luo b5630d3ff2
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
Preact: Improve teambuilder more
- New export format
  - NOT FINAL, wow did Twitter freak out when they saw this
  - I have not made a decision on whether to keep this new export format

- Stub details form
- Checkbox for old export format
- 510 EV limit
- Show full search results (with windowing)
- Choosing generations rather than specific formats
- Searching/filtering/sorting results
  - Reverse sorting filter columns (move types/categories and
    pokemon types/abilities) is now possible even on oldclient

Bugfixes:
- Gen 1 (no item) species selection
- "Add pokemon" button positioning
- Dark mode results
- Width (to fit the final column of results)
- Highlighted line width
2025-04-29 00:22:50 +00:00

531 lines
9.4 KiB
CSS

/*********************************************************
* Teambuilder list
*********************************************************/
.folderpane {
position: absolute;
left: 0;
top: 0;
bottom: 0;
padding: 0;
border-left: 5px solid #d7e3ec;
width: 154px;
overflow: auto;
overflow-x: hidden;
}
.teampane {
position: absolute;
left: 159px;
top: 0;
right: 0;
bottom: 0;
padding: 5px 0 5px 8px;
overflow: auto;
overscroll-behavior-block: contain;
}
@media (max-width:649px) {
.folderpane {
display: none;
}
.teampane {
left: 0;
}
}
.folderlist {
height: 100%;
width: 154px;
display: table;
margin: 0;
padding: 0;
border: 0;
}
.folderlist .folder,
.folderlist .foldersep {
display: table-row;
margin: 0;
padding: 0;
border: 0;
height: 30px;
}
.folderlist .foldersep {
height: 15px;
}
.folderlist .foldersep:before {
display: table-cell;
height: 15px;
background: #d7e3ec;
border-right: 1px solid #888888;
content: '';
}
.folderlistafter {
display: table-row;
margin: 0;
padding: 0;
border: 0;
height: auto;
}
.folderlistbefore {
display: table-row;
margin: 0;
padding: 0;
border: 0;
height: 12px;
content: '';
}
.folderlistafter:before,
.folderlistbefore:before {
display: table-cell;
background: #d7e3ec;
margin: 0;
padding: 0;
border: 0;
border-right: 1px solid #888888;
content: '';
}
.folderpane i {
display: inline-block;
width: 16px;
color: #777777;
}
.folderpane .text,
.folderpane h3 {
margin: 0;
padding: 13px 0 0 0;
height: 17px;
font-size: 9pt;
background: #d7e3ec;
color: black;
border-right: 1px solid #888888;
}
.folderpane .text {
height: 23px;
padding: 7px 0 0 7px;
}
.folder .selectFolder {
display: block;
padding: 0 0 0 7px;
border: 0;
border-right: 1px solid #888888;
background: #d7e3ec;
color: black;
width: auto;
max-width: 146px; /* I have no idea why this is required and width doesn't work */
padding-top: 7px;
height: 23px;
font-size: 9pt;
font-family: Verdana, sans-serif;
white-space: nowrap;
overflow: hidden;
text-align: left;
cursor: pointer;
user-select: none;
-webkit-user-select: none;
}
.folder .selectFolder:hover {
background: #c7d3dc;
}
.folder .selectFolder:active {
background: #b7c3cc;
}
.folder .selectFolder.active {
background: #27333c;
color: white;
}
.folder.cur .selectFolder,
.folder.cur .selectFolder:hover,
.folder.cur .selectFolder:active {
padding-top: 6px;
height: 22px;
cursor: default;
background: transparent;
color: black;
border-top: 1px solid #888888;
border-bottom: 1px solid #888888;
border-left: 1px solid #888888;
border-right: 0;
padding-left: 6px;
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;
}
/* believe me, there was no other way to do this */
.folderhack1,
.folderhack2 {
position: absolute;
display: block;
left: 0;
width: 1px;
height: 1px;
background: #d7e3ec;
content: '';
}
.folderhack1 {
top: 0;
}
.folderhack2 {
bottom: 0;
}
.folderhack3 {
position: relative;
height: 30px;
}
.teamlist, .teamdropdown {
list-style: none;
margin: 0;
padding: 0;
}
.teamlist li {
margin: 3px 0;
padding: 0;
}
.teamdropdown li {
display: inline-block;
margin: 3px;
padding: 0;
}
.teamlist button {
background: transparent;
border: 1px solid transparent;
border-radius: 4px;
padding: 2px 5px;
margin: 0;
font-size: 9pt;
font-family: Verdana, sans-serif;
}
.teamlist button:hover {
border-color: #888888;
background: #D5D5D5;
}
.teamlist button i {
margin-right: 2px;
}
/* dark */
.dark .folderpane {
border-left-color: #484848;
}
.dark .folderlist .foldersep:before,
.dark .folderlistafter:before,
.dark .folderlistbefore:before,
.dark .folderpane h3,
.dark .folderpane .text,
.dark .folder .selectFolder,
.dark .folderhack1,
.dark .folderhack2 {
background: #484848;
color: #ddd;
}
.dark .folder .selectFolder:hover {
background: #686868;
}
.dark .folderpane i {
color: #ddd;
}
.dark .folder .selectFolder.active,
.dark .folder .selectFolder:active {
background: #27333c;
color: white;
}
.dark .folder.cur .selectFolder {
background: transparent;
}
/*********************************************************
* Teambuilder editor
*********************************************************/
.teamname {
margin: 10px 0 17px 0;
}
.teamname .textbox {
width: 100%;
box-sizing: border-box;
font-size: 15pt;
font-weight: bold;
padding: 4px 6px;
}
.teamtextbox {
width: 100%;
padding-top: 8px;
padding-left: 100px;
box-sizing: border-box;
line-height: 20px;
resize: none;
}
.teaminnertextbox {
width: 320px;
height: 18px;
left: 96px;
position: absolute;
pointer-events: none;
border: 1px solid #4488CC;
border-radius: 3px;
box-shadow: inset 0px 1px 2px #D2D2D2, 0px 0px 5px #66AADD;
background: transparent;
}
.teaminnertextbox-stats, .teaminnertextbox-pokemon {
width: 420px;
}
.teaminnertextbox-item, .teaminnertextbox-ability {
width: 270px;
}
.teaminnertextbox-move {
width: 220px;
}
.searchresults {
background: #f2f2f2;
border: 1px solid #888888;
border-radius: 2px;
box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.3);
position: absolute;
top: 300px;
left: -14px;
width: 640px;
min-height: 150px;
overflow: auto;
max-height: 80vh;
}
.dark .searchresults {
background: #282828;
}
.closesearch {
position: absolute;
top: 1px;
right: 1px;
z-index: 1;
}
.teameditor {
position: relative;
}
.teameditor .heighttester {
position: absolute;
top: 0;
left: 0;
overflow-y: hidden;
height: 10px;
/* I have no clue what the default <textarea> box-sizing is but "content-box" doesn't mean what you'd think */
box-sizing: border-box;
}
.teameditor hr {
position: absolute;
pointer-events: none;
left: 10px;
right: 10px;
}
/* teambuilder set */
.dark .utilichart h3, .dark .dexentry h3, .dark .resultheader h3 {
background: #636363;
color: #F1F1F1;
border: 1px solid #A9A9A9;
text-shadow: 1px 1px 0 rgb(40, 43, 45);
box-shadow: inset 0px 1px 0 rgb(49, 49, 49);
border-right: none;
}
.dark .teambar button {
background: #5A6570;
color: #F1F1F1;
border: 1px solid #AAAAAA;
}
.dark .teambar button:hover {
background: #444C54;
color: #F1F1F1;
border: 1px solid #AAAAAA;
}
.dark .teambar button:disabled, .dark .teambar button:disabled:hover, .dark .teambar button:disabled:active {
color: #ffffff;
background: #2d343a;
border-color: #6bacc5;
opacity: 1;
}
.dark .teambuilder-results .result a.hover,
.dark .teambuilder-results .result a:hover,
.dark .setmenu button:hover,
.dark .teamlist button:hover {
border-color: #777777;
background: rgba(100, 100, 100, 0.5);
color: #FFFFFF;
}
.dark .teambuilder-results .result a.cur {
border-color: #BBBBBB;
background: rgba(100, 100, 100, 0.2);
}
.dark .teambuilder-results .result a.cur:hover {
border-color: #BBBBBB;
background: rgba(100, 100, 100, 0.4);
color: #FFFFFF;
}
.dark .setmenu button,
.dark .teamlist button,
.dark .folder.cur .selectFolder,
.dark .utilichart .namecol,
.dark .utilichart .pokemonnamecol,
.dark .utilichart .movenamecol {
color: #DDD;
}
.dark .utilichart .col {
color: #DDD;
}
.dark .utilichart .cur .col {
color: #FFF;
}
.dark .utilichart a:hover .col {
color: #FFF;
}
/* setstats */
.setdetails, .setstats {
display: block;
box-sizing: border-box;
-moz-box-sizing: border-box;
border: 1px solid #AAAAAA;
border-radius: 3px;
padding: 1px;
margin: 2px 2px 1px 1px;
font-size: 7pt;
box-shadow: inset 0px 1px 2px #CCCCCC, 1px 1px 0 rgba(255,255,255,.6);
background: #F8FBFD;
color: black;
}
.setdetails label, .setstats label {
cursor: pointer;
}
.setdetails:hover, .setstats:hover {
border-color: #474747;
box-shadow: inset 0px 1px 2px #D2D2D2, 1px 1px 0 rgba(255,255,255,.6);
background: #FFFFFF;
}
.setdetails:focus-visible, .setstats:focus-visible,
.dark .setdetails:focus-visible, .dark .setstats:focus-visible {
border: 2px solid #004488;
margin: 1px 1px 0 0;
outline: 0 none;
}
.setdetails:active, .setstats:active {
box-shadow: inset 0px 2px 2px #AAAAAA;
background: #E4E9ED;
border: 2px solid #004488;
margin: 1px 1px 0 0;
outline: 0 none;
}
.setdetails {
width: 50px;
height: 98px;
vertical-align: top;
}
.setdetails:focus,.setdetails:active {
width: 52px;
height: 100px;
}
.setdetails .detailcell {
padding: 2px 4px;
display: block;
font-size: 9pt;
text-align: center;
}
.setdetails .detailcell + .detailcell {
border-top: 1px solid #CCC;
}
.dark .setdetails .detailcell + .detailcell {
border-color: #555;
}
.setdetails label {
float: none;
display: block;
font-weight: normal;
font-size: 7pt;
text-align: center;
padding: 0;
}
.setstats {
width: 138px;
height: 98px;
padding-right: 0;
}
.setstats:focus,.setstats:active {
width: 140px;
height: 100px;
}
.statrow {
display: block;
height: 15px;
}
.setstats label {
float: left;
width: 20px;
height: 5px;
text-align: right;
font-weight: normal;
font-size: 7pt;
padding: 0;
}
.setstats .statgraph {
float: left;
width: 75px;
padding: 0 0 0 3px;
height: 5px;
}
.setstats .statgraph span {
display: block;
margin-top: 3px;
height: 6px;
background: #CCCCCC;
}
.setstats em {
float: left;
font-style: normal;
width: 22px;
height: 5px;
text-align: right;
}
.setstats small {
float: left;
font-size: 7pt;
}
.setstats .statrow-head em {
color: #555555;
}
.setstatbar {
width: 185px;
}
.setstatbar span {
margin: 3px 0 0 5px;
display: block;
height: 12px;
border-bottom: 1px solid #AAAAAA;
border-right: 1px solid #AAAAAA;
background: #CCCCCC;
}
/* when a placeholder is the default value, it can be confusing when
you can't delete it by pressing Backspace */
.default-placeholder:focus::placeholder {
color: transparent;
}