pti

It is corruption as usual in Tirupur




pti

To combat rising air pollution levels, doctors advocate adopting lifestyle changes

Doctors in Delhi are advising residents to wear N95 masks, get vaccinated and opt for work-from-home if possible, if they can’t leave the city, as the national capital battles deteriorating air quality




pti

TASL’s first ‘sub-metre optical’ satellite launched

The SpaceX’s Falcon 9 rocket catapulted the TASL’s satellite from Launch Complex 39A at Kennedy Space Center on April 7, says TASL




pti

F&O Query: Should you hold call options on Reliance Industries and ICICI Bank?




pti

F&O Query: Should you hold call options on Infosys and Voltas?




pti

Two options for using custom properties

Recently I interviewed Stefan Judis for my upcoming book. We discussed CSS custom properties, and something interesting happened.

We had a period of a few minutes where we were talking past one another, because, as it turns out, we have completely opposite ideas about the use of CSS custom properties. I had never considered his approach, and I found it interesting enough to write this quick post.

Option 1

Take several site components, each with their own link and hover/focus colours. We want to use custom properties for those colours. Exactly how do we do that?

Before my discussion with Stefan that wasn’t even a question for me. I would do this:

.component1 {
	--linkcolor: red;
	--hovercolor: blue;
}

.component2 {
	--linkcolor: purple;
	--hovercolor: cyan;
}

a {
	color: var(--linkcolor);
}

a:hover,a:focus {
	color: var(--hovercolor)
}

I set the normal and hover/focus colour as a custom property, and leave the definition of those properties to the component the link appears in. The first and second component each define different colours, which are deployed in the correct syntax. Everything works and all’s well with the world.

As far as I can see now this is the default way of using CSS custom properties. I wasn’t even aware that another possibility existed.

Option 2

Stefan surprised me by doing almost the complete opposite. He uses only a single variable and changes its value where necessary:

.component1 {
	--componentcolor: red;
}

.component1 :is(a:hover,a:focus) {
	--componentcolor: blue;
}
	
.component2 {
	--componentcolor: purple;
}

.component2 :is(a:hover,a:focus) {
	--componentcolor: cyan;
}
	
a {
	color: var(--componentcolor)		
}

At first I was confused. Why would you do this? What’s the added value of the custom property? Couldn’t you just have entered the colour values in the component styles without using custom properties at all?

Well, yes, you could. But that’s not Stefan’s point.

The point

In practice, component definitions have way more styles than just colours. There’s a bunch of box-model properties, maybe a display, and possibly text styling instructions. In any case, a lot of lines of CSS.

If you use custom properties only for those CSS properties that will change you give future CSS developers a much better and quicker insight in how your component works. If the definition uses a custom property that means the property may change in some circumstances. If it uses a fixed definition you know it’s a constant.

Suppose you encounter this component definition in a codebase you just inherited:

.component {
	--color: red;
	--background: blue
	--layout: flex;
	--padding: 1em;
	--borderWidth: 0.3em;
	display: var(--layout);
	color: var(--color);
	background: var(--background);
	padding: var(--padding);
	border: var(--borderWidth) solid black;
	margin: 10px;
	border-radius: 2em;
	grid-template-columns: repeat(3,1fr);
	flex-wrap: wrap;
}

Now you essentially found a definition file. Not only do you see the component’s default styles, you also see what might change and what will not. For instance, because the margin and border-radius are hard-coded you know they are never changed. In the case of the border, only the width changes, not the style or the colour. Most other properties can change.

The use of display: var(--layout) is particularly revealing. Apparently something somewhere changes the component’s layout from grid to flexbox. Also, if it’s a grid it has three equal columns, while if it’s a flexbox it allows wrapping. This suggests that the flexbox layout is used on narrower screens, switching to a grid layout on wider screens.

Where does the flexbox change to a grid? As a newbie to this codebase you don’t know, but you can simply search for --layout: grid and you’ll find it, probably neatly tucked away in a media query somewhere. Maybe there is a basic layout as well, which uses neither flexbox nor grid? Search for --layout: block and you’ll know.

Thus, this way of using custom properties is excellently suited for making readable code bases that you can turn over to other CSS developers. They immediately know what changes and what doesn’t.

Teaching aid?

There’s another potential benefit as well: this way of using custom properties, which are essentially variables, aligns much more with JavaScript’s use of variables. You set an important variable at the start of your code, and change it later on if necessary. This is what you do in JavaScript all the time.

