投稿時間:2023-04-29 22:16:09 RSSフィード2023-04-29 22:00 分まとめ(20件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… ソニーの「WH-1000XM5」と「LinkBuds S」のLE Audio対応アップデートはまもなくか https://taisy0.com/2023/04/29/171326.html bluetooth 2023-04-29 12:37:29
TECH Techable(テッカブル) 文化財や美術品のデジタルデータ化を簡単に。デジタルアーカイブ向けカメラ「Rシステム」登場 https://techable.jp/archives/204498 omdsb 2023-04-29 12:30:35
TECH Techable(テッカブル) ヤマハ、歌唱AI「#kzn」の声で音楽制作できるソフトウェア発表。5月22日より限定販売 https://techable.jp/archives/204557 cubasevoisona 2023-04-29 12:00:54
AWS lambdaタグが付けられた新着投稿 - Qiita 【AWS】Step Functionsの実行結果をSlackへ通知する https://qiita.com/nijigen_plot/items/56b1f0b30b14de7b85bf athena 2023-04-29 21:40:03
js JavaScriptタグが付けられた新着投稿 - Qiita 【JavaScript】お手軽にQuineアートを作る https://qiita.com/mogamoga1337/items/27a49e164c8a17bd4f87 qsqevalsconsolelogsevals 2023-04-29 21:57:25
js JavaScriptタグが付けられた新着投稿 - Qiita 放置で乱数な木を育てるPGM(TheBonsai) https://qiita.com/shizuoka_miyako_19911118/items/1761bc099875034a3eb3 pgmthebonsai 2023-04-29 21:08:50
AWS AWSタグが付けられた新着投稿 - Qiita 【AWS】Step Functionsの実行結果をSlackへ通知する https://qiita.com/nijigen_plot/items/56b1f0b30b14de7b85bf athena 2023-04-29 21:40:03
AWS AWSタグが付けられた新着投稿 - Qiita AWS CLIを使ってAWS Certificate Manager (ACM) にインポートした証明書を取得できない時の解決方法 https://qiita.com/daji110728/items/ec13440b4f024a96d2b2 awccli 2023-04-29 21:39:45
AWS AWSタグが付けられた新着投稿 - Qiita Vue.jsでフロントエンドアプリケーション開発(その4:Amazon S3にバケットポリシーを設定してみる) https://qiita.com/tonarinohamuhamu/items/5601462dfbe5c5f3da11 https 2023-04-29 21:33:08
AWS AWSタグが付けられた新着投稿 - Qiita [AWS Q&A 365][SES]AWSのよくある問題の毎日5選 #43 https://qiita.com/shinonome_taku/items/c07b4aa5076718185c44 amazon 2023-04-29 21:18:35
Git Gitタグが付けられた新着投稿 - Qiita 【初学者向け】GitでMilestones、Issue、PullRequestの練習をしてみた。【画像付き】 https://qiita.com/muranakar/items/166401e0309c202ebeac commitpush 2023-04-29 21:25:11
Ruby Railsタグが付けられた新着投稿 - Qiita Turbo Stream × Action Cable でリアルタイム更新を実装する!Turbo Rails Tutorial をやってみた(5章) https://qiita.com/yuppymam/items/de3f5311418d77f627db actioncable 2023-04-29 21:39:22
技術ブログ Developers.IO AWS Verified Access が GA となったので IAM Identity Center を信頼プロバイダーとしてグループポリシーを設定して使ってみた https://dev.classmethod.jp/articles/verified-access-generally-available/ awsverifiedaccess 2023-04-29 12:16:49
海外TECH DEV Community Dark Mode in 3 Lines of CSS and Other Adventures https://dev.to/madsstoumann/dark-mode-in-3-lines-of-css-and-other-adventures-1ljj Dark Mode in Lines of CSS and Other AdventuresDark Mode is a design trend where the color scheme of a website is changed to a dark background with light colored text and elements It s also referred to as Night Mode or Dark Theme The purpose of Dark Mode is to reduce eye strain in low light environments conserve battery life on mobile devices and create a sleek and modern aesthetic Many popular websites and applications now offer a Dark Mode option ーhere s TailwindCSS If you re a developer you most likely already know how to toggle Dark Mode in Dev Tools for those who don t know go to the “rendering tab If you want to toggle on Dark Mode for your operating system and thus all apps supporting Dark Mode go to System Settings On a Mac you ll find it under System Settings gt Appearance There are a lot of tutorials out there already on how to implement dark mode for a webiste This tutorial will look into different approaches including some rad new CSS features that ll allow you to ditch JavaScript Ready Let s get started Dark Mode using System ColorsFirst we ll create a simple HTML document with a headline lt body gt lt h gt Hello Darkness My Old Friend lt h gt lt body gt In a stylesheet we ll add body color scheme light dark This will tell the browser that our document can accept both a light and a dark color scheme If you run this snippett in a browser even with Dark Mode on it will be …light Your browser UI will be dark though That s because the user agent stylesheet does not have any default colors set up We can fix that quickly by using System Colors body background color Canvas color CanvasText color scheme light dark Let s check our snippet again Much better Dark Mode for your entire website in lines of CSS Let s dive a bit more into System Colors From the specs In general the lt system color gt keywords reflect default color choices made by the user the browser or the OS They are typically used in the browser default stylesheet for this reason Here s a Light Mode demo showing the available System Colors in Safari If we switch to Dark Mode some colors are changed completely like Canvas and CanvasText as we ve already encountered while others are only slightly changed Using System Colors for Dark Mode is a bit of a simplified Dark Mode experience Yes it will work ーbut pure black and white is a bit boring We can spice it up using color mix in CSS We can mix a bit of CanvasText black or white into Canvas white or black for the background color and the opposite for color body background color color mix in srgb Canvas CanvasText color color mix in srgb CanvasText Canvas This results in a “softer look Deducting saturation from a color is a widely used way to make variations of colors in Dark Mode Using relative colors in CSS we can do exactly that background hsl from ActiveText h calc s l Unfortunately relative colors don t work with System Colors in any browsers ーyet NOTE System Colors can be overwritten with forced colors although used rarely ーso don t rely too much on this technique Let s move on to another technique that ll allow us to fine control our Dark Mode colors Using a prefers color scheme media queryTo specify specific colors for light and dark mode I recommend using CSS Custom Properties and then update these using a prefers color scheme media query With Light Mode as our default let s add the colors to a where body section to separate them from our regular body styles Properties where body background color FFF text color body background color var background color color var text color Then for Dark Mode we ll simply update these colors properties media prefers color scheme dark where body background color hsl text color hsl Let s check it out But what if we want the users to choose which version of our website they want indepently of the System Settings They might prefer a system set to Dark Mode but our website in Light Mode Let s create a toggler Creating a color scheme togglerUsing JavaScriptIf you go to a site like TailwindCSS you ll notice that a dark class is added to the html node when you select dark from the color scheme toggler This is done with JavaScript window matchMedia prefers color scheme dark matches document documentElement classList add dark else document documentElement classList remove dark Open Props is using a similar method but updating a data theme attribute instead and then defining properties in two blocks data theme light nav icon var gray etc data theme dark nav icon var gray etc Using CSSUsing some brand new CSS techniques we can create a toggler without JavaScript We ll create a toggler with states Light forced Auto system default could be either light or dark Dark forced First some basic markup lt fieldset gt lt label gt lt input type radio name color scheme id color scheme light value gt Light lt label gt lt label gt lt input type radio name color scheme value auto checked gt Auto lt label gt lt label gt lt input type radio name color scheme id color scheme dark value gt Dark lt label gt lt fieldset gt After adding some basic styles see the Codepen demo below it renders like this We ll add a darkmode property and container type to the html element html darkmode container name root container type normal We ll be using container style queries so we need to set the node as a “container Since we don t want to observe inline size changes we just add the value normal If the user picks a “forced value we ll update darkmode html has color scheme light checked darkmode html has color scheme dark checked darkmode And finally we ll use a container style query to check if darkmode is set to container root style darkmode body background color hsl text color hsl NOTE container style queries only works behind a flag in Chrome at the moment it s early days so do not use in production Now after selecting “Dark our toggler and page looks like this Simple and effective Storing stateIf we want to store the users choice I m afraid we need a bit of JavaScript First let s add an identifier to our lt fieldset gt lt fieldset id colorScheme gt Then in JavaScript colorScheme addEventListener change event gt localStorage setItem color scheme event target value Now all we have to do is setting the property to the localStorage value when the document has been loaded window addEventListener load event gt const scheme localStorage getItem color scheme auto if scheme document documentElement style setProperty darkmode scheme To select the correct mode in the toggler add this to the if block const selected colorScheme elements filter element gt element value scheme if selected selected checked true DemosTogglerSystem ColorsPhoto credit Sora Shimazaki 2023-04-29 12:25:08
Apple AppleInsider - Frontpage News ORICO 2.5-inch external USB 3.0 hard drive enclosure review: low-cost and useful https://appleinsider.com/articles/23/04/29/orico-25-inch-external-usb-30-hard-drive-enclosure-review-low-cost-and-useful?utm_medium=rss ORICO inch external USB hard drive enclosure review low cost and usefulA quality budget inch hard drive enclosure at a rock bottom price that s also lightweight and well worth a look ORICO s basic inch USB hard drive enclosure is a low cost basic way to connect a hard drive or SSD to your Mac It s a standard USB enclosure for around to but there is also a USB C version for around The enclosure kit is simple as it contains the enclosure a stick on foam drive mounting pad one short USB hard drive cable and a small instruction manual Read more 2023-04-29 12:43:13
ニュース BBC News - Home Sudan crisis: NHS doctors told they can catch last UK evacuation flights https://www.bbc.co.uk/news/uk-65433363?at_medium=RSS&at_campaign=KARANGA sudan 2023-04-29 12:45:13
ニュース BBC News - Home Strike staffing offered to Great Ormond St children's hospital https://www.bbc.co.uk/news/uk-england-london-65435318?at_medium=RSS&at_campaign=KARANGA nurses 2023-04-29 12:40:15
ニュース BBC News - Home Richard Sharp: PM should not appoint BBC chair, says David Dimbleby https://www.bbc.co.uk/news/uk-65434455?at_medium=RSS&at_campaign=KARANGA balance 2023-04-29 12:27:38
ニュース BBC News - Home Barack Obama and friends surprise Barcelona restaurant https://www.bbc.co.uk/news/world-europe-65435879?at_medium=RSS&at_campaign=KARANGA catalan 2023-04-29 12:14:32
ニュース BBC News - Home Women's Six Nations 2023: England captain Marlie Packer scores against France https://www.bbc.co.uk/sport/av/rugby-union/65435489?at_medium=RSS&at_campaign=KARANGA Women x s Six Nations England captain Marlie Packer scores against FranceWatch as England captain Marlie Packer scores a second try for the hosts against France in the Women s Six Nations Grand Slam decider at Twickenham 2023-04-29 12:49:47

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)