switchable css dark theme in js & html custom element dark theme / dark mode https://codepen.io/xgqfrms/pen/rNxWzzg See the Pen html custom element & Switchable dark theme by xgqfrms (@xgqfrms) on CodePen. 1turn === 360deg === 2…
css dark theme & js theme checker live demo https://codepen.io/xgqfrms/pen/GRprYLm <!DOCTYPE html> <html lang="zh-Hans" ️amp> <head> <meta charset="UTF-8"> <meta name="viewport" content="wi…
CSS Dark Mode https://kevq.uk/automatic-dark-mode/ https://kevq.uk/how-to-add-css-dark-mode-to-a-website/ css variables :root { --accent: #226997; --main: #333; --light: #666; --lighter: #f3f3f3; --border: #e6e6e6; --bg: #ffffff; } /* dark mode */ :r…
how to disabled prefers-color-scheme in js dark theme https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme https://web.dev/prefers-color-scheme/#supporting-dark-mode if (window.matchMedia('(prefers-color-scheme)').media !== 'n…
dark theme website css var dark theme prefers-color-scheme https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme .day { background: #eee; color: black; } .night { background: #333; color: white; } @media (prefers-color-scheme:…
在配合require.js使用vue路由的时候,遇到了路由组件报错: “vue.js:597 [Vue warn]: Unknown custom element: <router-link> - did you register the component correctly? For recursive components, make sure to provide the "name" option.” vue.js的功能是好的,vue-route.js没有起作用,…
Visual Studio 2012 默认提供了3种color theme: blue,light,和dark.其中dark的文本编辑器颜色设定很爽,可是整个菜单项加上一些小的窗口如Find Result也是黑底白字让人感觉有点刺眼,看不清.Blue theme的菜单和小窗口都很清爽,可是整个文本编辑器不如Dark theme好看.自己一项项调颜色设置显然是不可能的,我一直想找一种简便的方法把两者结合起来,今天终于找到了,整个操作过程不到一分钟! 先看我的最终效果: 方法是安装一个Visual…
Want to use the visual studio color theme editor to set the dark theme or other themes? Below shows how to set it in VS2010 There are two types of themes for Visual Studio 2010. One affects only the colors of window borders and buttons. The other aff…
[前言] 首先确保您可能会被安装在阅读本文之前,myeclipse egit, 见文章:http://blog.csdn.net/uikoo9/article/details/17247405 事实上安装非常easy,无非三种: 1.直接拷贝egit目录到dropins目录下 2.通过eclipse marketplace安装 3.通过myeclipseconfiguration center安装 可是.. [安装失败] 之前使用以上三种方法都非常顺利的完毕, 最简单的是方法一.直接复制过去.重…
Dark theme for Texstudio ~~~  1.window系统如下操作 ~~~ 1. texstudio的配置文件texstudio 的配置文件在~/.config/texstudio/texstudio.ini 其中配置文件包括如下几部分 [General] …… [texmaker] …… [version] …… [formats] …… 其中[texmaker]部分是具体的tex配置,可以看一下.而要更改的主题部分需要在[formats]部分进行修改. 2. 更改tex…
本篇主要包括: ■  自定义CSS■  自定义Theme■  自定义Package 自定义CSS 有时候,需要自定义或重写Bootstrap默认的CSS.→在css文件夹下创建一个site.css→假设要对container类重写,在site.css中 .container { background-color: #eee; } →把site.css引用到index.html中,并放置在bootstrap.min.cs的下方 <link href="css/bootstrap.min.cs…
CSS样式表和JS脚本加载顺序 Css样式表文件要在<head>中先加载,这样网页显示时可以第一次就渲染出正确的布局和样式,网页就不会闪烁,或跳变 JS脚本尽可能放在<body>结束时再加载 Js脚本作为程序,要求按顺序执行,而且是由主线程(单个线程)去执行的, 如果很JS脚本放在头部,就会导致浏览器无法以多线程的方式加载和渲染页面 浏览会等待所有JS一个接一个执行完毕后才继续往下加载 其结果是网页打开速度变慢! 从现在开始,对于自己的作品,自己代码要达到产品级的要求 点击后执行一…
chrome & dark theme Dark Reader Extensions https://darkreader.org/help/en/ https://chrome.google.com/webstore/detail/dark-reader/eimadpbcbfnmbkopoojfekhnkhdbieeh?hl=en-US Theme Black Black Chrome Theme https://chrome.google.com/webstore/detail/black-…
Chrome Extension & Dark Theme https://chrome.google.com/webstore/detail/eimadpbcbfnmbkopoojfekhnkhdbieeh https://github.com/darkreader/darkreader https://github.com/xyz-data/darkreader…
web 的三要素 html, css, js 在前端组件化的过程中,比如 react.vue 等组件化框架的运用,使 html 的弱化与 js 的强化 成为了一种趋势,而在这个过程中,其实还有另一种趋势也在慢慢形成:css 的弱化与 js 的强化. 之前有写过一篇 CSS 模块化,但对 css in js 这种理念没有过多讲解,所以这次深入一下. css in js 理念,即是摒弃原有的用 .css 文件书写样式,而把样式写进 js 里面,这样就可以做到一个组件对应一个文件.一个文件便是一个组件…
css 的弱化与 js 的强化 web 的三要素 html, css, js 在前端组件化的过程中,比如 react.vue 等组件化框架的运用,使 html 的弱化与 js 的强化 成为了一种趋势,而在这个过程中,其实还有另一种趋势也在慢慢形成:css 的弱化与 js 的强化. 之前有写过一篇 CSS 模块化,但对 css in js 这种理念没有过多讲解,所以这次深入一下. css in js 理念,即是摒弃原有的用 .css 文件书写样式,而把样式写进 js 里面,这样就可以做到一个组件对…
前言  说起Custom Element那必然会想起那个相似而又以失败告终的HTML Component.HTML Component是在IE5开始引入的新技术,用于对原生元素作功能"增强",虽然仅仅被IE所支持,虽然IE10也开始放弃它了,虽然掌握了也用不上,但还是不影响我们以研究的心态去了解它的:) 把玩HTML Component  HTML Component简称HTC,它由定义和应用两部分组成.定义部分写在.htc文件中(MIME为text/x-component),由HTC…
前言  通过<WebComponent魔法堂:深究Custom Element 之 面向痛点编程>,我们明白到其实Custom Element并不是什么新东西,我们甚至可以在IE5.5上定义自己的alert元素.但这种简单粗暴的自定义元素并不是我们需要的,我们需要的是具有以下特点的自定义元素: 自定义元素可通过原有的方式实例化(<custom-element></custom-element>,new CustomElement()和document.createEle…
angular 自定义web组件: 首先创建一个名为myCustom的组件. 引入app.module: ... import {customComponent} from ' ./myCustom.component'; @NgModule({ declarations:[AppComponent,customComponent], entryComponents:[customComponent] .... }) export class AppModule{} 全局注册: app.comp…
错误: vue.js:634 [Vue warn]: Unknown custom element: <ve-pie> - did you register the component correctly? For recursive components, make sure to provide the "name" option. 原因:引用了插件,却没有在main.js里使用. 解决方法:先把对应的插件import进来,在加上Vue.use(...); .比如这里是…
vue浏览器报错,如下 vue.runtime.esm.js?2b0e:619 [Vue warn]: Unknown custom element: <router-Link> - did you register the component correctly? For recursive components, make sure to provide the "name" option. found in ---> <App> at src/App…
vue components registration & vue error & Unknown custom element vue.esm.js:629 [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. https://git…
一.报错截图 [Vue warn]: Unknown custom element: <wzwzihello> - did you register the component correctly? For recursive components, make sure to provide the "name" option. 错误代码 <!DOCTYPE html> <html lang="en"> <head>…
前言  最近加入到新项目组负责前端技术预研和选型,一直偏向于以Polymer为代表的WebComponent技术线,于是查阅各类资料想说服老大向这方面靠,最后得到的结果是:"资料99%是英语无所谓,最重要是UI/UX上符合要求,技术的事你说了算.",于是我只好乖乖地去学UI/UX设计的事,木有设计师撑腰的前端是苦逼的:(嘈吐一地后,还是挤点时间总结一下WebComponent的内容吧,为以后作培训材料作点准备. 浮在水面上的痛 组件噪音太多了!  在使用Bootstrap的Modal组…
.getLocationInView() Determine an element's location on the screen once it has been scrolled into view. Uses elementIdLocationInViewprotocol command. Parameters: Name Type description selector string The CSS/Xpath selector used to locate the element.…
web components & publish custom element & npm https://www.webcomponents.org/publish Polymer 1.12.0 https://www.polymer-project.org/ https://github.com/polymer https://lit-html.polymer-project.org/ https://lit-element.polymer-project.org/ xgqfrms 2…
HTML5 & custom element & template template https://codepen.io/xgqfrms/pen/eYYExvp https://css-tricks.com/creating-a-custom-element-from-scratch/ <template id="dialog-template"> <script> document.getElementById('launch-dialog'…
关于vue报错: [Vue warn]: Unknown custom element: <sapn> - did you register the component correctly? For recursive components, make sure to provide the "name" option. found in ---> <Evaluate> at src/views/index/Evaluate.vue<Index>…
最近一直在研读 jQuery 源码,初看源码一头雾水毫无头绪,真正静下心来细看写的真是精妙,让你感叹代码之美. 其结构明晰,高内聚.低耦合,兼具优秀的性能与便利的扩展性,在浏览器的兼容性(功能缺陷.渐进增强)优雅的处理能力以及 Ajax 等方面周到而强大的定制功能无不令人惊叹. 另外,阅读源码让我接触到了大量底层的知识.对原生JS .框架设计.代码优化有了全新的认识,接下来将会写一系列关于 jQuery 解析的文章. 我在 github 上关于 jQuery 源码的全文注解,感兴趣的可以围观一下…
前言:在Django中HTML文件如果采用外联的方式引入css,js文件或者image图片,一般采用<link rel="stylesheet" href="../css/lstyle.css">这个格式,但是django中需要配置一下,才能如此使用. 关键词:django静态文件 django生产环境 django1.8 正文: 第一步,在django工程目录下建立static文件夹,同时在static文件夹下建立css img js三个不同名称的文件…