Thus this option may be better suited to teaching CSS to JavaScripters, which remains one of my preoccupations due to the upcoming book.

Picking an option

Which option should you pick? That’s partly a matter of personal preference. Since the second option is still fairly new to me, and I rarely work on large projects, I am still feeling my way around it. Right at this moment I prefer the first way because I’m used to it. But that might change, given some extra time.

Still, I think Stefan is on to something. I think that his option is very useful in large codebases that can be inherited by other developers. I think it deserves careful consideration.



  • CSS for JavaScripters

pti

Venkatesh Maha: After three years, crowdfunding seemed the best option for ‘Marmaanuvu’

Director Venkatesh Maha talks about taking the crowdfunding route for his new Telugu film ‘Marmaanuvu’ asserting he will not let down the film-loving audience




pti

Why a cruise would be the best option for a memorable vacation?

Post the pandemic, it is smooth sailing for cruising as an increasing number of Indians pack their bags to enjoy vacations on luxury liners




pti

Genetic Testing for Inherited Cancer Susceptibility Syndromes

A fact sheet about genetic testing for inherited cancer risk, including who should consider testing, how to understand test results, and who has access to a person’s test results. Also contains information about at-home, or direct-to-consumer, genetic tests.




pti

How Bloom In Green festival is attempting to spread the message of community and conscious living

Krishnagiri is set to host the fourth edition Bloom In Green festival from December 15 to 18




pti

Visible light mediated efficient photoswitching of dimethyldihydropyrenes in thin films for all-photonic logic gate applications and dynamic encryption/decryption capabilities

J. Mater. Chem. C, 2024, 12,17511-17518
DOI: 10.1039/D4TC03321C, Paper
Sariful Molla, Subhajit Bandyopadhyay
Dimethyldihydropyrene (DHP) photoswitches exhibit visible light-induced ring-opening photoisomerization, reversed by UV/visible light or heat in thin films.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Spinel CoFe2O4: a room temperature magnetic semiconductor with optical transparency

J. Mater. Chem. C, 2024, 12,17658-17667
DOI: 10.1039/D4TC01607F, Paper
Imran Khan, Jisang Hong
Finding a suitable ferromagnetic transparent semiconducting material is of utmost importance for the development of advanced devices with unique functionalities.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

One-pot and large-scale production of uniform ytterbium-doped perovskite nanocrystals with controllable optical properties

J. Mater. Chem. C, 2024, 12,17647-17657
DOI: 10.1039/D4TC03364G, Paper
Jing Chu, Linxuan Zhang, Quanjie Lv, Yijun Han, Kang Sun, Ke Tao
Monodispersed Yb3+:CsPbCl3 nanocrystals with tunable optical properties were synthesized via a scalable one-pot method. The mechanism of size evolution based on digestive ripening was proposed.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

n-Type redox-tuneable conducting polymer optical nanoantennas

J. Mater. Chem. C, 2024, 12,17469-17474
DOI: 10.1039/D4TC03038A, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Suraya Kazi, Pravallika Bandaru, Haoran Tang, Yulong Duan, Shangzhi Chen, Fei Huang, Magnus P. Jonsson
We show that the n-type conducting polymer PBFDO can be optically metallic for wavelengths above around 695 nm after post-treatment, and that nanostructures of the material can act as optical nanoantennas that are dynamically switchable.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Influence of a diketopyrrolopyrrole spacer on the ultrafast nonlinear optical properties and excited state dynamics of dimeric zinc porphyrin molecules

J. Mater. Chem. C, 2024, Advance Article
DOI: 10.1039/D4TC03281K, Paper
Rahul Murali, Chinmoy Biswas, Sudhanshu Kumar Nayak, Hanping Wu, Xiaobin Peng, Vipin Kumar, Prabhakar Chetti, Venugopal Rao Soma, Sai Santosh Kumar Raavi
This work highlights the significance of adding a DPP unit to the zinc-porphyrin core with ethynylene bridges to enhance third-order NLO properties under femtosecond laser excitation.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Wearable self-powered intelligent textile with optical–electrical dual-mode functionality for pressure distribution detection and remote intelligent control

J. Mater. Chem. C, 2024, Advance Article
DOI: 10.1039/D4TC03728F, Paper
Junhuan Li, Zhen Tian, Li Su, Yilong Yang, Chang Ding, Chen Wang, Ming Sun, Yong Zhao
A novel WSIT based on TIEL and single-electrode TENG is developed with self-powered optical–electrical dual-mode sensing functionality, which may be widely applicable in fields like intelligent robots, augmented reality, and smart homes.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Interlaced NiCoO2 nanoparticle/nanosheet films for electrochromic energy storage devices with wide-band optical modulation and robust stability

