PrePANã¨ãããµã¤ãã®ãæä¼ãããã¾ããã
id:antipop ããã«é ¼ã¾ãã¦antipopãããä½ã£ã¦ããPrePANï¼http://prepan.org/ï¼ã¨ãããµã¤ãã®ãã¶ã¤ã³ããã¾ããã
> Perlã¢ã¸ã¥ã¼ã«ã®ã¬ãã¥ã¼ãµã¤ã PrePAN ããªã¼ãã³ãã¾ãã
PrePANã¯ã¢ã¸ã¥ã¼ã«ãã¤ãã£ããã©ããæ¢ã«ä¼¼ããããªãã®ãããã®ã§ã¯ï¼ããå®è£
ã«ã¤ãã¦ä¸å®ãâ¦â¦ãããCPANizeããã«éãã¦ã®ååããã¡ã¤ã«æ§æã®æ
£ç¿ãããããªããã誰ãã«ã¡ãã£ã¨ãã§ãã¯ãã¦ããããããã¨ãããããªæ©ã¿ããã人ã®åé¡ã解決ããããã®ãµã¤ãã§ãã使ã£ã¦ã¿ã¦ãã ããã
ãã¶ã¤ã³ã«ã¤ãã¦
ä»äºã®ã¨ããå«ãã¦ãã¶ã¤ã³ããé¡ããããã¨ãã¯ããè¨ããããã¨ãå¤ãã§ãã
ãããæãã«ãã£ããããã¦ï¼ã
ä»åãantipopããã«ãããé¡ããããã®ã§ãããããã ãã§ããæãã®ãã®ãä½ããæè½ãã»ã³ã¹ãç§ã¯ãã£ã¦ãã¾ããããªã®ã§ããã¡ãã£ã¨ã ããã³ããããã£ã¦ããéç³»ã®é
è²ããå¤äººã£ã½ããã¨ãããã¼ã¯ã¼ãã§ä½ãã¾ãããåºæ¬çã«ã¯èªç±ã«ãããã¦ããã£ãã®ã§ãæ°æ´ããã®ããã«æ¥½ããã§ã§ãã¾ããã
CSSã«ã¤ãã¦
ã¨ã³ã¸ãã¢åãã®ãµã¤ãã¨ãããã¨ããã£ã¦å¤ããã©ã¦ã¶ã®ãã¨ã¯æ°ã«ããã«ãæ°ããã¹ã¿ã¤ã«ããããã£ã使ã£ã¦æ§ç¯ãã¾ããã
ã¢ãã³ãªãã©ã¦ã¶ã§ããã°ã»ã¼åç¾ãããç¶æ
ã§è¦ããã¨ãã§ããã¨æãã¾ãã
ãã¿ã³ UI
ãã¿ã³ã£ã½ãUIã®ã»ã¨ãã©ãCSSã®ã¹ã¿ã¤ã«ã§è¡¨ç¾ãã¦ãã¾ããåºæ¬çã«ã¯ backroud gradient, box-shadow, text-shadow ããããå©ç¨ãããã¨ã§ãã¿ã³é¢¨ãªè¦ãç®ã表ç¾ãã¦ãã¾ãã
backroud gradientã¯ãã¾ãå¼·ããããããã¨éæ®ã£ãããªã£ã¦ãã¾ãã®ã§è»½ããããã®ã§ãããä»åã¯å¤äººã£ã½ãæãã¨ãããã¨ãªã®ã§è¥å¹²å¼·èª¿ããæãã«ãã¦ãã¾ãï¼åæãªã¤ã¡ã¼ã¸ã§ããï¼ã
background:#003856 linear-gradient(top, rgb(0,83,126), rgb(0,30,46));
ããããbox-shadowã§ãããç§ã®å ´åbox-shadowãä½åº¦ãéãã¦ç´°ãã表ç¾ããããã¨ãå¤ãã§ãããã¿ã³ãããã«é¢¨ã«ã¿ããããã®ãã¿ã³èªä½ã®topã®ãã¤ã©ã¤ãã»bottomã®shadowããã¿ã³ãåããã¾ãã¦ããããã«è¦ããããã«ãããã¿ã³ã®ä¸ã®shadowã»ä¸ã®ãã¤ã©ã¤ããªã©ã§ãã
box-shadowããããã£ã¯ã,ãã§ã¤ãªãã¦æ¸ããã¨ã§ä½åº¦ãéãã¦ããããã¨ãã§ãã¾ãããã®å ´åãæåã«æ¸ãã¦ããå¤ã»ã©ä¸çªä¸ã«éãããã¦æç»ããã¾ãã
box-shadow:inset 0 0 12px rgba(0,0,0,0.2),inset 0 1px 0 rgba(255,255,255,0.2),inset 0 2px 0 rgba(255,255,255,0.3),inset 0 -1px 1px rgba(0,0,0,0.7),0 -1px 3px rgb(0,0,0),0 0 6px rgb(0,0,0),0 1px 0 rgba(255,255,255,0.4);
ããã«text-shadowãã¤ãã¦ãã¿ã³ã«æåãå»å°ããã¦ããããã«ããã¨ããã£ã¨ããã£ã½ããªãã¾ãã
text-shadow:0 -1px 1px rgba(0,0,0,0.7);
çä¼¼ã¯ã©ã¹ã®:hoverã:activeãç´°ããè¨å®ãã¦ãããã¨ããããã¿ã³ã£ã½ãæ¯ãèãã表ç¾ã§ããããã«æãã¾ããå®éã¯ããããæãã§æ¸ãã¦ãã¾ãã
.header-blue-button { cursor:pointer; display:inline-block; height:16px; margin:17px 7px; padding:11px; border-radius:5px; color:#fff; line-height:1; font-weight:bold; text-shadow:0 -1px 1px rgba(0,0,0,0.7); background:#003856 linear-gradient(top, rgb(0,83,126), rgb(0,30,46)); background:#003856 -webkit-linear-gradient(top, rgb(0,83,126), rgb(0,30,46)); background:#003856 -moz-linear-gradient(top, rgb(0,83,126), rgb(0,30,46)); box-shadow:inset 0 0 12px rgba(0,0,0,0.2),inset 0 1px 0 rgba(255,255,255,0.2),inset 0 2px 0 rgba(255,255,255,0.3),inset 0 -1px 1px rgba(0,0,0,0.7),0 -1px 3px rgb(0,0,0),0 0 6px rgb(0,0,0),0 1px 0 rgba(255,255,255,0.4); -webkit-box-shadow:inset 0 0 12px rgba(0,0,0,0.2),inset 0 1px 0 rgba(255,255,255,0.2),inset 0 2px 0 rgba(255,255,255,0.3),inset 0 -1px 1px rgba(0,0,0,0.7),0 -1px 3px rgb(0,0,0),0 0 6px rgb(0,0,0),0 1px 0 rgba(255,255,255,0.4); -moz-box-shadow:inset 0 0 12px rgba(0,0,0,0.2),inset 0 1px 0 rgba(255,255,255,0.2),inset 0 2px 0 rgba(255,255,255,0.3),inset 0 -1px 1px rgba(0,0,0,0.7),0 -1px 3px rgb(0,0,0),0 0 6px rgb(0,0,0),0 1px 0 rgba(255,255,255,0.4); } .header-blue-button:active { color:#ddd; box-shadow:inset 0 1px 2px rgba(0,0,0,0.8),inset 0 0 20px rgba(0,0,0,0.6),inset 0 1px 0 rgba(255,255,255,0.2),inset 0 2px 0 rgba(255,255,255,0.3),inset 0 -1px 1px rgba(0,0,0,0.7),0 -1px 3px rgb(0,0,0),0 0 6px rgb(0,0,0),0 1px 0 rgba(255,255,255,0.4); -webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.8),inset 0 0 20px rgba(0,0,0,0.6),inset 0 1px 0 rgba(255,255,255,0.2),inset 0 2px 0 rgba(255,255,255,0.3),inset 0 -1px 1px rgba(0,0,0,0.7),0 -1px 3px rgb(0,0,0),0 0 6px rgb(0,0,0),0 1px 0 rgba(255,255,255,0.4); -moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.8),inset 0 0 20px rgba(0,0,0,0.6),inset 0 1px 0 rgba(255,255,255,0.2),inset 0 2px 0 rgba(255,255,255,0.3),inset 0 -1px 1px rgba(0,0,0,0.7),0 -1px 3px rgb(0,0,0),0 0 6px rgb(0,0,0),0 1px 0 rgba(255,255,255,0.4); }
Touch View 㨠Media Queries
Media Queriesã使ç¨ãã¦Touch Viewã«ã対å¿ããã¦ãã¾ãã
Touch Viewã«å¯¾å¿ãããã«å½ãã£ã¦ãã³ã³ãã³ãã®å¹
ããã©ã³ããµã¤ãºã ãã§ãªãããã¿ã³ã®å¤§ãããã¬ã¤ã¢ã¦ããå ´åã«ãã£ã¦ã¯ä¸è¦ãªè¦ç´ ããªããã¨ãã£ããã¨ããã¦ãã¾ãã
- ä¾ï¼ãããã¼ã®ãã¿ã³
- ä¾ï¼ããã¿ã¼ã®ããã²ã¼ã·ã§ã³
ã¹ã¯ãã¼ã«ãã¼ã®ã«ã¹ã¿ãã¤ãº
ChromeãSafariãªã©ã®webkitãã©ã¦ã¶ã®å ´åã¯ã¹ã¯ãã¼ã«ãã¼ãã«ã¹ã¿ãã¤ãºãã¦ãã¾ããããããã®ã«ã©ã¼ã«åãããã«ï¼ç®æã§ã«ã¹ã¿ãã¤ãºããã¹ã¯ãã¼ã«ãã¼ã使ç¨ãã¦ãã¾ãã
::-webkit-scrollbar { width: 15px; height: 15px; background:#002234; } ::-webkit-resizer, ::-webkit-scrollbar-button, ::-webkit-scrollbar-corner { display: none; } ::-webkit-scrollbar-track-piece { background:#002234; box-shadow:inset 1px 0 4px rgba(0,0,0,0.7); -webkit-box-shadow:inset 1px 0 4px rgba(0,0,0,0.7); } ::-webkit-scrollbar-thumb { border:1px solid #002234; background:-webkit-linear-gradient(left, rgb(0,83,126), rgb(0,30,46)); border-radius:3px; box-shadow:inset 0 1px 1px rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.7); -webkit-box-shadow:inset 0 1px 1px rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.7); } ::-webkit-scrollbar-thumb:horizontal { background:-webkit-linear-gradient(top, rgb(0,83,126), rgb(0,30,46)); }
ãããã«
ç°¡åã§ã¯ããã¾ããPrePANã¨ãããµã¤ãã®ç´¹ä»ã§ãããä¸é¨ã§ã¯ããã¾ããç´¹ä»ããã¹ã¿ã¤ã«ãªã©ãåèã«ãã¦ããã ããã°ã¨æãã¾ãã
ãããããé¡ããããã¾ãã