pro

India’s Solar Product Exports Record Over 20-Fold Jump To $2 Bn In Last 2 Years

In terms of markets, the US has emerged as a key market for Indian solar PV exports. More than 97 per cent of Indian solar PV exports went to the US in both FY2023 and FY2024, the report states. 




pro

Centre Approves 12 Textile Research Projects Worth Rs 13.3 Crore

The National Technical Textiles Mission is a flagship scheme of Ministry of Textiles focused on developing the research and development capabilities of the local industry, especially in the areas of high-performance fibre development.  




pro

PFRDA Website Overhaul: Regulator Body Invites IT Firms; Seeks To Improve User Experience

The overarching goal of the PFRDA-Connect project is to significantly enhance the digital presence of PFRDA by overhauling its official website, leading to improved user experience throughout the user journey. 




pro

IIT Madras, Maestro Ilaiyaraaja join hands to provide ‘Music for all’

Skill development programmes, certification courses on music will be taken up along with the design and analysis of musical instruments




pro

Summer travel up 40% this year; hospitality, travel services providers see buoyant demand

According to MakeMyTrip's summer travel trends, the family travel segment has grown by 20% this year, compared to the summer of 2023




pro

GOAT will be one of the most profitable for us, says Suresh Kalpathi, AGS Entertainment

AGS Entertainment is doing another movie with Pradeep Ranganathan and also produced by the production house




pro

Laughter Chefs proves that TV shows can find viewership on streaming platforms: Viacom18’s Alok Jain

The show has driven subscriber growth for JioCinema at a faster pace than many shows launched in the past, said Alok Jain, President - General Entertainment, Viacom18




pro

After delivery in 10 min, Blinkit promises returns in 10 min 

The service, which has been under testing in Delhi NCR, is now available in Mumbai, Bangalore, Hyderabad, and Pune, with plans for expansion to additional cities




pro

UK FTA: Proceed with care

The BJP government has correctly realised that giving in to all demands made by the UK in sensitive sectors just before the elections could be harmful



  • From the Viewsroom

pro

Using nationalism to market products

Captains of industry should look to build world-class products, instead



  • From the Viewsroom

pro

Developers given extra time by the Central Government to execute SEZ projects




pro

Panel probing Walmart lobbying submits report




pro

CBI opens probe into firms defaulting on public sector bank loans

These business houses secured huge loans from the banks after the 2008 financial crisis, but either defaulted or escaped by restructuring the loans




pro

Hero MotoCorp to invest Rs. 5,000 crore to raise global production capacity




pro

Cabinet approves easing FDI norms for medical devices sector




pro

Wipro posts 7.2 per cent rise in Q2 net profit

Consolidated net profit of India's 3rd largest software services firm is Rs 2,235.4 crore




pro

Google executive quits self-driving car project




pro

HDFC Life, Max Life boards approve merger




pro

Kwality Milk expands product line, eyes export




pro

Union Budget 2021 | Firms with the highest profits paid the least effective tax in FY2019

In FY2019, the corporate tax rate in India was 25.71%




pro

Tata Motors to acquire Ford India's Sanand plant to expand production capacity

Tata Motors said with its manufacturing capacity nearing saturation, the acquisition is timely and a win-win for all stakeholders




pro

Deepavali break reflects a new approach to workforce management

Following the pandemic, organisations have scaled new heights of empathy in their engagement with employees




pro

Minister promises IBM all support to expand activities in Kerala




pro

H&M probes Myanmar factory abuses as pressure intensifies

As cases of worker abuse at garment factories soar, H&M says it is 'deeply concerned' by the developments in Myanmar




pro

Explained | What are the latest revisions to the process for the sale of SIM cards?

The revised norms deal with bulk procurement of SIM cards and require the distributors, franchises and agents selling SIM cards to undergo thorough verification, including a check by the police




pro

The Competition Commission’s proposed regulations on merger thresholds | Explained

The Competition Commission of India has proposed certain definite thresholds for mergers as part of the larger regulatory ambit, in line with the amendments to the Competition Act earlier this year.