J. Mater. Chem. C, 2024, Advance Article
DOI: 10.1039/D4TC02789B, Paper
Yongchao Liu, Yu Zhong, Huanhuan Liu, Pengyang Lei, Shiyou Liu, Jinhui Wang, Guofa Cai
A uniform NiCoO2 film with an interlaced nanoparticle/nanosheet structure was successfully grown on transparent conductive substrates for transparent-to-brownish grey electrochromic smart windows with improved cyclic stability.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Stimulus-responsive multifunctions in a zinc(II) sulfate complex: photochromism, photoswitching nonlinear optical properties, amine detection and visual film application

J. Mater. Chem. C, 2024, Advance Article
DOI: 10.1039/D4TC04169K, Paper
Shuai Liang, Shi-Kun Yan, Yu-Xuan Wen, Yan-Rui Zhao, Jin Zhang, Ji-Xiang Hu
A novel complex combining photo- and amine-induced chromic, switchable photoluminescence, and photomodulated nonlinear optical properties has been prepared using electron-rich sulfate and electron-deficient 2,4,6-tri(4-pyridyl)-1,3,5-triazine.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Unveiling the mechanism behind shell thickness-dependent X-ray excited optical and persistent luminescence in lanthanide-doped core/shell nanoparticles

J. Mater. Chem. C, 2024, Advance Article
DOI: 10.1039/D4TC04256E, Paper
Zezhen Liu, Jingtao Zhao, Danyang Shen, Lei Lei, Shiqing Xu
We reveal an optimal shell thickness of approximately 3 nm for both XEOL and XEPL of homogeneous NaYF4:Tb@NaYF4 and heterogeneous NaYF4:Tb@NaLuF4 core/shell NPs.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Viscoplastic photoalignment modeling of asymmetric surface restructuring in azopolymer films by elliptically polarized light

J. Mater. Chem. C, 2024, Accepted Manuscript
DOI: 10.1039/D4TC04226C, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Nina Tverdokhleb, Biagio Audia, Pasquale Pagliusi, Marina Saphiannikova
This study aims to test and validate the modern orientation approach of Saphiannikova & co. within the context of viscoplastic photoalignment (VPA) modeling. We focus on the formation of topographical...
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Modulation of GeSe and As2Se3 motifs to optimise GeAsSe OTS performance and its mechanism

J. Mater. Chem. C, 2024, Advance Article
DOI: 10.1039/D4TC03586K, Paper
Yukun Li, Haotian Wang, Mingyue Shao, Yuhao Wang, Sannian Song, Yuan Xue, Zhitang Song
Ovonic threshold switching (OTS) selectors are pivotal in the construction of highly integrated 3D crosspoint array volatile storage systems, necessitating materials with superior electrical properties.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

A strain-sensitive neuromorphic device emulating mechanoreception for different skin sensitivities

J. Mater. Chem. C, 2024, Advance Article
DOI: 10.1039/D4TC03607G, Communication
Shubhanshi Mishra, Bhupesh Yadav, Giridhar U. Kulkarni
A strain-sensitive neuromorphic device mimics mechanoreception, adapting to skin-like sensitivities. Embedded Au microwires in PDMS detect strain and display neuromorphic functionalities, closely replicating biological mechanosensory functions.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Solution-processed LiGdO solid electrolyte for In2O3 synaptic transistor and its application in neuromorphic computing

J. Mater. Chem. C, 2024, Accepted Manuscript
DOI: 10.1039/D4TC03443K, Paper
Yixiao Du, Wenlan Xiao, Guangtan Miao, Zezhong Yin, Ranran Ci, Guoxia Liu, Fukai Shan
Emulating biological synaptic behavior using the electrolyte-gated synaptic transistor (EGST) is promising for neuromorphic applications. The EGSTs based on solid electrolytes exhibit excellent stability and compatibility with semiconductor manufacturing processes....
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

WATCH: Stars At Lin-Randeep's Reception

Randeep Hooda and Lin Laisharm hosted a wedding reception in Mumbai, and invited their friends from the film industry.




pti

Raj-Triptii's Film Is 'Maha-Parivarik'

'This maha-parivarik is because of Mallika Sherawat.'




pti

Molecular recognition of peptides and proteins by cucurbit[n]urils: systems and applications

