diff --git a/index/css/prettify-dark.css b/index/css/prettify-dark.css new file mode 100644 index 0000000..4df2fc2 --- /dev/null +++ b/index/css/prettify-dark.css @@ -0,0 +1,119 @@ +/*! Color themes for Google Code Prettify | MIT License | github.com/jmblog/color-themes-for-google-code-prettify */ +.prettyprint { + background: #1d1f21; + font-family: Menlo, "Bitstream Vera Sans Mono", "DejaVu Sans Mono", Monaco, Consolas, monospace; + border: 0 !important; + } + + .pln { + color: #c5c8c6; + } + + /* Specify class=linenums on a pre to get line numbering */ + ol.linenums { + margin-top: 0; + margin-bottom: 0; + color: #969896; + } + + li.L0, + li.L1, + li.L2, + li.L3, + li.L4, + li.L5, + li.L6, + li.L7, + li.L8, + li.L9 { + padding-left: 1em; + background-color: #1d1f21; + list-style-type: decimal; + } + + @media screen { + + /* string content */ + + .str { + color: #b5bd68; + } + + /* keyword */ + + .kwd { + color: #b294bb; + } + + /* comment */ + + .com { + color: #969896; + } + + /* type name */ + + .typ { + color: #81a2be; + } + + /* literal value */ + + .lit { + color: #de935f; + } + + /* punctuation */ + + .pun { + color: #c5c8c6; + } + + /* lisp open bracket */ + + .opn { + color: #c5c8c6; + } + + /* lisp close bracket */ + + .clo { + color: #c5c8c6; + } + + /* markup tag name */ + + .tag { + color: #cc6666; + } + + /* markup attribute name */ + + .atn { + color: #de935f; + } + + /* markup attribute value */ + + .atv { + color: #8abeb7; + } + + /* declaration */ + + .dec { + color: #de935f; + } + + /* variable name */ + + .var { + color: #cc6666; + } + + /* function name */ + + .fun { + color: #81a2be; + } + } \ No newline at end of file diff --git a/index/css/prettify.css b/index/css/prettify.css new file mode 100644 index 0000000..e6fe342 --- /dev/null +++ b/index/css/prettify.css @@ -0,0 +1 @@ +.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.clo,.opn,.pun{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.kwd,.tag,.typ{font-weight:700}.str{color:#060}.kwd{color:#006}.com{color:#600;font-style:italic}.typ{color:#404}.lit{color:#044}.clo,.opn,.pun{color:#440}.tag{color:#006}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} \ No newline at end of file diff --git a/index/css/style.css b/index/css/style.css index 4e4b66e..fdfa818 100644 --- a/index/css/style.css +++ b/index/css/style.css @@ -1,6 +1,50 @@ +/* if no preference given */ body { + --text-color: #222; + --bkg-color: #fff; + --input-color: #222 !important; + --card-color: #fff !important; + +} +body.dark-theme { + --text-color: #eee; + --bkg-color: #121212; + --input-color: #fff !important; + --card-color: #1D1F21 !important; +} + +@media (prefers-color-scheme: dark) { + /* defaults to dark theme */ + body { + --text-color: #eee; + --bkg-color: #121212; + --input-color: #fff !important; + --card-color: #1D1F21 !important; + } + body.light-theme { + --text-color: #222; + --bkg-color: #fff; + --input-color: #222 !important; + --card-color: #fff !important; + } +} + + +/* set color properties based on theme */ +body { + background-color: var(--bkg-color); + color: var(--text-color); padding-bottom: 50px; } + +.text-input{ + color: var(--input-color) !important; +} + +.card { + background-color: var(--card-color) !important; +} + .mt-10 { margin-top:10px; } @@ -249,4 +293,4 @@ circle { .request-list.selected { background: #dadfe3;; -} \ No newline at end of file +} diff --git a/index/index.html b/index/index.html index 4c5f95d..ece2611 100644 --- a/index/index.html +++ b/index/index.html @@ -11,9 +11,20 @@ +
+=h&&(c+=2);f>=k&&(w+=2)}}finally{g&&(g.style.display=a)}}catch(y){D.console&&console.log(y&&y.stack||y)}}var D="undefined"!==typeof window? +window:{},B=["break,continue,do,else,for,if,return,while"],F=[[B,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],H=[F,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"], +O=[F,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],P=[F,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"], +F=[F,"abstract,async,await,constructor,debugger,enum,eval,export,from,function,get,import,implements,instanceof,interface,let,null,of,set,undefined,var,with,yield,Infinity,NaN"],Q=[B,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],R=[B,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"], +B=[B,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],S=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,W=/\S/,X=x({keywords:[H,P,O,F,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",Q,R,B],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}), +I={};t(X,["default-code"]);t(G([],[["pln",/^[^]+/],["dec",/^]*(?:>|$)/],["com",/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^