pro

Unsold inventory in ongoing projects spells a crisis:Gautam Chatterjee




pro

Does IBC process spare a thought for employees?

Distraught staff of Jet Airways and IL&FS feel that the bankruptcy apparatus is not concerned about what is due to them




pro

Legal complications have slowed the bankruptcy process




pro

Insurance sector beset with its own problems




pro

Not just a random digging programme

MGNREGS has created assets that have made farming viable. But funds cutback and rural vested interests can erode its impact. A BusinessLine analysis




pro

Telangana facing a problem of plenty in paddy

Farmers have reaped a bumper rabi harvest of 1 crore tonnes of paddy




pro

Exit co-ops, enter farmer producer cooperatives

FPOs have emerged as an antidote to the ills of the cooperative sector in Maharashtra. Will they live up to their potential?




pro

India goes bananas over export prospects

India is the world’s largest producer of bananas, but a minor exporter. The tide is turning in its favour, thanks largely to a global pest attack. Vishwanath Kulkarni reports




pro

Citizen science projects in Visakhapatnam engage community members to document biodiversity

Environmental organisations in Visakhapatnam, Vizianagaram and Srikakulam are leading citizen science projects, transforming individual observations into contributors to science




pro

UN summit approves fund to share benefits of nature's sequenced genetic data

The issue had been a bone of contention at the 16th Conference of Parties (COP16) to the UN's Convention on Biological Diversity (CBD)




pro

FM Sitharaman urges India Inc to propel Viksit Bharat

BJP’s third term pledges support for space, AI and warehousing; Next-generation reforms agenda to touch all factors of production including digital infrastructure




pro

GUJCOST designated as Nodal Centre for ISRO’s START programme

The ‘START’ programme is a kick start opportunity for the aspiring scientists and engineers



  • Science and Technology

pro

BE’s 14-Valent Pneumococcal Conjugate Vaccine: Phase III trials prove ‘safety’

Pneubevax14   14 was found to be safe and induced robust and functional serotype specific immune responses to all 14 serotypes




pro

ICMR releases revised 'Dietary Guidelines for Indians', urges avoiding protein supplements

Low intake of essential nutrients can disrupt metabolism and increase the risk of insulin resistance




pro

IIT Madras partners with SilTerra Malaysia for silicon photonic processor chips

These chips will be utilised for quantum computing and high-speed secured communication systems




pro

Syngene launches new protein production platform 

The platform supports different types of biomolecules, including monoclonal antibodies, biosimilars, bispecifics, antibody-drug conjugates, and other recombinant proteins




pro

AWS announces first space tech accelerator program in India with 24 shortlisted startups

The program is a result of the MoU agreement AWS signed with the Indian Space Research Organization and the Indian National Space Promotion and Authorisation Centre in 2023




pro

Boeing’s Starliner glitches prompt NASA to delay astronauts’ return from space station

Problems with the capsule’s propulsion system and other related concerns have led to the delay in the astronauts’ return.




pro

Kulasekarapattinam spaceport: TN to promote Madurai, Thoothukudi, Tirunelveli, Virudhunagar as ‘Space Bay’

TIDCO plans to introduce additional incentives to attract companies and accelerate development in the region. 




pro

Non-toxic ionic liquids for silk processing 

A team at IASST Guwahati has identified 4 different Ionic Liquids that can be effective in extracting silk proteins from raw fibres 




pro

India to sign High Seas Treaty in September, joining global effort to protect ocean biodiversity

India’s participation will enable it to contribute to global ocean governance, access biodiversity funds, and play a role in establishing marine protected areas and sharing marine genetic resources.




pro

Cabinet clears ₹32,000 crore proposals for key space missions

Funds cover Chandrayaan-4, Venus Orbiter, space station, and next-gen launch vehicle




pro

CERN, the world’s biggest nuclear research centre, turns 70; in search of funding for next project

The nuclear physics hub needs to finance the construction of the Future Circular Collider as its existing particle accelerator — famed for discovering the Higgs Boson — edges toward the end of its useful life




pro

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