Chem. Soc. Rev., 2024, Advance Article
DOI: 10.1039/D4CS00569D, Review Article
Open Access
Lilyanna Armstrong, Sarah L. Chang, Nia Clements, Zoheb Hirani, Lauren B. Kimberly, Keturah Odoi-Adams, Paolo Suating, Hailey F. Taylor, Sara A. Trauth, Adam R. Urbach
The molecular recognition of peptides and proteins by cucurbit[n]uril synthetic receptors in aqueous solution occurs with high affinity and with selectivity that is predictive from the sequence of amino acids and has enabled many applications.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Current development, optimisation strategies and future perspectives for lead-free dielectric ceramics in high field and high energy density capacitors

Chem. Soc. Rev., 2024, 53,10761-10790
DOI: 10.1039/D4CS00536H, Review Article
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Hareem Zubairi, Zhilun Lu, Yubo Zhu, Ian M. Reaney, Ge Wang
This review highlights the remarkable advancements and future trends in bulk ceramics, MLCCs and ceramic thin films for lead-free high field and high energy density capacitors.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Light/X-ray/ultrasound activated delayed photon emission of organic molecular probes for optical imaging: mechanisms, design strategies, and biomedical applications

Chem. Soc. Rev., 2024, 53,10970-11003
DOI: 10.1039/D4CS00599F, Review Article
Rui Qu, Xiqun Jiang, Xu Zhen
Versatile energy inputs, including light, X-ray and ultrasound, activate organic molecular probes to undergo different delay mechanisms, including charge separation, triplet exciton stabilization and chemical trap, for delayed photon emission.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Why the monsoons are the optimal time for home purchases

It is the ideal time to judge the potential investment value of a new property




pti

Coimbatore City Police bust prescription drug peddling network




pti

Coimbatore City Police intensify efforts to curb prescription drug peddling




pti

Characteristics and adsorption behavior of typical microplastics in long-term accelerated weathering simulation

Environ. Sci.: Processes Impacts, 2024, Accepted Manuscript
DOI: 10.1039/D4EM00062E, Paper
Open Access
Fei Yu, Qiyu Qin, Xiaochen Zhang, Jie Ma
Microplastics can function as carriers in the environment, absorbing various toxins and spreading to diverse ecosystems. Toxins accumulated in microplastics have the potential to be re-released, posing a threat. In...
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Co-culture of benzalkonium chloride promotes the biofilm formation and decreases the antibiotic susceptibility of a Pseudomonas aeruginosa strain

Environ. Sci.: Processes Impacts, 2024, Accepted Manuscript
DOI: 10.1039/D4EM00035H, Paper
Caihong Wang, Qiao Ma, Jiaxin Zhang, Nan Meng, Dan Xu
Benzalkonium chloride (BAC) is a disinfectant with broad-spectrum antibacterial properties, yet despite its widespread use and detection in the environments, the effects of BAC exposure on microorganisms remain poorly documented....
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Disruption in water supply to several parts of Hyderabad on Monday




pti

A UV non-hydrogen pure selenite nonlinear optical material for achieving balanced properties through framework-optimized structural transformation

Mater. Horiz., 2024, 11,1704-1709
DOI: 10.1039/D3MH01790G, Communication
Peng-Fei Li, Chun-Li Hu, Jiang-Gao Mao, Fang Kong
NCS NaLu(SeO3)2 was designed by framework-optimized structural transformation from CS NaGa(SeO3)2. NaLu(SeO3)2 exhibits large SHG responses, a wide band gap, a short UV cut-off edge, high LIDT, sufficient birefringence and high thermal stability.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Non-Hermitian metagrating for perfect absorption of elastic waves

Mater. Horiz., 2024, 11,1658-1667
DOI: 10.1039/D3MH01866K, Communication
Jiali Cheng, Yabin Hu, Bing Li
With only a specific small amount of loss, perfect absorption of elastic waves can be achieved by a compact NHMG composed of only a single type of unit cell, enabling cloaking for arbitrary-shaped targets.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

An adjustable multistage resistance switching behavior of a photoelectric artificial synaptic device with a ferroelectric diode effect for neuromorphic computing

Mater. Horiz., 2024, Advance Article
DOI: 10.1039/D4MH00064A, Communication
Xi-Cai Lai, Zhenhua Tang, Junlin Fang, Leyan Feng, Di-Jie Yao, Li Zhang, Yan-Ping Jiang, Qiu-Xiang Liu, Xin-Gui Tang, Yi-Chun Zhou, Jie Shang, Gao-Kuo Zhong, Ju Gao
The ever-growing information data has driven the pursuit of advanced BFCO thin-film synapses, which have multifunctionality, adjustable plasticity, unique photoelectric response, and optical memory effects detected by femtosecond lasers.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Improved photovoltaic performance and stability of perovskite solar cells by adoption of an n-type zwitterionic cathode interlayer

Mater. Horiz., 2024, Advance Article
DOI: 10.1039/D4MH00253A, Communication
Young Wook Noh, Jung Min Ha, Jung Geon Son, Jongmin Han, Heunjeong Lee, Dae Woo Kim, Min Hun Jee, Woo Gyeong Shin, Shinuk Cho, Jin Young Kim, Myoung Hoon Song, Han Young Woo
Integration of NDI-ZI as a cathode interlayer in perovskite solar cells improves both device efficiency and stability, mitigating halide and Ag ion migration by chemically capturing ions via electrostatic Coulombic interactions.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Construction of hierarchical porous and polydopamine/salicylaldoxime functional zeolite imidazolate framework-8 via controlled etching for uranium adsorption

Mater. Horiz., 2024, Accepted Manuscript
DOI: 10.1039/D3MH02108D, Communication
Kai Tuo, Jin Li, Yi Li, Chuyao Liang, Cuicui Shao, Weifeng Hou, Zhijian Li, Shouzhi Pu, Chunhui Deng
Efficient uranium extraction from seawater is critical for developing the nuclear industry. Herein, a polydopamine/salicylaldoxime decorated hierarchical zeolite imidazolate framework-8 (H-PDA/SA-ZIF-8) is constructed by using a controlled etching process. Benefiting...
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Polarization double-enhancement strategy to achieve super low energy consumption with ultra-high energy storage capacity in BCZT-based relaxor ferroelectrics

Mater. Horiz., 2024, Accepted Manuscript
DOI: 10.1039/D4MH00322E, Communication
Zixiong Sun, Yuhan Bai, Hongmei Jing, Tian-Yi Hu, Kang Du, Qing Guo, Pan Gao, Ye Tian, Chunrui Ma, Ming Liu, Yongping Pu
Due to dielectric capacitors’ already-obtained fast charge-discharge speed, research has been focused on improving their Wrec. Increasing the polarization and enhancing the voltage endurance are efficient ways to reach higher...
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Multicolor vision perception of flexible optoelectronic synapse with high sensitivity for skin sunburn warning

Mater. Horiz., 2024, 11,1934-1943
DOI: 10.1039/D3MH02154H, Communication
Yaqian Yang, Ying Li, Di Chen, Guozhen Shen
We propose a self-powered flexible optoelectronic synapse based on PEA2SnI4 films for multicolor vision perception and skin sunburn warning.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Adaptive nanotube networks enabling omnidirectionally deformable electro-driven liquid crystal elastomers towards artificial muscles

Mater. Horiz., 2024, 11,1877-1888
DOI: 10.1039/D4MH00107A, Communication
Jiao Wang, Hao Zhou, Yangyang Fan, Wenhao Hou, Tonghui Zhao, Zhiming Hu, Enzheng Shi, Jiu-an Lv
Hierarchically structured electro-driven liquid crystal elastomers towards artificial muscles.
The content of this RSS Feed (c) The Royal Society of Chemistry




pti

Advanced Python scripting for ArcGIS pro [electronic resource] / Paul A. Zandbergen

Redlands, California : Esri Press, 2024




pti

Globalisation led to corruption of Indian journalism, says ‘Thuglak ‘ Editor Gurumurthy

The veteran journalist calls for urgent measures to combat misinformation and uphold the standards of journalism in the digital age




pti

WTO Dispute Settlement and the Appellate Body: Insider perceptions and Members' revealed preferences [electronic journal].




pti

The Wife's Protector: A Quantitative Theory Linking Contraceptive Technology with the Decline in Marriage [electronic journal].




pti

The Wheels of Change: Technology Adoption, Millwrights, and Persistence in Britain's Industrialization [electronic journal].




pti

What Option Prices tell us about the ECB's Unconventional Monetary Policies [electronic journal].




pti

What is the Optimal Immigration Policy? Migration, Jobs and Welfare [electronic journal].

National Bureau of Economic Research




pti

The Value of Information in Technology Adoption: Theory and Evidence from Bangladesh [electronic journal].